Access value from dynamically loaded input fields

Trying access the values from dynamic generated input fields and put this in a field 'result'. By default the webpage shows one input field. When type in this field (Naam 1), the value from this field, gets into the result field, so this works perfect! But when type '3' in the input field 'Number fields', this generate 3 input fields:   NAAM 1 (class=naamveld-1) NAAM 2 (class=naamveld-2) NAAM 3 (class=naamveld-3)
 Naam 1<input type="text" class="naamveld-1">
 Naam 2<input type="text" class="naamveld-2">
 Naam 3<input type="text" class="naamveld-3">

   When type text in this fields, then there is nothing shows up in the Result Field.  The webpage incl. source code can find here (right click -> view source):   I'm not an advanced JS programmer, so i hope someone can help me with this?


“Should I buy...” or “Should I purchase...”

Should I buy/purchase web hosting?   Should I buy/purchase Adobe Photoshop?   Should I buy/purchase this car?   Should I buy/purchase this land?      When should I use buy and purchase? Why?


Does random forest need input variables to be scaled or centered?

My input variables have different dimensions. Some variables are decimal while some are hundreds. Is it essential to center (subtract mean) or scale (divide by standard deviation) these input variables in order to make the data dimensionless when using random forest?


trying to a sum dropdown sum. I have an error somewhere, but cannot figure it out. Can anyone assist? I have attached a picture with the error. Thanks a million! Jose


Should TPS (transactions per second) be upper or lower case

If one wants to write shorthand for transactions per second what would be correct casing? TPS or tps?   As SI unit, s is always lowercase and thus I believe it should be written as "tps". On other hand, it as an abbreviation and thus it deserves uppercase "TPS" treatment.


Command \@ already defined when using journal style file

I am trying to compile an (R) markdown document that includes a journal style file. The following line produces the following error:  \newcommand\@titlenote{} %! LaTeX Error: Command \@ already defined. %               Or name \end... illegal, see p.192 of the manual.   I'm not really familiar with macros so I don't know if this should be valid or not! I know that it is used later in the style file:  \let\footnote\thanks  {\fontsize{20}{22}\usefont{OT1}{phv}{b}{n} \@title \par {\small{\@titlenote}} } \vskip 1.5em {\@author \par} \end{minipage} \vskip 1em \par }   In case this isn't enough information, this is my full setup. This markdown in foo.Rmd  --- title: "The foo bar: a novel metal bar for holding fire doors" author: - name: Bar Baz   affiliation:    - Bar Institute   email: foo@bar.baz abstract: |   Lorem ipsum dolor. keywords: Foo, Bar, Baz output:    BiocWorkflowTools::f1000_article:     includes:       in_header: f1000_styles.sty urlcolor: Orange subparagraph: yes geometry: "hmargin=1.8cm,vmargin=2.2cm" ---  Lorem ipsum dolor.   where f1000_styles.sty is available .  This document can be built by running rmarkdown::render("foo.Rmd"). Sorry that it's a bit roundabout. This is as close to minimal as I managed.


How to \input{} files with Unicode names?

I work in Linux with the latest TeX Live. The system encoding is UTF-8. It is also the default editor encoding in my TeXstudio 2.12.8.  I have figures in files like σ_1_μ_02_per_5.tikz, and I included them using \input{}.   Now, the most interesting part: it had worked fine (even without inputenc etc), then it just stopped. I have not change a single line in my files. Now I get  Package inputenc Error:  Unicode character σ (U+3C3)(inputenc) not set up for use with LaTeX. ...σ_1_μ_02_per_5.tikz   I have tried:   using babel inputenc with utf8, utf8x, latin1 fontenc with different parameters opening and saving in UTF-8 in other editors   And in this case I get:  Undefined control sequence. ...μ_02_per_5.tikz} Missing $ inserted. ...μ_02_per_5.tikz} Double subscript. ...μ_02_per_5.tikz} Undefined control sequence. ...μ_02_per_5.tikz}   How to fix this?    Minimal not working example:  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \begin{document}     \input{1.tex}     \input{σ.tex} \end{document}


Product of Sums: Show that the following is a Polynomial by converting it into standard form.

$$\prod_{k=0}^n (1+x^{2^k})$$ The given expression simplifies to $(1+x)(1 + x^2)...(1 + x^{2^n})$  I am not able to proceed further. How do I express this in Summation form?


Neighborhood of a differentiable function

Show that if f is differentiable on a neighborhood of $[a,b]$ and  $f'(a) < m < f'(b)$  then there exists $a$ in $(a,b)$ such that $f'(c) = m.$  First off, what is a neighborhood of an interval? Looking at my books definition of a neighborhood, it defines a neighborhood of a point, like so:  A neighborhood of a point $x \in \mathbb{R}^n$ is a subset $X \subset \mathbb{R}^n$ such that there exists $e>0$ with $B_e(x) \subset X.$  Also, the original statement looks an awful lot like the MVT...


"the art and animation is" or "the art and animation are"

I'm unsure whether I should use "are" or "is" in the following sentence:  "The art and animation in particular are incredible."  or  "The art and animation in particular is incredible."  I'm sort of interpreting "art and animation" as a singular noun, since I'm referring to "art and animation" as one category to be evaluated. Is this a contextual thing where either one could be correct? I'm leaning towards "is," but I'm just not sure if that's right and am beginning to feel illiterate.  I tried to look up example sentences with both "is" and "are" inserted into "The art and animation ___," but I wasn't able to conclude much from it.


Will installing Ubuntu to dual boot with Windows slow down any OS or my laptop?

I am going to install Ubuntu to dual boot with Windows 8 soon, but one of my friends warned me that partitioning my hard drive will slow my computer down. I run on a 500GB HDD and 8GB of ram if that helps at all. Is that true if I do it?


getting rid of dialog box when android phone connected

Since upgrading from 12.04 to 14.04, whenever I connect my Android Galaxy SII to my laptop via USB to charge, I get a dialog box that says    Unable to mount SAMSUNG Android   Unable to open MTP device '[usb:002,021]'   If I want to mount it, I select the mounting option on the phone as usual, and it mounts fine as a USB mass storage device.  I don't know why Ubuntu is trying to mount the device before it switches to USB mass storage mode.  Is there a way to disable this automounting, or at least to disable the dialog boxes when it fails?  (I still want other USB devices to be mounted when inserted, as usual.)  In other words, I want the sane 12.04 behaviour back.


Is the length of HTTP GET limited to 2048?

From :     the GET method adds the data to the URL; and the length of a URL is   limited (maximum URL length is 2048 characters)   And from the :     The HTTP protocol does not place any a priori limit on the length of   a URI. Servers MUST be able to handle the URI of any resource they   serve, and SHOULD be able to handle URIs of unbounded length if they   provide GET-based forms that could generate such URIs. A server   SHOULD return 414 (Request-URI Too Long) status if a URI is longer   than the server can handle (see section 10.4.15).    Note: Servers ought to be cautious about depending on URI lengths   above 255 bytes, because some older client or proxy   implementations might not properly support these lengths.    Is this a mistake from w3schools?


How can I add first map value into a second map

trigger DTrigger on D__c (before insert,after update) {      Map<Integer, String> firstMap = New Map<Integer, String>();     firstMap.put(100, 'lokesh');     firstMap.put(101, 'lokeshA');     firstMap.put(102, 'lokeshB');     firstMap.put(103, 'lokeshC');     firstMap.put(104, 'lokeshD');      Map<String, Map<Integer, String>> secondMap = New  Map<String, Map<Integer, String>>();      for(Integer varl : firstMap.keySet()){         String valu = firstMap.get(varl);          if(!secondMap.containsKey(valu)){             secondMap.put(valu, New Map<Integer, String>());         }else{             secondMap.get(valu).add(firstMap);         }     } }


Show that $(a_1\cdot a_2\cdot ...\cdot a_n)^\frac 1n \leq (a_1+...+a_n)/n$

Sorry if it is sort of hard to read so here it is in words. Show that the nth root of the product of n terms is less than or equal to the sum of n terms divided by n.    Our instructions are to use a weird form of induction.  Assuming it's true for k we are supposed to first show that it is then true for 2k then show it's true for k-1 to "fill in the gaps".  I have found out how to show it's true for k-1 but I'm stuck trying to show it's true for 2k.  Any advise would be appreciated. Thanks


How can I install 0.12 version of a module if cpan has 0.13 version of module ?

I want to install module XML::XpathEngine of version 0.12 . But cpan has XML::XpathEngine 0.13 version.  How can I install XML::XpathEngine 0.12 version ?


An old logic question goes something like this:     A teacher tells her students on Monday that there will be a test this week, but they will not know on which day till the morning of. The students think about this and come to the conclusion that there will be no test this week. Why?   The accepted answer to this is that the test cannot be on Friday, since that's the last day it could be on, so the students would know the night before it had to be that day. Therefore the test must occur by Thursday. However the test cannot occur on Thursday, since that's the last day it could occur on, so they would know the night before. They apply this logic recursively, eliminating every day this week, and decide therefore the test cannot occur this week.  Suppose the teacher then had the test on Thursday (or Wednesday, or whathaveyou). None of the students would see it coming, so clearly their logic fails at some point.  What is the exact error in their logic?


How to show $M\subseteq J\left( R\right)$?

Let $R$ be a ring. Set $M=\{ x\in R|\forall y\in R\Rightarrow 1-xy\;\; \text{unitary in}\; R\}$ and $J\left( R\right) =\cap \{ I|I\unlhd R, I \text{is a maximal ideal}\}$.      How to show that $M\subseteq J\left( R\right)$?


I answered incorrectly to "Have you ever been refused a visa?" in my UK Tier 4 visa application form

I made a huge mistake. My application is submitted and biometrics are done. Application is on it's way to UKVI. I answered "No" when I should have answered "Yes". In 2015, I was refused a residence permit to study in Denmark because the school I applied to wasn't approved by a government authority. I didn't know that it wasn't a government affiliated or approved school, and applied anyway. There was nothing wrong with my application though. While filling out my UK Tier 4 application, I completely forgot about this. It was an honest mistake. What should I do? Should I contact UKVI? I have already got admission in a HEI in London and attached my CAS and everything with the documents. P.S - I'm from India.


Intuition behind Besel's correction for an unbiased estimate of the variance

We have two estimators for samples dispersion:  $\frac{1}{n}\sum_1^n (X_i - \overline{X_n})^2$ and $\frac{1}{n - 1}\sum_1^n (X_i - \overline{X_n})^2$.  The second estimator unbiased - it has expectation equals to real dispersion.  I know the proof, but I think that there is some logic behind this formula, not only formal derivation. For example, if we have only one sample measure, then unbiased formula doesn't work. And it seems logical because one sample can be thrown from a distribution with any dispersion and we can't estimate it.  Maybe you know some simple explanation of the logic behind these formulas.


I am so frustrated about the annoying Facebook apps invitations and requests from friends and users in my Facebook account. Is there a way to remove them? I haven't had much luck trying it on my own.


