How to append comma seperated values to url as search params using history.pushsate. with use of , RFC 3986, specifies that URI path components should not contain unencoded reserved characters and comma is one of those reserved characters. .   code  window.history.pushState('new', 'inventory', '/new');  Desired result  https://www.test.com/new?Year=2020,2019&amp;Pricerange=10001-20000,20001-30000,30001-40000&amp;Mileagerange=1001-2000,2001-3000&amp;Bodystyle=4dr%20Car,Convertible   Data i wanted to append  {   "year": [     "2017",     "2018"   ],   "model": [     "Escape",     "Edge"   ],   "mileage": [     "1-1000"   ],   "bodyStyle": [     "Convertible",     "4dr Car",     "2dr Car"   ],   "priceRange": [     "$20,000-$30,000",     "$30,000-$40,000"   ] }
How do you safely encode a URL using JavaScript such that it can be put into a GET string?  var myUrl = "http://example.com/index.html?param=1&amp;anotherParam=2"; var myOtherUrl = "http://example.com/index.html?url=" + myUrl;   I assume that you need to encode the myUrl variable on that second line?
How can gravity affect light? I understand that a black hole bends the fabric of space time to a point that no object can escape.   I understand that light travels in a straight line along spacetime unless distorted by gravity. If spacetime is being curved by gravity then light should follow that bend in spacetime.  In Newton's Law of Universal Gravitation, the mass of both objects must be entered, but photon has no mass, why should a massless photon  be affected by gravity in by Newton's equations?  What am I missing? Story about main character with regeneration powers I read a book 10+ years ago where the world was ruled by various factions, each one had a special ability of some sort. The main characters faction had regenerative ability. Another faction had the ability to speed up or slow down time. I am not sure of the plot, but I know at one point he is injured so badly he starts growing a clone which he attempts to kill, but comes back later in the story.    Any ideas? How can I get exactly 5 logarithmic divisions of an interval? How might I schedule a C# Windows Service to perform a task daily? I've got a development webserver on an Ubuntu box inside of VMWare Workstation 7.1.3. I'd like to run a web browser on a Windows machine (the host OS) for actually testing a web page I'm working on -- hard to run IE tests in Ubuntu :)  However, if I simply try to ping the IP given to the ubuntu VM (192.168.83.137) (or open it in my browser for that matter), it seems the host cannot communicate with the guest.  How do I allow the guest OS to communicate with the host when the guest is running in NAT mode? Apply display settings to all user accounts? Commandline shortcut for current directory similar to ~ for home directory? When i use the cp or move command in a terminal window, i'm currently with bash in a certain folder like this.  NES@server:~/Desktop/dir1$   And now i wanna copy a file from here ~/anotherdir/dir2 into the current chosen folder in bash (dir1) i would use the command  cp ~/anotherdir/dir2/file ~/Desktop/dir1   does a shortcut string exist to refer to the current chosen directory? So that in this example i don't have to provide the full path to the target dir, but the command knows it should use the current chosen directory in bash? i.e. as ~ stands for the home directory? I have been using and making LED flashlights for years now and I am VERY familiar with all of the circuitry and technology inside of them, but I just got my first LED house light bulb that runs off of 110v AC electricity.  It is very similar to a flashlight - it has a large heatsink, and 1 or more LEDs inside of it (brand and specs of emitters, I do not know).  The part that I am most curious about is how the electricity from the socket gets to the emitter.  In a flashlight the power comes from a DC battery through a current regulator (LED driver) and into the LED itself.  This is not difficult because the voltage of common LED emitters is about the same voltage as Lithium batteries (3.7v, 7.4v, etc) which makes the current limiting relatively simple coming from a one or two cell light.  How does this work for a high voltage AC bulb?  Is there a transformer and rectifier inside of EVERY bulb (I sure hope not), or are the emitters manufactured to run off of 110v AC power and just use half of the wave cycle? How do I reset my manor so I can rebuild it with different options? Calculation of limit without stirling approximation $\lim n^n/(e^nn!)=0$ using Stirling approximation it is obvious. But can we do it without using Stirling approximation.  Now series with terms $x^n n^n/n!$ has ROC $1/e$. What we can say about behaviour of power series at endpoints? Do there exist general conditions under which we can conclude that continuity on a topological space is detected by $\mathbb{R}$? Whenever $X$ is a topological space, let us say that continuity on $X$ is detected by $\mathbb{R}$ iff for all functions $f : X \rightarrow Y$ where $Y$ is another topological space, we have that if every continuous function $c : \mathbb{R} \rightarrow X$ satisfies "$f \circ c$ is continuous", then $f$ is itself continuous.   Clearly, continuity on $\mathbb{R}$ is detected by $\mathbb{R}$ It is shown  that continuity on $\mathbb{R}^2$ is detected by $\mathbb{R}$. Clearly, it is not the case that continuity on $\mathbb{Q}$ is detected by $\mathbb{R}$, since every continuous mapping $\mathbb{R} \rightarrow \mathbb{Q}$ is constant.      Question. Do there exist general conditions underwhich we can conclude that continuity on a topological space is detected by $\mathbb{R}$? Is this valid for convergence? Does $\sum_{n=1}^{\infty} \sqrt[n]{3} - 1$ converge or diverge?   Hints please  I have that $0 \le \sqrt[n]{3}  - 1 \le 1$  Does this help? What's the relationship between initial eigenvalues and sums of squared loadings in factor analysis? On the one hand I read in a comment  that:     You can't speak of "eigenvalues" after rotation, even orthogonal   rotation. Perhaps you mean sum of squared loadings for a principal   component, after rotation. When rotation is oblique, this sum of   squares tells nothing about the amount of variance explained, because   components aren't orthogonal anymore. So, you shouldn't report any   percentage of variance explained.   On the other hand, I sometimes read in books people saying things like:     The eigenvalues associated with each factor represent the variance   explained by that particular factor; SPSS also displays the eigenvalue   in terms of the percentage of variance explained (so factor 1 explains   31.696% of total variance). The first few factors explain relatively large amounts of variance (especially factor 1), whereas subsequent   factors explain only small amounts of variance. SPSS then extracts all   factors with eigenvalues greater than 1, which leaves us with four   factors. The eigenvalues associated with these factors are again   displayed (and the percentage of variance explained) in the columns   labelled Extraction Sums of Squared Loadings.   That text is from Field (2013) Discovering statistics using IBM SPSS, and this diagram accompanies it.    I'm wondering     Who is correct about whether it's possible to speak of eigenvalues after rotation? Would it matter if it was an oblique or orthogonal rotation?   Why are the "initial eigenvalues" different from the "extraction sums of squared loadings"? Which is a better measure of total variation explained by the factors (or principal components or whatever method is used)? Should I say that the first four factors explain 50.317% of variation, or 40.477%? What tool can I use to manage the configuration of my Windows Server environments I help manage environments for an application that uses cloud-based Windows server VMs. The application stack consists of Windows Server 2008 and Windows Server 2012, SQL Server 2008, IIS, and SharePoint 2010. I have several environments Dev/Test/Stage/Prod. I am looking for a way to do configuration management of those environments to make sure any environmental changes are applied in a consisent way and there is a way to verify that no changes have been made to one environment that have not been made to other environments.  I have been reading up on Puppet, Chef, etc and I like the idea of doing delcarative configuration management. What is a good method or tool to use to help manage the configuration of these environments. I know a little  about SCCM but it is too expensive for this particular situation although I would still be interested in knowing if it has the capabiltiy to do those things. How does Ubiquity determine the required disk space before installation? This question intends to demystify  the desktop installer for Ubuntu, on how the required disk space before installation is being determined.  From this dated post :     [When installing] Ubuntu 12.04 alongside with Windows 7 using the Ubuntu installer, [the user] wasn't able to give Ubuntu less than 32 GB [...] and as the guide states, "Ubuntu needs about 4.5 GB to install, so add a few extra GB to allow for your files".   The required disk space was previously about 5 GB (Ubuntu 12.04), 8 GB (Ubuntu 16.04), and has since increased to 25 GB (Ubuntu 18.04), as per . In practice, the absolute minimum for required disk space may differ by installation media and machine.  The design spec via  describes the installer mockup and nothing else about how the required disk space is determined (top half screenshot).    I have clarified that Ubuntu 16.04 will require at least 8 GB disk space only on a physical machine, but the minimum changes to 8.3 GB when installing to a virtual machine (bottom half screenshot).  So how does Ubiquity determine the required disk space? Hey guys I am currently working on a scene with multiple objects.  There is one object (a wheel) that I need to rotate the origin for without rotating the wheel itself.  I have the exact angle that I need so a manual solution would be the best.  Any help would be much appreciated. I am used to parametric modeling and Blender is a little out of my depth. What is the relationship between symmetry and degeneracy in quantum mechanics? Zero to the zero power – is $0^0=1$? Could someone provide me with a good explanation of why $0^0=1$?  My train of thought:  $x&gt;0$  $0^x=0^{x-0}=0^x/0^0$, so  $0^0=0^x/0^x=\,?$  Possible answers:   $0^0\cdot0^x=1\cdot0^0$, so $0^0=1$ $0^0=0^x/0^x=0/0$, which is undefined   PS. I've read the  on mathforum.org, but it isn't clear to me. How to solve this integral? $I=\int{e^x \Big(2\log x+\frac{1}{x}+\frac{1}{x^2}\Big)dx}$ $$I=\int{e^x \Big(2\log x+\frac{1}{x}+\frac{1}{x^2}\Big)dx}$$ I have tried to use many methods of substitution  But I am aware of a formula  $$I=\int{e^x[f(x)+f'(x)]dx}=e^xf(x)+C$$  but can this formula be applied to the above equation How to create dynamic JSF form fields