append comma seperated values to url as search params 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"   ] }
Encode URL in JavaScript? 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?
I have noticed a significant number of suggested edits that attempt to fix code, or change the original meaning of someone else's post.    Is this really a good idea?    I've been on StackOverflow awhile, and among the editors who have sufficient reputation to edit without approval, I've never seen anyone modify the technical content or meaning of someone else's post.   I would consider obvious syntax and spelling errors OK to change, but I have seen many suggested edits that change the meaning of the code that was posted, or add things to the code that have nothing to do with the original question. A good example of this would be adding parameters to a SQL command, when the question was not asking about SQL injection. Finite subgroups of the multiplicative group of a field are cyclic In Grove's book Algebra, Proposition 3.7 at page 94 is the following     If $G$ is a finite subgroup of the multiplicative group $F^*$ of a field $F$,   then $G$ is cyclic.   He starts the proof by saying "Since $G$ is the direct product of its Sylow subgroups ...". But this is only true if the Sylow subgroups of $G$ are all normal. How do we know this? I want to be able to login to a remote via ssh without having to enter the password all the time.   How do I set it up? Is a different command required to execute a password-less session? System log full of session and slice messages What is the difference between fixed effect, random effect and mixed effect models? In simple terms, how would you explain (perhaps with simple examples) the difference between fixed effect, random effect and mixed effect models? Allow linking to specific revision of revision history showing diff Currently, the only way to link to a revision (clicking "link"), you just get  which shows what the post looked like at that revision:        Personally, I rarely use this and haven't ever found myself in a scenario (as far as I remember) where I would prefer the way it currently works to what I'm suggesting here.  Could we:   Add another link, or Change the current link   Such that it:   Displays the diff on a separate page (I'd prefer this, since the highlight and scroll thing doesn't always work properly - although perhaps it has something to do with loading images, so it might not apply here, or, if it doesn't, we could fix that instead), or          Highlights and scrolls to a diff, like what is done when you link to an answer () CSOM: Identify "columns" created by user rather than built-in When iterating the fields of a list how do you know which columns are yours and which are built-in ?  I know a solution for "classic" SDK using SPField.SourceId  but I can't find one for CSOM.  I thought UserCreated was the way to go for but   So how do you tell apart theirs and mine ? Using a combination of Hidden CanBeDeleted FromBaseType ? Checking for a list of special internalNames ?          ClientContext context = new ClientContext(siteUrl);         context.Credentials = creds;         Web web = context.Web;         var list = web.Lists.GetByTitle(listName);          context.Load(list.Fields);         context.ExecuteQuery();          foreach (Field field in list.Fields)         {         bool thisColumnWasCreatedByUser =                        field .FromBaseType == false &amp;&amp;                     //this.InternalName != "Title" &amp;&amp; // builtin but I'd rather keep it                     field .InternalName != "_dlc_DocId" &amp;&amp; // probably safe                     field .InternalName != "_dlc_DocIdUrl" &amp;&amp;                     field .InternalName != "_dlc_DocIdPersistId" &amp;&amp;                     field .InternalName != "Combine" &amp;&amp; // sucks                     field .InternalName != "RepairDocument" // sucks too         }   EDIT  Mixing suggestions by Viraj Gorajia and Dikesh Gandhi, my current solution is  bool thisColumnWasCreatedByUser =  field .FromBaseType == false &amp;&amp; (!field .SchemaXml.Contains(" SourceID=\"http")) &amp;&amp; // remove "Title", "Combine", "RepairDocument"  (!field .EntityPropertyName.StartsWith("OData__")) // field .Sealed == true could be working too but I don't know if it could exclude valid results Hot and Week tabs not shown to non-logged in users (except on SO) Visiting a SE site without logging in, one can no longer access the tabs Hot and Week (except on StackOverflow). I believe this change hides the feature from those most likely to use it: casual, but repeated, visitors. A number of people visit SE sites such as Travel or Mathematics just to read the content. They have no intention to post, and consequently, no reason to register. It makes little sense to hide the Hot and Week lists from them.   I propose that the tabs  ... Hot | Week | Month should again be made visible to anonymous visitors on SE sites, as they are on StackOverflow. How do I get attention for one of my own questions without a good answer? Is there any well-ordered uncountable set of real numbers under the original ordering? I know that the usual ordering of $\mathbb R$ is not a well-ordering but is there an uncountable $S\subset \mathbb R$ such that S is well-ordered by $&lt;_\mathbb R$?   Intuitively I'd say there is no such set but intuitively I'd also say there is no well-ordered uncountable set at all, which is obviously wrong. I still struggle to grasp the idea of an uncountable, well-ordered set. I am looking for a word that would describe someone who always goes out of their way to take their time and do a good job. Sort of the opposite of half-assing something.  I am looking for something that is more about a work ethic than a technically proper way of doing things. Something like canonical or protocol would not be a good fit. This is an exam question I was practising. I have the general understanding of Linear programming, but how would you go about finding the Decision Variables, Objective function and Constraints for this?  My Opinions: Decision variables: $M_1$- # of Model $1$ to be produced $M_2$ and $M_3$(similar definition as $M_1$)  Objective function: I'd Multiple the Cost to make in house by cost to buy from subtractor  to get Minimise: $3900M_1+7500M_2+27300M_3$  Constraints: $3M_1+1.5M_2+2M_3\ge0$  $1.25M_1+2.5M_2+0.75M_3\ge8500$  $M_1,M_2,M_3\ge 5500$  No idea where number order would go? Do I use it in the Constraints and multiply by the Hours?  Now, am I on the right track? If $A,B,C$ are matrices I am thinking how to show that $$ A(B + C) = AB + AC$$  Is possible to show without sums like $\sum_i a_i, ..., \sum_j b_j$? It seems if I do the proof with many indexes then is tedious and I don't learn much from it. Prove $$\det(e^A) = e^{\operatorname{tr}(A)}$$ for all matrices $A \in \mathbb{C}_{n×n}$. How can I make my browser lie about my operating system? I'm using Chromium (Version 30.0.1599.114 Ubuntu 12.10) under Linux. I'm trying to access  that claims that it doesn't work under Linux. Of course, this is most likely crazy since the web is platform-independent (unless they're using some kind of evil plug-in).  I've used a user agent switcher to supply a Windows user agent, but to no avail. Upon viewing the source, it appears that the site is using Javascript to determine the operating system. I'm looking for a way to get my browser to report in Javascript that it is Windows or MacOS.  Do you know how to do it? Can compact sets completey determine a topology? Suppose that $\tau_1$ and $\tau_2$ are two topologies on a set $X$ with the property that $K\subset X$ is compact with respect to $\tau_1$ if and only if $K$ is compact with respect to $\tau_2$. Then is this enough information to determine whether $\tau_1 = \tau_2$?  If not (which is suspect to be the case) is there a nice counterexample, and what is the minimum amount of extra information required for $\tau_1 = \tau_2$?  I feel like there would be an issue regarding 'points at infinity.' Network account problems with mac server OSX 10.6 Snow Leopard Okay the situation is this.   Yesterday my company changed our dns server, because our former one, was too unstable to work with. anyway today i went to one of our mac server, because it needed to be configured because of the new dns server. So i tried logging in to the local admin, because it couldn't find the network account server, because of the domain shift, but it just froze when trying to log in.  Okay so I went down to our server room to get a look at it locally. I tried logging in to the local admin, but i froze again. So i tried pulled the network cable out, and suddenly i could login just fine.  I tried logging in via vnc once again and it just hanged. better than it freezing, but still a problem. so i logged in locally. went to system preferences to edit the path to the network account server, so the mac server could find it once more, but then it just froze the system preferences when i went to login options.   So i restarted back and forth some time and finally got to edit the path to the network account server, but when i typed it in, the mac server just say that the network account server is not responding although all other computers, both linux and mac, are using it just fine. I tried updating, rebooting without the network. tried FQDN for the network account server, it's ip, it's hostname nothing work.  Does anyone have any clue to what is going on? cause I really have no idea what to do, other than maybe reinstall the system, which i would like to avoid if possible. Is "Don't do it" a valid answer? If someone asks how to do XYZ, and you think doing XYZ at all is a Bad Idea™, is it valid to post an answer saying so? You aren't answering the question, but instead, arguing the question's validity.  You could do this in a comment, but I don't think comments carry enough weight on occasion.  For example, I came across this today ; for those not wanting to link away:     I would like to build a wiki based website about professors, so that students can share information and check the reputation of the professor before working for him.   and I really wanted to post an answer that said, "I think this is a very bad idea". (In fact I did anyway, despite awareness that it could get myself flamed.)  Was I wrong? What should I have done instead? So I defeated a Team Valor gym earlier today using my highest cp Pidgeot. It turned grey, so I went to claim it with that Pidgeot, except it wouldn't let me. What determines which pokemon you are allowed to place at a gym? Is it just those who have participated in a battle can't? Is there a time period for it? What about training at a friendly gym? Does this impact anything? My system freezes completely at random, frequent intervals. I started to have the same problem in Ubuntu 14.04 but after recent upgrade to 16.04 there is no improvement, in fact it seems worse.  When it happens, it's impossible to do anything. I've tried everything in this thread:  but nothing works, I have to hard reset. I have read all the system logs and journalctl but there is never any information that could help diagnose the problem.  This is a dual-boot system with Windows 10 and there's no problem there, so it's not defective hardware.  My laptop has an Intel Bay Trail processor (Pentium N3540)