Something like this throws an error:  using namespace std;   int main() {     int test[1000000] = {}; }   Something like this doesn't:  using namespace std;  int test[1000000] = {};  int main() { }   Why is that? A million ints isn't even too memory-demanding.


How should you address academic colleagues in the United States? Is the "Prof" title necessary?

I've recently been hired as an assistant professor and will be starting this fall.  As I'm beginning to be included on departmental e-mail and in certain decisions, I'm starting to interact (at least via e-mail) with my colleagues.  How should I address them?  As a graduate student and postdoc, I've always addressed faculty as Prof. X unless I was already very familiar with them or unless they've told me to do otherwise.  Is it strange to continue to do this as a professor?  I don't want to be disrespectful, but at the same time it feels a little stuffy to continually refer to everyone as Prof. X until they suggest I do otherwise.


Why intensity of light(wave) is proportional to the square of its amplitude?

I am confused, Classical wave theory says that Intensity of the light(wave) is the proportional to square of the amplitude. How intensity is proportional to the square of the amplitude?


How to use 8 IR recievers that when one of them sense IR turn on a LED?

I wnat to use 8 IR sensors (4 on front of vest, 2 on back and 2 on headband like lazertag vest) that when each of sensors hitted by IR, turn on a led. I don't want to use any microcontroller so a simple circuit is what I want. I can achieve this by one IR reciever but I want to use 8 sensor. Help me please.


Is the orbit of the planets around the Sun chaotic?

The orbit of the earth seems to be very predictable. But as it is a many-body problem having sun, earth, moon, jupiter and so on, is it really that stable or will it start making strange movements sooner or later?  Are there asteroids or moons in our solar system with obviously chaotic orbits?


I am looking to pick 1 person from a list of people where each item in the list has a certain "weighting" to it. Let's assume the Person class has the necessary constructor.  public class Person {     public string Name { get; set; }     public float Weighting { get; set; } }  public List<Person> People = new List<Person>();  People.Add(new Person("Tim", 1.0)); People.Add(new Person("John", 2.0)); People.Add(new Person("Michael", 4.0));   Now, I want to choose a person randomly from this list. But on average I want to pick Michael 4 times more often than Tim. And I want to pick John half (2/4) as often as Michael. And of course, I want to pick Michael double as often as John.  Does that make any sense?  I already have code in place to select people based on percentages. Wouldn't it work if I just multiplied the %chance of them by the weighting provided in this example?  Also, my current system only works with chances of up to 100%, nothing above. Any advice on how to overcome this limitation? I would probably have to scale every chance according to the largest factor in the list?  public static bool Hit(double pct) {     if (rand == null)         rand = new Random();      return rand.NextDouble() * 100 <= pct; }   Or am I missing something?


I've setup a plane with a particle emitter system. When I render the footage and the particles are glowing. Where do I find the settings for that?


How do I tell a start up program to start minimized?

Here is a quesion that has been bugging me. You know how you can set up a program to run on start up right?  Well, how can i tell it to start minimized, like you would do in windows?   TeamViewer starts open, but I need it minimized, and Tray-it just doesn't seem as elegant of a way to do it.


I have a Windows user profile all setup with all settings the way I want them. I want to copy the entire configured profile to a new user account.  How can I do that on Windows?


A few days ago I was working in Matlab when suddenly Matlab crashed. My screen then switched to a strange resolution of which I couldn't alter the settings. Therefore, I decided to reboot. Grub now also has a much smaller resolution than normal. After I press enter the screen turns off and shows a message that it isn't receiving a signal.  I've had problems with CUDA and Nvidia drivers before. After installing a driver I had a similar problem, except that the screen had a signal and had a white blinker in the top left corner. Another difference is that now I've had the Nvidia driver and CUDA working for a long time, and all of a sudden without installing or updating it, it has stopped working.  I've tried replacing quiet splash with no splash, after which I do get to see the Ubuntu logo, but afterward the no signal sign appears once again. I've also tried replacing quiet splash with nomodeset, same result except I now saw a purple screen before the no signal sign of my monitor.  Other solutions I've looked at tell me to open up a terminal, which I've tried but have failed to do so. I'm now a bit lost. What steps do I take next? The last time I reinstalled Ubuntu entirely. This time around I have a small part of my thesis on my computer, and I'd like to save it!


Confusion about Homotopy Type Theory terminology

I've picked up the  for leisure. I'm comfortable with strongly typed languages and familiar with dependently typed languages and I enjoy topology, so I thought that the HoTT book was a good opportunity to learn some of the math underlying the type systems (and, by HoTT's reputation, a new way of looking at many other things I know.)  I'd dabbled a bit in formal type theory previous to HoTT. I've long thought of (independent) types like this:  Unit data types are types with only one value, isomorphic to:  data Unity = Unity   You can sum types, creating a type inhabited by as many values as A + B  data Sum a b = Left a | Right b   more commonly known as Either a b in programming circles.  Then there are product types, which house as many types as A × B  data Product a b = Both a b   more commonly known as (a, b).  Finally there are exponential types inhabited by as many values as there are mappings A → B (which is $B^A$). These are more commonly known as functions, and defining them is my day job. The little algebraic type theory I know is founded in those assumptions. (I'm curious what's beyond exponential types in this progression, but that's besides the point.)  The HoTT book starts out by defining the exponential type $\rightarrow$, the dependent function type $\Pi$, the product type $\times$, and the dependent pair type $\Sigma$. The definitions all make sense, but I find the naming confusing. Function types seem pretty exponential to me: why are dependent function types (a generalization of $\rightarrow$) denoted $\Pi$ ('product')?  This doesn't seem like just a silly mistake: the product type $\times$ is generalized to a dependent product type $\Sigma$ ('summation').  Both types are "demoted" when they're generalized (exponential to product, product to sum). There's obviously some reasoning behind this naming, but it's going right over my head.  Why does Homotopy Type Theory use this naming scheme? What's the isomorphism that I'm missing?


What does a witch do when hexing someone?

Some  (like  or ) specify some form of action to be taken by the witch when activating them, but most hexes do not specify, does the witch just look someone and then the hex is active? Can anyone notice when someone is being hexed?


How to regular-subdivide an irregular edged flat surface in Blender

I want to break a surface into pieces of square shapes like in the image below. How do I do that?  The blue is a mesh surface with one face (object) and the squares are a subdivided mesh.    Thanks


How to interpret margin of error in a non-binary poll?

I know what margin of error means in a poll with two choices. For example, if a poll estimates two candidates are to have 45% and 55% of the vote respectively and the margin of error is 4%, then we can say with 95% certainty that the first candidate will receive between 41% and 49% of the vote. This means that the second candidate will have between 51% and 59% of the vote. We can say this because there are only two choices and the total must add up to 100%.  However, some polls sometimes measure the percentage expected votes for 3 or 4 candidates. In this case, if you have variance for the measurement of one candidate, how is that variance for one candidate's estimate distributed among two or more candidates?


Ruby on Rails: Is it better to apply validations on model or through JavaScript?

While adding the validations in the application, should we add those in models or through JavaScript and what is the difference in both these kinds of validation? What is good practice and how they differ?


The purpose of the command should be replacing any IP in file myfile.txt with the local IP of the server automatically  i tried to use this command:  sed -i -e 's/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/'"$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)/g" myfile.txt   but got this error   sed: -e expression #1, char 71: unterminated `s' command


Must a physical Patronus charm take the form of an animal?

To my recollection, all physical Patronus charms that we see in the Harry Potter story are in the form of an animal. However, to quote  the nature of a Patronus charm is that it represents that which is hidden, unknown but necessary within the personality, which depending on the traits revealed could be embodied in many different ways.  For example, if a muggle-born wizard's Patronus were to portray strong leadership and perseverance could the physical manifestation appear as Optimus Prime?


Am applying for visiting visa to Canada with my wife and three kids, what is the range of funds require to be in my statement of account?


How to get current date and add five working days in Java

I want two dates.  1) Current date in MM/dd/yy format 2) Modified date which will be the adition of five business days(Mon-Fri) to current date and it should be in MMM dd, yyyy format.  So if my current is 9th june than currentDate should be 06/09/14 and modifiedDate should be Jun 13, 2014.  How to do this?


How to create a list of the images in a folder with the nodes refering to them?

I would like to cleanup the folder sites/default/files by removing all images that belonged to a node that already has been deleted. Or would deleting a node, also delete the images it is showing in the body?  So, how can I know which images are no longer in use? Is there a tool to show which nodes are linking to the images? or to show images that are not linked to from anywhere in the site?


Is there some way to force a popular desktop browser (IE, Chrome, Firefox, Opera etc.) to only connect to a site via HTTPS and if the site does not support HTTPS, then not connect at all?


I used to have only a stack overflow account. Later I used this account to link a number of different communities.  Now, I was joining Area 51 this week and it required me to make a new account, which did not get linked to SO. In an attempt to rectify, I tried login in to the main stackexchange site, using the same OpenID provider (facebook).  But now, any new SE community I join, gets listed in the SE account and my list on SO remains as it was. I am continuous signed in on both sites. Can someone help me out?  I am aware of , but since that bug has long be fixed, I assume my problems are different (and maybe my own error). I tried to user account merge on stackoverflow, but it denies the use address of stack exchange.


Who of these characters has a more legitimate claim on the Iron Throne?

In "Eastwatch" (Game of Thrones, S07E05), in the scene with Gilly and Sam, Gilly is reading from the records of High Septon Maynard. From this scene, we can infer that this High Septon performed an annulment for Rhaegar Targaryen and married him in secret. I think that it is safe to assume that it was to Lyanna Stark.   From earlier episodes, we know that this was the coupling that produced Jon Snow. Now, given that they were married and that Rhaegar was the eldest of the siblings, does this make Jon the actual heir over Daenerys?


If $x^2 \equiv y^2 \pmod {p^r}$, where $p$ is an odd prime not dividing $x$ or $y$ then $x \equiv \pm y \pmod {p^r}$

If  $x^2 \equiv y^2 \pmod {p^r}$ then $p^r \mid x^2 - y^2$ and so $p^r\mid(x-y)(x+y)$. Now since $p$ is a prime that is not dividing $x$ nor $y$ then it's easy to see that  $p^r \nmid x$ and also $p^r \nmid y$. Now I was wondering if this implied in particular that $p^r$ doesn't divide any linear combination of $x$ and $y$ ?  But This is certainly not true. Because we have that $3 \nmid 5$ and $3 \nmid 7$ however we have that $3 \mid 5 + 7 =12$.   I wanted to apply Euclids lemma but now I am stuck here.


count number of div by id after dynamically adding more div by sam id

on page load i have following div
......
   at this stage if i do console.log($('#row_log').length); then i get response as 1 which is correct.  however, i have button to clone the same div, which works fine. So if the button was clicked thrice, i would now have :
.....
 original div
.....
 cloned div
.....
 cloned div
.....
 cloned div   yet console.log($('#row_log').length); would still show as 1 instead of 4


How to force multithread on video rendering?

I use Blender as a video montage software and the issue happens during rendering.  Blender doesn't use all the cores of the machine. In fact it uses only one. However, I set the threads value to fixed 8.     And I still have a single thread rendering.     I thought I could find the answer  but obviously it's not the same problem.  The GPU is unemployed too.   Who knows how to use the whole machine?  Edit: I precise that I use Linux and other softwares work fine with multithreading.


Is it possible to emit an arbitrary Spectral Color

I've been playing with frequencies of colors lately, and just out of curiosity, was wondering if we have technology to generate a spectral color from an arbitrary frequency (to some degree of accuracy), or do we have to stumble on the right gas to heat up?


Should an answer that encourages illegal activity be marked as "Offensive"?

If I see an answer that involves some illegal activity, such as breaking license agreements, should I then mark this as Offensive or should I simply down-vote it?


I made this using more then one object, then joined them together. used some fill faces as well. Then when I put the subdivision mod on it I get this three color pattern on the now Whole oject. Is that normal? I think not. so if I am right how to I get it to show all of it in the same color?


I'm new in LaTex. I need to draw a graphic like the image and each rectangles of image must have the size shown in Figure. I drawn it by MS power point but I need to do by LaTex. Can you help me? Or how to start? Thank you in advance for your help and collaboration!   Now I'm able to generate the box by this code  \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc,shapes.arrows} \usetikzlibrary{automata} % LATEX and plain TEX \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds, chains,positioning,fit,petri,matrix,shapes.arrows,shadows,backgrounds}  \usetikzlibrary{mindmap}    \usetikzlibrary{shapes,arrows,fit,calc,shadings,graphs} \tikzset{box/.style={draw, rectangle, rounded corners, thick,node distance=7em, text width=6em, text centered , inimum height=3.5em}} \tikzset{container/.style={draw, rectangle , dashed, inner sep=2em}} \tikzset{line/.style={draw, thick, -latex '}}   %Disegno per i grafici TikZ \definecolor{bluei}{RGB}{83,116,191} \definecolor{blueii}{RGB}{207,212,232} \definecolor{greeni}{RGB}{135,200,81} \definecolor{greenii}{RGB}{216,235,207}  \tikzset{   myiblock/.style 2 args={     draw=white,     fill=#1,     line width=1pt,     rounded corners,     minimum height=1cm,     align=center,     text=white,     font=\sffamily,     text width=#2   },   myoblock/.style={     fill=#1,     rounded corners,     align=center,     inner xsep=10pt   } }  \begin{document}   %1chain  \begin{tikzpicture}[node distance=3pt and 1cm] \node[myiblock={bluei}{2cm}]   (info1)   {Id1 long 7 chars}; \node[myiblock={bluei}{2cm},below=of info1]   (info2)   {Id2 long 7 chars};  \node[myiblock={bluei}{2cm},below=of info2]   (info3)   {Id3 long 7 chars};   \node[myiblock={bluei}{2cm},below=of info3]   (info4)   {Id4 long 7 chars};     \node[myiblock={bluei}{2cm},below=of info4]   (info5)   {Id5 long 7 chars};     \node[myiblock={bluei}{2cm},below=of info5]   (info6)   {Id6 long 7 chars};     \node[myiblock={bluei}{2cm},below=of info6]   (info7)   {Id7 long 7 chars};   \begin{pgfonlayer}{background}  \end{pgfonlayer}  %2 chain  \begin{scope}[xshift=6cm,node distance=3pt and 1cm] \node[myiblock={greeni}{4cm}]   (infoob1)   {Text1 long 34 chars}; \node[myiblock={greeni}{4cm},below=of infoob1]   (infoob2)   {Text2 long 34 chars}; \node[myiblock={greeni}{4cm},below=of infoob2]   (infoob3)   {Text3 long 34 chars};  \node[myiblock={greeni}{4cm},below=of infoob3]   (infoob4)   {Text4 long 34 chars};   \node[myiblock={greeni}{4cm},below=of infoob4]   (infoob5)   {Text5 long 34 chars};   \node[myiblock={greeni}{4cm},below=of infoob5]   (infoob6)   {Text6 long 34 chars};   \node[myiblock={greeni}{4cm},below=of infoob6]   (infoob7)   {Text7 long 34 chars}; \begin{pgfonlayer}{background} \end{pgfonlayer} \end{scope} \end{tikzpicture}  %3 chain  \begin{tikzpicture}[node distance=3pt and 1cm] \node[myiblock={bluei}{2cm}]   (info1)   {Label1 long 20 chars}; \node[myiblock={bluei}{2cm},below=of info1]   (info2)   {Label2 long 20 chars};  \node[myiblock={bluei}{2cm},below=of info2]   (info3)   {Label3 long 20 chars};   \node[myiblock={bluei}{2cm},below=of info3]   (info4)   {Label4 long 20 chars};     \node[myiblock={bluei}{2cm},below=of info4]   (info5)   {Label5 long 20 chars};     \node[myiblock={bluei}{2cm},below=of info5]   (info6)   {Label6 long 20 chars};     \node[myiblock={bluei}{2cm},below=of info6]   (info7)   {Label7 long 20 chars};   \begin{pgfonlayer}{background}  \end{pgfonlayer} \end{tikzpicture}  \end{document}   question: 1. how i can add the other box 2. how to add the ...between the box (see the first chain) 3. how to keep the same box size of the original image?  Thanks Marta


File upload using ajax and JavaScript function

Need a big favor! I'm trying to send uploaded file using JavaScript & Ajax, however not getting any success.   I want that when I upload the file, it will call the function myFunction(), and send the file to the PHP path(ajax.php) I've set.  Below is the code I've so far.  <script>    function myFunction() {       var x = document.getElementById("up");       $.ajax({          type: 'GET',          url: 'ajax.php',          data: {},          beforeSend: function() {},          success: function(data) {             alert(data);          }       });    } </script> <input type="file" name="images" id="up" onchange="myFunction()" />


In quantum mechanics, when two observables commute, it implies that the two can be measured simultaneously without perturbing each other's measurement results. Or in other words, the uncertainty in their measurements are not coupled.   But in classical mechanics, in an analogous way we have the Poisson brackets instead, where when two functions/variables of the systems have a vanishing Poisson bracket with each other, we say they are in "involution".  I understand that when a variable $j$ has a vanishing Poisson bracket with the Hamiltonian of the system, means that $j$ is a constant of motion, conserved in time. But for the general case:      If the Poisson bracket of $f$ and $g$ vanishes ($\{f,g\} = 0$), then $f$ and $g$ are said to be in involution.    What does the above mean physically? Is it in some sense related to measurement results as it is with commutators in QM, meaning two variables in involution are completely independent of each other? Finally, is there a simple classical example, where one can see 2 observables are in involution, but 2 other (same system) may not be (i.e. counter-example for involution)? I think it would help better understand what in "involution" means.


What is the optimum button size of touch screen applications?

There was a not so recent blog post about the ideal button size of touch screen control sizes (sorry there is no link, the website is now a spam trap) that was based on the  form the MIT touch lab that gives some measures of the size and sensitivity of the finger. If found that averages for finger pads are between 10–14mm and fingertips are 8–10mm. This would make 10mm x 10mm a good minimum touch target size.  As the author of the blog pointed out, this ideal contact size is much larger than the suggested size for Windows and Apple devices that is in their design guides. I am wondering why there is such a difference, and whether it makes more sense to increase the size of controls on touch screen applications, or if this is not really a usability issue at all? Also, it seems that many mobile websites and apps seem to completely ignore these principles. I am sure the screen size poses a limitation to how big the interface controls can be, so is this simply a trade-off between being able to fit in as much information versus how easy it is to interact with the control? It feels as if the stylus is not something that is in much use. A similar question has been raised on the minimum/smallest size that you can get away with, but I would consider this to be a different question to what the optimum size should be, because the smallest size accommodates the minimum usability requirement, whereas the optimum size caters for the best usability requirement. Archived link of the blog (original domain shows spam)  And here is another reference it to (just to show that it is not the problem with the link but the website () UPDATE #1: another new reference that has a very precise figure of a minimum of 44 x 44 points, not sure how it is derived exactly but interesting (). Read Section 2. Provide Large Clickable Elementss. UPDATE #2: another reference, this time from  citing touch target size to 9 mm square or greater (48x48 pixels on a 135 PPI display at a 1.0x scaling plateau). They also suggest avoid using touch targets that are less than 7 mm square. UPDATE #3: something from the  that I referenced recently citing 44 x 44 points. UPDATE #4: NN/g has published an article on  and the information/conclusion remains unchanged. UPDATE #5 A really nice write-up on the need to enhance the  of common UI elements, citing the  that the "minimum target size for touch or mouse should be 44×44 pixel" (2.5.5 - Target Size - Level AAA).


Problem Curl working for 7.2 but not working for 5.6 Wamp  Few months back I installed wamp then I uninstall it and use xamp 7.2. But now I install wamp and set the PHP version 5.6. (wamp) When I check the phpinfo curl not show for 5.6, But when I change the PHP version to 7.2 curl is showing. Curl version showing in cmd 7.55.1  What I tried  I added php_curl.dll in php5.6./ext and apache bin folder and remove the semicolon in php.in  I also added curl.cainfo="c:/wamp/cacert.pem" But still curl not enable for 5.6   Error log  [20-Dec-2019 12:02:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp64/bin/php/php5.6.40/ext/php_curl.dll' - The specified procedure could not be found. in Unknown on line 0


Suppose $f:[a,b]\to\mathbb{R}$ is differentiable and $c\in[a,b]$.

Show there exists a sequence $\left\{x_{n}\right\}$ converging to $c$ with $x_{n}\ne c$ for all $n$, such that $$ \lim_{n\to\infty} f'(x_{n})=f'(c) $$ I'm not entirely sure how to approach this other than the following:  Show existence of $\left\{x_{n}\right\}$ Use the Mean value theorem and the sequential definition of continuity.  I guess I would start by establishing since $f$ is differentiable on $[a,b]$, for any $x,y\in[a,b]$ we are guaranteed that for $c\in[a,b]$ $$ f(x)-f(y)=f'(c)(x-y) $$ by the Mean value theorem. Furthermore, since $f$ is differentiable on $[a,b]$ it is continuous. Therefore, by proposition (previously established elsewhere) we should be able to establish a sequence $\left\{x_{n}\right\}$ in $[a,b]$ such that $\lim x_{n}=c$ and $f(\left\{x_{n}\right\})$ converges to $f(c)$. Beyond that I would assume you use the definition of the derivative to establish that $f'(\left\{x_{n}\right\})$ converges to $f'(c)$. This is the stuff I've been thinking about, but I haven't been able to pull it all together into a cohesive proof. Is there more that I am missing?


Why does deflating baloon spurting through the air make circular motion?

When you inflate a balloon and then let it go again, it will fly through the air in an unpredictable motion. My kids (1 and 3 year old) love watching this. At some point my oldest asked how it worked and why it was flying and I felt that I could answer that. (Conservation of momentum basically, only in more words.) However, then he asked why the balloon was traveling in circles (which it was, at least most of the times we released it) and I really have no idea. I hope someone here can help me.


Is it bad to have triangles in the model?

I am a beginner in Blender and have some questions now after some experimentation. I'm making the face of a character (pictured below) and have no idea if I'm doing it right. Read a bit about edge flow, but also read something about avoiding triangles. As you can see in the picture, I have some triangles. When does this become a problem? (I intend to animate the model when it is finished)


MacBook stolen, which data is accessible to the thief?

2014 13" MBP got stolen. Find My Mac wasn't on (stupid mistake), so they only thing protecting my data is the password.   If they do manage to get in somehow, then I can't protect my files but I don't want them to get into my iCloud (Notes/Photos/Keychain/etc.), I've changed my iCloud password so that should prevent them from accessing anything right?   All advice is welcome, I've already filed the police report but recovering the laptop seems unlikely


Different methods to compute $\sum\limits_{k=1}^\infty \frac{1}{k^2}$ (Basel problem)

As I have heard people did not trust Euler when he first discovered the formula (solution of the ) $$\zeta(2)=\sum_{k=1}^\infty \frac{1}{k^2}=\frac{\pi^2}{6}.$$ However, Euler was Euler and he gave other proofs.   I believe many of you know some nice proofs of this, can you please share it with us?


If $Z\subseteq Y\subseteq X$ and $Z$ is compact in $X$, then $Z$ is compact in $Y$

Let be $(X,\mathcal{T})$ a topological space and let be $Z,Y\subseteq X$ such that $Z\subseteq Y$: so if $Z$ is compact in $X$ then Z is compact in $Y$.  To prove the assertion let be $\mathcal{V}$ an open cover of $Z$ in $Y$ and we consider the open cover $\mathcal{U}=\{U\in\mathcal{T}:U\cap Y\in\mathcal{V}\}$ of $Z$ in $X$ thus there exist $\mathcal{U}'\subseteq\mathcal{U}$ such that $|\mathcal{U}'|<ℵ_0$ and $Z\subseteq\bigcup\mathcal{U}'$ and so $\mathcal{V}'=\{U\cap Y:U\in\mathcal{U}'\}$ is an open and finite cover of $Z$ in $Y$ and so this prove that $Z$ is compact in $Y$.  It is my proof correct? if not, how prove the assertion? could be that if is false?  Could someone help me, please?


"1 new items in your Stack Exchange inbox"

Notification emails from Stack Exchange say:     1 new items in your Stack Exchange inbox   If you have only 1 new item, that should be "1 new item", singular.


Edit same property of all selected objects at once?

How can I edit the same property on all selected objects at once? For example, if I select 5 mesh objects and I want to lock rotation x or I have selected 20 curves and want to edit 'Preview U resolution' of all of them at once or change the bevel depth of all of them to 2. And if they have same modifier can we edit modifier's properties at once?


Why haven't I been awarded the Electorate badge?

So, I here's my .  I voted on 601 questions and 646 answers.  Why don't I have the Electorate Badge?


Is the following relation true: $$ \max \{a_1+b_1, ..., a_n+b_n\}\leq \max \{a_1,...,a_n\}+\max \{b_1,...,b_n\} $$ $\{a_1,...,a_n\}$ and $\{b_1,...,b_n\}$ are real numbers?  question is similar, but it seems focused on non-negative numbers. Here $\{a_1,...,a_n\}$ and $\{b_1,...,b_n\}$ can also be negative.


User who deleted comment is assumed to either be moderator or owner of comment

When viewing deleted comments on a post, the user who deleted the comment is visible. This is usually a moderator or the owner of the comment; however, some flags on comments containing some patterns are handled automatically, and the flagger appears as the one who deleted the comment. In this case, because the system assumes non-moderators must be comment owners, and the owner of the comment is the asker of the question, the flagger’s username receives asker highlighting too.    Or, at least, I assume that that’s the case.


Is the Hardy space $H^\infty$ closed under differentiation?

** As it's been pointed out, the underlying matter of this question (that $f$ holomorphic and bounded does not imply $f'$ bounded) has been already answered in other post. However, here it's seen as a functional analysis question. Furthermore, the answers in the other post are merely a few counterexamples, and I feel that the abstract answers given here by @DavidC.Ullrich and @zhw. provide a more understanding explanation of the matter.   Let $f:\mathbb{D}\to\mathbb{C}$ be a holomorphic and bounded function, where $\mathbb{D}=\{z\in\mathbb{C}:|z|<1\}$ is the unit disk and $\mathbb{C}$ the complex numbers; i.e. let $f$ in the Hardy space $\mathcal{H}^\infty$. Then is it true that $f'$ must be bounded too?  That is, is $\mathcal{H}^\infty$ closed under differentiation?  I've found some papers about the topic online but none of them clarifies this so I guess that I might be missing some point. Thank u for any help!


I have this bike:    I want to swap out the forks for some rigid forks.  Please tell me what specs I should be looking at to get the right fit.  Thanks!


What if I find someone else is using my Stack Exchange login?

I've just discovered an old Stack Exchange account of mine that seems to be in use by someone unknown to me (who has knowledge that doesn't fit anyone I know).  How do I delete that account?


Propositional Logic: p → q, ¬p → r, ¬q → ¬r ⊢ q

Is this proof correct?  p → q, ¬p → r, ¬q → ¬r ⊢ q  1) p → q      premise 2) ¬p → r     premise 3) ¬q → ¬r    premise   4) -q       assumption   5) -p       MT 1,4     6) p      assumption     7) ⊥      ¬e 5,6   8) ⊥        ¬e 2,3 9) q          ¬e 8   Am I going correct? What might be the next step?  I updated my answer.


Change selected side in Taking Sides quest

When I was younger (and stupider) I did the quest Taking Sides but I choose Stormcloaks. Now I regret that decision very very much because I have to attack Whiterun. I'm playing on Xbox360, is there any way to join the Imperials?


Break a large theorem using mdframed on beamer

I am using mdframed to write theorems and I've been dealing with this theorem that is quite long and hao 4 equations in it. I have tried using [allowframebreaks] and using \framebreak in a specific place of the theorem but nothing has worked.   This is my theorem environment and the text of the theorem  \mdfsetup{skipabove=\topskip,skipbelow=\topskip}  \newcounter{theo} \newenvironment{theo}[1][]{% \stepcounter{theo}% \ifstrempty{#1}% {\mdfsetup{% frametitle={% \tikz[baseline=(current bounding box.east),outer sep=0pt] \node[anchor=east,rectangle,fill=cyan!50]      {\strut Teorema~\thetheo};}} }% {\mdfsetup{% frametitle={% \tikz[baseline=(current bounding box.east),outer sep=0pt] \node[anchor=east,rectangle,fill=cyan!50]     {\strut Teorema~\thetheo:~#1};}}% }% \mdfsetup{innertopmargin=-3pt,linecolor=cyan!50,%    linewidth=2pt,innerlinewidth =2pt, backgroundcolor=gray!10 ,topline=true,    frametitleaboveskip=\dimexpr-\ht\strutbox\relax,} \begin{mdframed}[]\relax% } {\end{mdframed}}  \begin{frame} \begin{theo}       Some text       \begin{equation}\label{2.5}       \dfrac{\partial p}{\partial D}=\dfrac{1}{\sum\limits_{i=1}^{n}\dfrac{1}{\nu_{i}+f''_{i}(q_{i})}-G'(p)}>0           \end{equation}       \noindent y       \begin{equation}\label{2.6}       \dfrac{\partial p}{\partial \nu_{i}}=\dfrac{\dfrac{q_{i}}{\nu_{i}+f''_{i}(q_{i})}}{\sum\limits_{j=1}^{n}\dfrac{1}{\nu_{j}+f''_{j}(q_{j})}-G'(p)}>0.           \end{equation}       More text       \begin{equation}\label{2.7}       \dfrac{\partial q_{i}(D, \nu_{1}, \ldots , \nu_{n}) }{\partial \nu_{i}}=\dfrac{-q_{i}}{\nu_{i}+f_{i}''(q_{i}) }  \left[  \dfrac{ \sum\limits_{\substack{i=1 \\ i \neq k}}^{n}\dfrac{1}{\nu_{i}+f''_{i}(q_{i})}-G'(p)   }{\sum\limits_{i=1}^{n}\dfrac{1}{\nu_{i}+f''_{i}(q_{i})}-G'(p)}   \right] <0        \end{equation}        \noindent y        \begin{equation}\label{2.8}        \dfrac{\partial q_{i}(D, \nu_{1}, \ldots , \nu_{n}) }{\partial \nu_{k}}=\dfrac{1}{\nu_{k}+f_{k}''(q_{k})  } \left[ \dfrac{ \dfrac{q_{k}}{\nu_{k}+f''_{k}(q_{k})}  }{  \sum\limits_{k=1}^{n}\dfrac{1}{\nu_{k}+f''_{k}(q_{k})}-G'(p) } \right] >0.        \end{equation} \end{theo} \end{frame}   Is there anyway to break this theorem in two frames and still be within this mdframe?  Thanks for your time


I have difficulty understanding why in  approximately half of the quotes start with a letter in square brackets. What is the reason? Some examples:  "[S]ame-sex segregation is a group phenomenon that arises from social processes that are related to gender identity and labeling common to all members of a sex, rather than to similarities in sex-typed activities." "[t]he mental analog of sex: one's maleness, femaleness, etc., as seen from their own perspective"


how to select multiple nodes (if it contains particular text) in a treeview in c#

I have a treeview like below,  tables --table1   --tab1   --tab2 --table2   --tab2   --tab2   I am giving a text "tab" and using  treeViewMenu.SelectedNode = txtbox1.Text, it selects the very first match (i.e node: table1)  I want all the nodes having "tab" in its name to be selected. (i.e table1 and table2)  I have tried passing an array to treeViewMenu.SelectedNode =array[], but this is not working.


any one help me, i am using specific fonts into my website project. anonymous users did not know how to download, install and these fonts, if the fonts are not install then website is seeing good. is there any way, or some central websites for fonts that can upload and shared specific fonts to use. Like bootstrap, jquery, provide libs to use it.


How did the information from the black hole do this?

I've just seen Interstellar and I have two questions:   How did the information from the black hole save humanity? What was that information about? I would rather not hear that "it's about the answer" I'd like to hear THE answer.


Force printf to display a determined number of digits and remove remaining 0s

I don't figure out how to tell printf to print a double with a variable precision.  Where is what I actually do :  int main(void) {     int digits = 4;      printf("%0.*f\n", digits, 0.123456789);     printf("%0.*f\n", digits, 5.9);      return (0); }   I actually have the variable precision with the * and the digits variable, but it still prints remaining 0 after the last number.  In order to illustrate my problem, here is what i get :  0.1234 5.9000   And here is what i want :  0.1234 5.9   Could you help me please?


Forgetting to mention @Override while redefining equals and hashcode

Given a class MyClass where I did redefine equals() and hashCode() methods, however I forgot to mention the keyword @Override such as :  public class MyClass {     public boolean equals(Object obj){         //Content omitted     }      public int hashCode(){         //Content omitted     }      //Remainder omitted }   What would be the consequences of such mistake on the design of MyClass?  UPDATE : So if I respect the method signature of the supertype class while redefining my method in the subtype class, I still override the given method although I am not mentioning the @Override keyword, right?


Could we build a spherical shell around a black hole singularity inside the event horizon?

Let's say we have acquired the technology to build such colossal structures. If we built a spherical shell (supposedly made of a very strong material) with a black hole right at the center, would everything now be protected from said black hole? Also, would the black hole's gravity allow you to walk on the outside of the shell?


We know from the series that a Horcrux is an object to hide a "part of your soul" so you can never die before the Horcrux is destroyed.  I would like to know how the resurrection process work. Say you have a Horcrux and then you get killed. Do you revive in the location of the Horcrux? Do you "discharge" the Horcrux to revive? So, for example, if you use a Horcrux to revive, does the Horcrux become empty so it has to be filled again?


An equality of sets involving two directions

LEt $A,B$ be sets. Prove that $A \subseteq B \iff P(A) \subseteq P(B) $.  Attempt:  First, take any element of $P(A)$, say $Y$, we know by definition that $Y \subseteq A$ and so $Y \subseteq B$ (given). Therefore, by definition $Y \in P(B)$. and we have the result.  Conversely, suppose $x \in A$, then $\{x\} \in P(A)$ and so $\{ x \} \in P(B)$. (Can we conclude that $x \in B$) ?


Is there a mathematical expression that shows how LASSO shrinks coefficients (including some to zero)?

By using singular value decomposition (SVD), I noticed from the derivation that ridge regression shrinks the coefficients by factor $\frac{D^2}{D^2+\lambda}$, where $D$ is the diagonal matrix of the matrix $\underset{m\times n}A$. Moreover, as the penalty term $\lambda$ increases, the amount of shrinkage increases.   But, what about LASSO regression? Unlike ridge regression, LASSO regression shrinks some of the coefficients to zero. My question:    Is there a way to show, in some mathematical fashion, that LASSO regression shrinks some of the coefficients to zero as the notation above does for ridge regression? Using the two predictor case would make it easy to understand. Could you please provide mathematical lines?   EDIT   show that $\hat{\beta}_{lasso}=0$ if and only if $−\lambda I≤2\sum\limits_{i}Y_iX_i≤\lambda I$. How does that occur?  References:   Knight, Keith, and Wenjiang Fu.  Annals of Statistics (2000): 1356-1378.


If post transcriptional modification happens , how can a gene code for amino acids in a particular order?

Post transcription, introns are removed and exons are rearranged randomly. If that's the case (which it is according to the book EDEXCEL SNAB A2 topic 6) then shouldn't the protein produced be different every time? Shouldn't the order of amino acids be different? And if it is, doesn't that mean that the protein produced is different?  To quote : "When mRNA is produced, its introns are removed by spliceosomes and a different number of exons is put together at different orders which changes the sequence of amino acids in proteins."  Quote from the book:        Genes contain sections that don't code for amino acids.          These sections of DNA are called introns. All the bits that do code for amino acids are called exons.    During transcription both introns and exons are copied into mRNA.    The introns are then removed by a process called splicing -- introns are removed and exons joined forming mRNA strands. This takes   place in the nucleus.    The exons can be joined together in different orders to form different mRNA strands.         If this process happens,how can a gene code for a specific protein? This process means that exons are arranged differently, and this means that amino acids are arranged differently, and doesn't that mean that different proteins are going to be produced than the one coded for?


I am very new to blender. I am trying to make a rigid body and hair to collide, but they don`t, the hairs are just passing through. When i googled it I could not find wrong i am doing. only one solution i got is to use force field. buts not what i want. I am attaching my , please find me what is wrong.


Disprove $\mathcal{P}(A\Delta B) \setminus \{\emptyset\} = \mathcal{P}(A) \Delta\mathcal{P}(B) $. Is my proof good?


Limit $\frac{x^2y}{x^4+y^2}$ is found using polar coordinates but it is not supposed to exist.

Consider the following 2-variable function:     $$f(x,y) = \frac{x^2y}{x^4+y^2}$$   I would like to find the limit of this function as $(x,y) \rightarrow (0,0)$.   I used polar coordinates instead of solving explicitly in $\mathbb R^2 $, and it went as the following:  $$ x = r \cos \theta, \qquad y = r\sin\theta $$   Hence,  $$\lim_{(x,y) \to (0,0)} \frac{x^2y}{x^4 + y^2} = \lim_{r \to 0}\frac{r^2\cos^2\theta(r\sin\theta)}{r^4\cos^4\theta + r^2\sin^2\theta}$$  This simplifies to,  $$ \lim_{r \to 0} \frac{r^3 \cos^2\theta\sin\theta}{r^2(r^2\cos^4\theta + \sin^2\theta)}$$  Simplifying $r^3/r^2$, we finally get;  $$\lim_{r \to 0} \frac{r (\cos^2\theta\sin\theta)}{r^2\cos^4\theta + \sin^2\theta}$$  Now from the above, we find that as $r \to 0$ the limit is $0$.   I wanted to verify this answer so I checked on Wolfram Alpha. Explicitly without changing to polar coordinates, it said that the limit does not exist at $(0,0)$ and rightly so. Then how is it that with polar coordinates, the limit exists and is $0$? Am I doing something wrong in this method?  Also, what should I do in this situation, and when should I NOT use polar coordinates to find limits of multi-variable functions?


I use the last Ubuntu version (18.10) on my laptop (Compaq 15-s020nf) and the brightness button are inverted. I got the same behavior when I control the backlight with the command line:  echo 1000 > /sys/class/backlight/intel_backlight/brightness  # I got a bright screen echo 6000 > /sys/class/backlight/intel_backlight/brightness  # I got a dark screen   Do you have any advice to resolve that ?


Is there a way to make caps lock behave like it does on other PCs?

Normally on a PC, if you have caps lock enabled, holding shift will result in lower case characters appearing.  Without Caps Lock  wITH cAPS lOCK   On OSX, this behavior doesn't occur - that is, holding shift while caps lock is engaged doesn't produce lower case. The behavior is specific to OSX, since it doesn't happen in a Boot Camp installed copy of Windows.  Is there a way to change this behavior to be more traditional?


Find all functions $f$ such that $(x+y)f(x)+f(y^2)=(x+y)f(y)+f(x^2)$

Find all functions $f$ that assign a real number $f(x)$ to every real number $x$ such that $$(x+y)f(x)+f(y^2)=(x+y)f(y)+f(x^2)$$  I've tried subbing in heaps of values but I keep getting things like $f(0)=f(0)$ and other such useless results.  Any help would be hugely appreciated.


I navigate with Ctrl-n,p,f,b (readline/ keys), so that I don't have to move my hands too much and get  again. Is there a way to disable Ctrl-b being hotkey for bold?  Note that this is not just an Emacs thing. Standard web browsers, like Firefox and Chrome, use things like  Ctrl + K and Ctrl + L to navigate to the Google search bar and address bar respectively.


Can anyone help me prove block diagonal matrix?

If I have  Block matrix    A 0                             B C , where A,B,C are square matrices   I was trying to prove why determinant of this matrix is equal to product of determinant of A and C.   Can anyone help me?   Also, If I have A 0                  0 I  ,where I is identity matrix, then determinant of this matrix is equal to A B          0 I  for B is any square matrix?


When we trying to differentiate a function $y=f(x)$, we are actually finding the rate of change of $y$. But what do we exactly mean by differentiating both sides of the equation, say $x^2+y^2=1$, with respect to $x$?  Another question is that we know that some functions are not differentiable, is it true that there are also some equations that cannot be differentiated on both sides with respect to $x$? If yes, what are the conditions? If no, why not?


How to add StartUp application in Arch Linux

I am using Arch Linux, I want to add a start-up program in Arch Linux. How to add start-up program which will execute after login after every boot ?  Note: I am not system administrator, I am just a user and I don’t have any special privileges.


How to check a valid contact number in PHP

I want to check a valid contact number:-   The number may or may not start with a + sign. The number may contain space and hyphen (-) sign. There should be no consecutive hyphen (-) sign. There should be no other alphabets, special characters, etc.   An example of valid contact number is + 91-8341239834 or +91 033 2664 3271  The number must not exceed 20 characters.  How can I do this?  here is my code till now:-  preg_match('/^[0-9 .\-]+$/i', $number)


Coining a gramatically right word for a newly devised method

I am writing a research paper in which a new method is devised. In this method a mathematical function is rebuilt by combining some conical functions (apexes). Is it grammatically right to name it The Apex Combination Method? Or should it be The Apexes Combination Method? Or maybe Combination of Apexes, which I don't like very much?


Prove that if f is continuous at c and $f(c)0$ such that $\forall x \in Dom(f)$ and $x$ \in $(c- \delta , c + \delta)$...

I want to prove that if $f$ is continuous at $c$ and $f(c)<y$, then $\exists \delta >0$ such that $\forall x \in Dom(f)$ and $x \in (c- \delta , c + \delta)$ implies $f(x) < y$.   I know that $f$ is continuous at $c$ and $f(c) < y$. So I should choose a $\delta$. But I am not sure how to progress after that.


Counting the the number of publications citing all of a given set of publications

I would like to specify a list of publications and find out which articles cited the ones in my list.  Is there such tool?


XeLaTeX not able to recognize Devanagari script

I am trying to use XeLaTeX to use Devanagari (and Tibetan) script directly in my code.  It seems that for some reason, XeLaTeX is not able to recognize the Devanagari characters I put into the .tex file.  The problem seems to be something to do with the set up on my system, as others are able to compile the same or similar .tex files with good results.  When I compile, however, I just get question marks instead of Devanagari characters.  Here is a simple MWE that gives me a row of question marks.  "Nakula" is a Devanagari font installed on my system (Mac OS Yosemite):  \documentclass{article}  \usepackage{fontspec}  \begin{document}  \setmainfont{Nakula}  शारदा शारदाम्भोजवदना वदनाम्बुजे। सर्वदा सर्वदास्माकं संनिधिं संनिधिं क्रियात्।।  \end{document}    Here is an excerpt from the transcript of the compilation, which seems to suggest somehow the font is not being accessed properly.  I am certain that normally Nakula does work in this way with XeLaTeX, as I have seen examples others have made using it:  ................................................. . fontspec info: "no-scripts" .  . Font Nakula does not contain any OpenType `Script' information. ................................................. \g__fontspec_family_Nakula_int=\count121 ................................................. . fontspec info: "no-font-shape" .  . Could not resolve font Nakula/BI (it probably doesn't exist). ................................................. ................................................. . fontspec info: "no-font-shape" .  . Could not resolve font Nakula/B (it probably doesn't exist). ................................................. ................................................. . fontspec info: "no-font-shape" .  . Could not resolve font Nakula/I (it probably doesn't exist). ................................................. ................................................. . fontspec info: "defining-font" .  . Font family 'Nakula(0)' created for font 'Nakula' with options . [Ligatures=TeX]. .  . This font family consists of the following shapes: .  . * 'normal' with NFSS spec.: . <->"Nakula/OT:mapping=tex-text;" .  . * 'small caps' with NFSS spec.: .  . and font adjustment code: .  .................................................  [1  ]


How get emoji character from json_decode and store theme in mysql table

I get data from file_get_contents method and convert this data to JSON but when data contain an emoji character, I cannot give this field in JSON file and store it in database. I changed table collation to utf8mb4_general_ci but do not work my code   $update = file_get_contents("php://input"); $update = json_decode($update, JSON_UNESCAPED_UNICODE);   I tried to get JSON in $update and I also tried method below:    $firstname =isset($update["message"]["from"]["first_name"]) ? $update["message"]["from"]["first_name"] : ""; $lastname = isset($update["message"]["from"]["last_name"]) ? $update["message"]["from"]["last_name"] : "";


How is "had been" used in English sentences?

In writing a paragraph, how can we use "had been" sometimes, but on other occasions we can use "was" rather than "had been"? So, how do I decide which to use?


how can I add the charge and the counter ions to my complex? I'm using chemfig.  \schemestart \chemname{\chemleft[\chemfig{Ni (<:[1]OH_2) (-[2]OH_2) (<:[3]OH_2) (<[5]OH_2) (-[6]OH_2) (<[7]OH_2) }\chemright]}{\ce{[Ni(OH2)6]Cl2}} \schemestop     Thanks!


Similar Matrices and Linear Transformations

There is a theorem in the course notes but the lecturer didn't given the proof:   If $A,B\in M_n(K)$, where $K$ is a field. Then $A\sim B$ if and only if they represent the same linear transformation $T$ of an $n$-dimensional vector space $V$ over $K$ with respect to bases $\mathcal{B}$ and $\mathcal{C}$. i.e.,  $$ A\sim B\iff A=[T]_\mathcal{B},\ B=[T]_{\mathcal{C}}. $$  I know how to prove the '$\Leftarrow$' but I dont think I can prove the other direction '$\Rightarrow$'.   Could please somebody help me?


I am attempting to add a value to a list at a specific index, which according to everything I've read, should be do-able with List's Insert() method.  Except I'm getting the exception "Index must be within the bounds of the List. Parameter name: index`  Here is my complete sample code.  class Program {     static void Main(string[] args)     {         MyList myList = new MyList();     } } class MyList : List<int> {     public MyList()     {         this.Capacity = 2;         this.Insert(1, 0);     } }   Is the only option to change to a nullable list type and call .Add(null) for each index and not use Insert()?


I was rendering this scene (on cycles) to test out the lighting in my upcoming animation project but for some reason the render had blue stuff all over it, I tried to see if it had to do anything with the glossy floor reflection, or maybe the dark setting of the lighting. But I still got the same results. I also tried the same scene for eevee and the blue stuff was not there.


StandardScaler to whole training dataset or to individual folds for Cross Validation

I'm currently using cross_val_score and KFold to assess the impact of using StandardScaler at different points within data pre-processing, specifically whether scaling the entire training dataset prior to performing cross validation introduces data leakage and what the effect of this is when compared to scaling the data from within a Pipeline (and therefore only applying it to the training folds).  my current process is as follows:  Experiment A   Import the boston housing dataset from sklearn.datasets and split into Data (X) and target (y) create a Pipeline (sklearn.pipeline), that applies StandardScaler before applying linear regression Specify the cross validation method as KFold with 5 folds Perform cross validation (cross_val_score) using the above Pipeline and KFold method and observe the score   Experiment B   Use the same boston housing data as above fit_transform StandardScaler on the entire dataset Use cross_val_Score to perform cross validation on again 5 folds but this time input LinearRegression directly rather than a pipeline Compare the scores here to Experiment A   The scores obtained are identical (to around 13 decimal places) which I question as surely Experiment B introduces Data Leakage during cross validation.  I've seen posts stating that it doesnt matter whether scaling is done on the entire training set before cross validation, if this is true I'm looking to understand why, if this isn't true I'd like to understand why the scores can still be so similar despite the data leakage?  See my test code below:  import numpy as np import pandas as pd from sklearn.pipeline import Pipeline from sklearn import datasets  from sklearn.preprocessing import StandardScaler from sklearn.svm import LinearSVC from sklearn.model_selection import KFold, StratifiedKFold  from sklearn.model_selection import cross_val_score, cross_val_predict  from sklearn.linear_model import LinearRegression  np.set_printoptions(15)  boston = datasets.load_boston() X = boston["data"] y = boston["target"]   scalar = StandardScaler() clf = LinearRegression()  class StScaler(StandardScaler):     def fit_transform(self,X,y=None):         print('Length of Data on which scaler is fit on =', len(X))         output = super().fit(X,y) #         print('mean of scalar =',output.mean_)         output = super().transform(X)         return output   pipeline = Pipeline([('sc', StScaler()), ('estimator', clf)])  cv = KFold(n_splits=5, random_state=42)  cross_val_score(pipeline, X, y, cv = cv)    # Now fitting Scaler on whole train data   scaler_2 = StandardScaler() clf_2 = LinearRegression()  X_ss = scaler_2.fit_transform(X) cross_val_score(clf_2, X_ss, y, cv=cv)   Thanks!


How to install Ubuntu in parallel with Windows 10?  The wubi installer doesn't work and even the Boot from USB when trying to install does not process


Do I have to apply the same kind of transformation and scaling to all data?

I'm new to machine learning and currently learning it, and I do not quite understand the topic of continuous data transformations for machine learning. If I have 6 pandas columns of continuous data, for instance: [age, weight, mean_blood_glucose, std_blood_glucose, skew_blood_glucose, kurt_blood_glucose], when I apply a Box-Cox Log Power Transform to mean_blood_glucose since it's heavily skewed, would I also have to apply the same transformation to all other continuous data, or is it alright to use different transformations based on the skewness and outliers of a specific column? Same with scaling, for instance, Normalization or using MinMax scaler, is it good to scale every feature between <0; 1>? Also, what about the columns X_blood_glucose?.. They're all related, is there a special approach to dealing with data that are strongly mathematically related in such way?


I know that Greatest common divisor of two positive integers $a$ and $b$ is the largest positive integer that divides both $a$ and $b$, but how can I use that to prove that $\gcd(a, b) = \gcd(a, b-a)$.


Derivative of sin^-1 x using First Principles

I found this explanation in my math textbook and haven't found this method in any online tutorials. Here are the first few lines of finding the derivative of $\sin^{-1} (x)$ using First Principles:  Let $y = \sin^{-1} (x)$. Then, $x = \sin (y)$ and so $x + \delta x = \sin (y + \delta y)$  As $\delta x$ -> $0$, $\delta y$ -> $0$  Now, $\delta x = \sin (y + \delta y) - \sin y$  ∴ $1 = {\sin(y + \delta y) - \sin y}/\delta x$  or, $1 = { \sin(y + \delta y) - \sin y / \delta x }$  $\delta y/\delta x$  and the limits on both sides are taken and lived happily ever after.  My Question: In the last step, where does the $\delta y/\delta x$ come from?  Any help is greatly appreciated.


Choosing between .bashrc, .profile, .bash_profile, etc

This is embarrassing, but after many years of using POSIX systems full time, I still have a hard time figuring out if a shell customization should go in .bashrc, .profile, or somewhere else. Not to mention some of the OS-specific config files like .pam_environment.  Yes, I know how to puzzle through the documentation and learn when each file is or isn't loaded. What I'm wondering is if anyone has every put together comprehensive guidelines for how to decide which file to put a given type of customization in.


Connecting an ac-dc adapter and a battery in series

Can we connect a 12v adapter and a 12V battery in series to get a 24V output ?


Can a function be differentiable at the end points of its (closed interval) domain?

Assume $f$ has a domain of $[a,b]$. Is it possible that $f$ is differentiable on the closed interval $[a,b]$, or must the maximal domain for $f'$ be $(a,b)$?


Usage of 'will' and 'would' in a question

What is the difference between     When will XYZ bank release the results of clerks?   and     When would XYZ Bank release the results of clerks?   Which one is the formal way to ask the HR of the bank.  Please explain the difference between 'will' and 'would' (in a question) with examples.


I have downloaded the install-progress.cc file which is the same as .   I have tried following  and even  instructions to enable the progress bar in the terminal, but even if I run apt processes I don't get the progress bar.   What am I doing wrong? Can someone please help me?


Let VMware keep focus when mouse is outside of window

I'm using VMware player 16 on win10. As soon as my mouse moves outside of the VM I can no longer type in the VM. My expectation is that I should have to click on another window before I can no longer type in the VM. If I move the mouse outside of the window I can no longer type, but once the mouse moves back inside of the window I can type again. Can anyone advise on how to retain the ability to type when the cursor is outside of the window?


MBPro retina 10.14.2 512 G SSD  Ubuntu running nicely on dual boot from 32G USB stick. Only niggle - no mods or downloads are saved - next boot runs the original setup.


Auxiliary "do" in questions, sometimes mandatory, sometimes not

I have doubts about the "do" auxiliary in questions, and its use, and what makes it mandatory.   Is it true that "How many XXX have you got?" is wrong?   And why do you have to put the auxiliary here, I'd like to see the grammar rule   (How many XXX do you have?) Some people says it's okay, some, it's not.  It seems that, when you add something, it becomes "always correct". How many kids have you got raised/have?    what's the difference, and what really make the auxiliary mandatory in one case, and not in the other one? Do you really have to put "do" to connect "How many..." clause and "you have"? What is the written rule in books.   Why can you say "Have you got XXX?" and "Do you have XXX"? What was the English language evolution?     Was the latter not correct in British English, and later became right in American English, or something like that? Or both had always been correct, and it's only a cultural preference.


how to fix "'Error:BrokenCount>0'" after a failed attempt to install virtualbox-5.1

"An error occurred.Please run the Package Manger form the right-click menu or apt-get in a terminal to see what is wrong.The error message was:'Error:BrokenCount>0'.This usually means that your installed packages have unmet dependencies." the software center is showing virtualBox 5.1 and saying: " fail to satisfy all dependencies ( broken cache), i red the posts relevant to this error but didn't help.


Something I often find myself doing is drag and dropping text one website into another app (e.g. Notes). Using the trackpad, the process works as I expect it to. However, when I use my external mouse (regular mouse, a Logitech G403), I have to do this:  Select the text I want to drag Click and hold the left mouse button for about a second over the selected area Start dragging  Skipping step 2 will simply cause the OS to ignore my old selection and start a new one. How can I disable this behavior so I can immediately start dragging a selected text area? Tested in Safari and Edge browsers, Catalina 10.15.6


A regular expression that matches strings that don't start with a set of words

I have a regular expression that matches strings that start with either the word "db" or the word "admin":  /^\/(db|admin)\//   I'm refactoring my code and my requirements have changed: Now I need the opposite, i.e. a regular expression that matches strings that don't start with one of those two words. Is this possible with regular expressions?  Note: I cannot use JS API - the regular expression is inserted in Express.js's app.all(path, callback) method directly (as the path).


After installing iOS 10, I found that the screen on my iPhone 6s turned on at seemingly random times, and it slightly annoyed me. I now know that this feature does what it is supposed to (turn the screen on when the phone enters certain positions), but I want to disable it.  Is there a setting can I use to do so?


Rollover 401k to IRA or another 401k in the future

I have a 401k from my previous employer but currently working at a contract-to-hire position and have no 401k. Would it be a better idea to roll the 401k into an IRA or wait until I have another 401k and roll into that? I also have a Roth IRA and was curious if a non-Roth 401k can be rolled into a Roth IRA.


How does storing the regular expression in a shell variable avoid problems with quoting characters that are special to the shell?

From      Storing the regular expression in a shell variable is often a useful way to avoid problems with quoting characters that are special to the   shell. It is sometimes difficult to specify a regular expression   literally without using quotes, or to keep track of the quoting used   by regular expressions while paying attention to the shell’s quote   removal. Using a shell variable to store the pattern decreases these   problems. For example, the following are equivalent:  pattern='[[:space:]]*(a)?b' [[ $line =~ $pattern ]]       and  [[ $line =~ [[:space:]]*(a)?b ]]       If you want to match a character that’s special to the regular   expression grammar, it has to be quoted to remove its special meaning.   This means that in the pattern xxx.txt, the . matches any   character in the string (its usual regular expression meaning), but in   the pattern "xxx.txt" it can only match a literal .. Shell   programmers should take special care with backslashes, since   back-slashes are used both by the shell and regular expressions to   remove the special meaning from the following character. The following   two sets of commands are not equivalent:  pattern='\.'  [[ . =~ $pattern ]] [[ . =~ \. ]]  [[ . =~ "$pattern" ]] [[ . =~ '\.' ]]       The first two matches will succeed, but the second two will not,   because in the second two the backslash will be part of the pattern to   be matched. In the first two examples, the backslash removes the   special meaning from ., so the literal . matches. If the string in   the first examples were anything other than ., say a, the pattern   would not match, because the quoted . in the pattern loses its   special meaning of matching any single character.   How is storing the regular expression in a shell variable  a useful way to avoid problems with quoting characters that are special to the shell?  The given examples don't seem to explain that. In the given examples, the regex literals in one method and the values of the shell variable pattern in the other method are the same.   Thanks.


Why do I see router and not my real IIS?

I am trying to access IIS through web but unable to do so. Basically I have a router (which functions as router and modem) that is given by ISP and I have another router connected to the router given by ISP. My ISP's router can be visited through 192.168.0.1 and the router that I connected to ISP's router can be visited through 192.168.1.1  Please see my ISP's router:    As you can see I have DMZ enabled for my router of 192.168.1.1  Now please see my router of 192.168.1.1:    As you can see I added a virtual server for port 80 where 192.168.1.125 is my private IP.  I rebooted both of my modems an tried to visit my IP from:   and after doing so, when I type my live IP I still see my router of 192.168.0.1 instead of my IIS. What am I missing?  Note: I have disabled Firewall on both of the routers.  Any help would be appreciated.


Let $(X,\mathscr U)$ be a uniform space. Then why does $\mathcal N_x=\{U[x]\ |\ U\in\mathscr U\}$ form a neighborhood base for $x\in X$?

Let $(X,\mathscr U)$ be a uniform space, i.e. $X$ is a set and $\mathscr U\subset 2^{X\times X}$ is a filter such that    $\Delta\subset U$ for all $U\in\mathscr U$ $U\circ V,U^{-1}\in\mathscr U$ for all $U,V\in\mathscr U$ For all $U\in\mathscr U$, there exists some $V\in\mathscr U$ such that $V\circ V\subset U$   where we define $$U^{-1}=\{(y,x)\ |\ (x,y)\in U\}$$ and $$U\circ V = \{(x,z)\ |\ (x,y)\in U,(y,z)\in V\hbox{ for some }y\in X\}.$$ Furthermore we define $$U[x]=\{ y\in X\ |\ (x,y)\in X\}.$$  Meanwhile, for any set $X$ and family of filters $(\mathcal N_x)_{x\in X}$ in $X$, we say that $(\mathcal N_x)_{x\in X}$ forms a neighborhood filter base if   $x\in N$ for all $N\in\mathcal N_x$ For all $N\in\mathcal N_x$, there exists some $M\subset N$, $M\in\mathcal N_x$ such that $y\in M$ implies that $M\in\mathcal N_y$.   A neighborhood filter base thus defines a topology $\tau$ on $X$. Note that we still have a topology $\tau$ on $X$ if we remove condition 2, but in that case, $\mathcal N_x$ might not be the neighborhood filter associated with $\tau$ at $x$.  Now, if we set $\mathcal N_x=\{U[x]\ |\ U\in\mathscr U\}$ for all $x\in X$, then it is clear that $\mathcal N_x$ is a filter satisfying condition 1, but I have yet to succeed in proving condition 2. I suspect I must use conditions 2 and 3 for the definition of a uniform space, but I don't see how.


deleting an answer as others poured the same quickly

I am often getting into this situation where I give an answer to a question and by the time I post it, others also provide almost the same answer. Now people who answered along with me are commenting that how my answer is different from them. I am bit embarrassed and I honestly tell that by the time I posted my answer, other answers also posted just in a matter of minutes.  So later I will delete my answer since there are multiple same answers provided.   Instead of deleting my answer what are the other alternatives I can do here? Is there a scope to add some feature for these type of scenarios?


Pigeonhole proof of the existence of two numbers with given sum

Let $|W|=m+1$ and $W$ be a subset of $X=\{1,2,3,\dots ,2m\}$ ($m$ is any natural number).   Prove there exists two numbers in $W$ whose sum is $2m+1$.    Can anyone give me a hint to prove this? I know I should be using the pigeonhole principle.


The Impossible puzzle ("Now I know your product")

I am trying to figure out this impossible problem by Martin Gardener and still havent found a suitable solution or link to it     Two mathematicians S and P are discussing two   unknown integers, both greater than 1. S knows only the sum of the   numbers, whereas P knows only their product.:      S: "I see no way you can determine my sum."    P (after a suitable delay): "That didn't help me. I still don't know your sum." S (after   another delay): "Now I know your product." What are the two numbers?   I have seen the answers on the xkcd wiki link for this at  say 13 and 16 and it checks out mathematically but then there are more ambiguous responses and most of the attempts seem brute force rather than logic.  My question is two fold   How to solve this problem logically? Are there more answers then 13,16 or this answer is the only one even as the upper bound k(upper bound on answer) shifts higher


I want to show a table of fixed width at the center of browser window. Now I use  <table width="200" align="center">    But Visual Studio 2008 gives warning on this line:  Attribute 'align' is considered outdated. A newer construct is recommended.  What CSS style should I apply to the table to obtain the same layout?


Why is saltatory conduction in myelinated axons faster than continuous conduction in unmyelinated axons?

How does spacing apart sodium and potassium channels allow the action potential to travel faster down the axon? This is the reason always cited for saltatory conduction and myelination, but my mental model of conduction tells me that the density of ion gates along the axon should not affect the speed of the AP.   To illustrate, consider a myelinated axon. A wave of Na$^+$ from action potential site 1, a node of Ranvier, rushes into and quickly diffuses down the axon. (It travels in both directions, but backwards is still in the refractory period.) It diffuses through the myelinated region, its concentration always diminishing. Before it attenuates too much, however, it happens upon node of Ranvier 2, where it triggers another action potential. A new wave of Na$^+$ rushes in and the cycle repeats. This should be plain so far.  Now imagine that there is actually a node of Ranvier halfway between node 1 and 2, called node 1.5. The wave of Na$^+$, on its way to node 2, happens to trigger an action potential at node 1.5, from which a wave of Na$^+$ pours in and either boosts the original wave or replaces it by taking its momentum. Now the reinforced wave proceeds to node 2 and triggers it just as soon as, perhaps even sooner than, if node 1.5 had not existed. Repeatedly insert nodes at higher densities until the situation is simply lack of myelination, and we conclude that unmyelinated axons can transmit an action-potential-triggering wave of Na+ as fast as or faster than a myelinated one.  In short, my point of confusion is this: I cannot see how a higher density of gated channels can possibly slow down the wavefront of Na+ that triggers action potentials. If anything, the additional influxes of Na+ should speed up the all-important wavefront, assuming that new waves really "either boost the original wave or replace it by taking its momentum", and also assuming that the wavefront of Na$^+$ is really all-important for signal transmission, and also assuming that the mere presence of (voltage?) gated ion channels in the membrane does not significantly retard the wavefront.  But the usual explanation for why saltatory conduction is faster than continuous conduction (a fact I hope is empirically and unambiguously established) relies on the putative slowing effect of ion channels on the signal fore. Please explain this effect in more detail, if it is not a misconception.


Show output on another "screen" and return to normal when done

I want a similar behavior as less vim nano etc. uses.  Is this possible to achieve with bash?


I see one of my friends posted this status:  "Halloween celebration @ MBC - One of the last shots I'll be taking here"  Anyone could explain why she uses "I'll be taking" but not "I will take"? any difference between these two uses


Diffrence between 'compared to' and 'compared with'

The gross NPA ratio as of end Dec. was  13 % as compared with 8 % a year earlier .   What would be the difference if I wrote compared to in this sentence?   Please explain the use of compare to and compared with.


How to obtain the equation of a predictive interval around the regression line in R?

I have a some data set on which I fit a linear regression model using the lm function in R. I can also visually obtain the prediction Interval around that regression line using predict. My question is how is that prediction interval line computed?? Can I obtain the equation of that line in R?


Value of $f(2016),$ If $f(x) = f(2x)\forall x \in \mathbb{R}$ are given

If $f(x) = f(2x)\forall \; x \in \mathbb{R}$ and $f(x)$ is continuous for all $x\in \mathbb{R}$ and $f(5) = 10,$ Then $f(2016) = $   $\bf{My\; Try::}$ Let $0<x<1$  Then $f(x)=f(2x) = f(2^2x) = f(2^3x)=......=\lim_{n\rightarrow \infty}f(2^nx) = f(0)=\bf{Constant}$  and when $x>1$  Then $\displaystyle f(x) = f\left(\frac{x}{2}\right) = f\left(\frac{x}{2^2}\right)=f\left(\frac{x}{2^3}\right)=.......=\lim_{n\rightarrow \infty}=f\left(\frac{x}{2^n}\right)=f(0)=\bf{Constant}$  But I did not understand How can we solve for $x<0$ and $x=0$ and for $x=1$  Help Required, Thanks


Is time a byproduct of mass in some sense?

From common knowledge we know that all massless particles move at the speed of light, is that right? If so, since they move at speed of light they don't experience time but particles with mass can't obtain speed of light (at most they can reach near the speed of light). Does this mean time is a manifestation or result of mass in some sense?


Can batteries be charged and discharged at the same time? And do they wear down faster when doing so?

Imagine batteries connected to a charge controller and a load at the same time. When the load asks for power, and the charge controller delivers power, there are three possible situations:   P_in > P_out: there is netto power going into the battery: charging P_in < P_out: there is netto power going out of the battery: discharging P_in = P_out: battery keeps unchanged   The power that the battery loses/gains is |P_in - P_out|, but in the system as a whole there's flowing a lot more current than that. Does all the current go through the batteries in this system? Or is there no current flow through the battery in situation 3 (such that the current is flowing directly from the charge controller to the load).  Do the batteries wear down in situation 3? Or are they just completely unused then?  EDIT: I think my question is different than the so-called duplicate, since it's more about the physical working of the battery. I made a basic diagram about my question as asked by Olin Lathrop:   So the question boils down to: are the light green and pink currents present (comparable to a dynamic equilibrium state in a PN-junction at rest due to drift and diffusion, when there's also a lot of electrical current flowing throught the component but no net measurable current), which would make the battery wear down? And if they're not, why? Is "path of least resistance" a sufficient reasoning to state this?  Also I am not completely satisfied with the answer given in the other topic, since he tells it depends on the kind of charge controller. If the charge controller delivers e.g. 24W at 24V (so 1A) and the load asks 12W, why wouldn't that current go to the load? Or would the charge controller then deliver only .5A due to the applied resistance (the load), and neglegt the battery? And what will happen with the rest of the energy that the charge controller receives from its source (which is thus 24W-12W=12W)? Will it be dissipated somewhere?  I am talking about a system where charge controller, battery and load are always connected (a stand-alone solar electric system).


Could Autorun Virus, affect my PC via Wine?

I have installed wine and I am afraid that viruses will affect my PC now. I will not open any other .exe file other than mine one (which I use everyday)


I have a geojson file, but it's way too heavy for the app I need to develop  I'd like to know what alternative do I have to make it lighter.  I was thinking about simplifying it's shapes, and also turning to topojson.  Could you recommend me some tool to achieve this?  --  Edit: I saw the other thread stating how to convert to topojson, but I'd also like to simplify the shapes, they are much too detailed for the visualization I'm working on.


I'm retrieve a list of paths stored in a json file, I'm not having trouble receiving the path but I get the error undefined reference to `objectFactory::objList[abi:cxx11]' When i try to add the path to a static vector of the same class. I tried changing the types of both to see if maybe it was an issue where it was looking for a variable with the same name but a different type, but alas the issue remained. I also tried to set the vector to be another vector of the finalized list but that didn't solve the issue. objectFactory.h:  #ifndef PROJECT2DTD_OBJECTFACTORY_H #define PROJECT2DTD_OBJECTFACTORY_H #include <vector> #include <string> #include <fstream> #include <nlohmann/json.hpp>  class objectFactory { public:     static void genObjList(); private:     static std::vector<std::string> objList; };  #endif //PROJECT2DTD_OBJECTFACTORY_H  objectFactory.cpp #include <iostream> #include "objectFactory.h" using json = nlohmann::json;  void objectFactory::genObjList() {     auto file = json::parse(std::fstream("assets/objects/objectList.json"))["objects"];//[0]["path"]     for(auto i = 0; i != file.size(); ++i) {         auto path = file[i]["path"].get<std::string>();         objList.emplace_back(path);     } }  Does anyone know what I might be doing wrong?


SSH tunneling error: "channel 1: open failed: administratively prohibited: open failed"

When I open this ssh tunnel:  ssh -nXNT -p 22 localhost -L 0.0.0.0:8984:remote:8983   I get this error when trying to access the HTTP server running on localhost:8984:  channel 1: open failed: administratively prohibited: open failed   What does this error mean, and on which machine can you fix the problem?


Nesting standard type traits with SFINAE fails to compile with g++ 4.8

What is the correct process to pass a standard type traits qualified type as an argument to a template class?  I have the following (rather useless but useful to depict my problem) program that qualifies a type via standard type traits before passing to a template class.   #include <iostream> #include <type_traits> #include <vector> template <typename T> struct is_foo {     static bool const value = true; }; template<     typename Ty,     bool foo = is_foo<std::remove_reference<Ty>::type>::value > struct bar {     static bool const value = true; }; int main() {     int elem;     std::cout << bar<decltype(elem)>::value << std::endl;     return 0; }   This program compiles fine with VC12 but fails to compile with g++ 4.8 with the following error  prog.cpp:11:51: error: type/value mismatch at argument 1 in template parameter list for ‘template<class T> struct is_foo’   bool foo = is_foo<std::remove_reference<Ty>::type>::value                                                    ^ prog.cpp:11:51: error:   expected a type, got ‘std::remove_reference< <template-parameter-1-1> >::type’ prog.cpp: In function ‘int main()’: prog.cpp:18:33: error: template argument 2 is invalid   std::cout << bar<decltype(elem)>::value << std::endl;                                  ^   Any idea what might be wrong with my code?   Note If you need to play with the code, here is a version in  Note Also, it would be quite beneficial if you can refer me back to the standard. Note If I remove the std::remove_reference call, bool foo = is_foo<Ty>::value my code compiles fine. Refer


Proving identities like $\sum_{k=1}^nk{n\choose k}^2=n{2n-1\choose n}$ combinatorially

I have to give a combinatorial proof of  $$\sum_{k=1}^nk{n\choose k}^2=n{2n-1\choose n}.$$  I find it difficult to solve such problems. I'm not a brilliant person and never will be so I need to have algorithms to solve most problems. Usually I won't just "see" solutions unless I have a thorough enough understanding of a theory. This is also the case here. I know what the symbols mean, but I don't see what I should count and how to obtain the identity.  I think the right-hand side counts $n$-element subsets of a $(2n-1)$-element set with one element chosen to be "special". I think I should find a partition of the set of such subsets into $n$ parts so that the left-hand side is the sum of the cardinalities of the parts. Is there $n$ of anything on the right-hand side? Well, there are $n$ choices for the "special" elements, but only after I've chosen the $n$-element subset. Otherwise I can choose the "special element" in $2n-1$ ways.  This is a homework problem so I probably shouldn't ask for a full solution. But I would like to have some guidelines for approaching such problems, perhaps based on this example.


The default defuse node missing from node editor - i have tried repairing / did a reinstall -- changed the cycles render // chose use node editor from the material tab. Blender 2.78c. I cannot insert or create a new node.  here is the screen shoot.


I have an ISO File & I WOULD LIKE to burn it on my USB . how Can I do that please thank you


I have my musics in another partition of the HD, and I would like that, on login, the partition to be auto-mounted, so I can just open the media player and listen to my music. Is there a way?


What is most efficient way to reverse a string in .net?

I can find no String.Reverse() in .net that actually returns a string. (Any reason why there is none?) What would the most efficient code (least temp objects created etc) for reversing a string in .net be?


Which version is correct and normally used, "between you and me" or "between you and I"?

I was listening to the song  by Eminem. I've listened it before many times but from the time I've started learning English grammar I am getting confused while reading or listening English. This time I got stuck at the line "Too much pride, between you and I Not a jealous man but females lie". The phrase "between you and I" always sounded correct to me. But recently I learned that me is only used as an object and hearing that phrase sparked my head. Then I searched over the net and found on  that it is actually a hypercorrection.  says,      "...according to many grammarians and stylists a pronoun in a prepositional phrase in English is supposed to be in the oblique case...   ...though there is still disagreement on whether the phrase itself in today's language is grammatically correct or not."   My first question is, why is there a disagreement? Don't we always use the object form in the oblique case? If not then what are those cases?  Secondly, I want to know how common the phrase "between you an I" is? Is it used colloquially by common native English speakers. By common speakers I mean who don't bother grammar. I searched on  and got some results, e.g. . I found the phrase in another song -- . Is it a common mistake among native English speakers or is it used to give some special linguistic affect? I think this phrase has some linguistic affect that is why the singer would have given the name of her song "Between You and I". Because no one would like to use incorrect English in the title of a song, it must have some purpose.


Is there any advantage of signup before login with social plugins?

I am building a site and was thinking about if there should be a signup option at all.  I found the question about the  but there was neither an accepted answer nor enough responses.   What is the advantage of having to signup using Facebook/Google in the first place? As I see it, a direct login simply would imply checking if the email exists in your database and if not add that info. Since, this would be just a one time operation, I don't believe that a one time insert would take too much time or ruin user experience. Am I wrong on this part?  Then I see many major sites including SO using the signup with Google etc. so there must be something to signup before login.  Can somebody please explain why to sign up users at all?


What spell targets count for the Graviturgy Magic wizard's Gravity Well feature?

The  feature from the  (EGtW, p. 185) triggers "whenever you cast a spell on a creature", and has an effect "if the target is willing to move, the spell hits it with an attack, or it fails a saving throw against the spell." It's not clear to me what kinds of spells can actually trigger this feature. Based on the singular phrasing of "on a creature" and the later use of the word "target", I would normally read this as only applying to spells that explicitly target creatures (and perhaps only those with a single target, in contrast to the phrasing of the  feature of the  wizard, for example). However, spells that target a location can use the word target in a different sense (see ). What's actually going on here? Does this feature only work on targeted spells? Or does it function for area of effect spells as well? Or is this just an ambiguous phrasing that will rely on the DM's ruling?


Difference between "think of" and "think about"

Is there a difference between "think of something" and "think about something"? I've also met "have heard of/about something".


What does the 'to' mean when the word is used in the newspaper?

I saw the sentence like 'The president to agree with the opinion.'in the news paper. I can understand the meaning of the 'to' in the sentence. Maybe I think that 'to' means 'will'. Am I right? If I am wrong, What is the right meaning of 'to' in the sentence? Please, tell me.


Proof that every Principal ideal domain is Noetherian

I would like to know if my logic is sound.   We know that in every principal ideal domain, every ideal is multiplicatively generated.   Thus, for $a \in R$ we have: $aR = ${$ra: r \in R$}  Thus every ideal has a limit on size, right? So eventually our ascending chain of ideals will have to be the same for some ideal eventually?  Is that correct? It seems a bit too easy