i want to set php session value from javascript i know it is not possible to do from javascript so i made this code  javascript:   window.open("test.php?s=1");   php:  session_start();     if(!empty($_GET['s'])) {         $_SESSION['test']= $_GET['s'];     }   it is working and all but only problem is that it opens new window and user have to close it  is it possible to do something like that without opening new window? i know it is possible to do with xmlhttp.open but it didn't really worked for me + i have no idea how to use it, tried to understand it by searching info in google but couldn't so i figured out that this way i am doing is the simples for me just need to do it without opening new window
I need to do an  request in JavaScript. What's the best way to do that?  I need to do this in a Mac OS X dashcode widget.
iPhone 6s with iOS 12.4 not connecting to MacBook Pro mid2015 with macOS 10.14.6 Do I need a US visa to transit (or layover) through an American airport? (Ubuntu/Linux)"find" command gives different results based on quotation marks I was using   find -iname *prib*   and getting only one result "./prib09jack.pdf" with   find -iname "*prib*"    I get many more results that I was looking for such as  ./Dir1/PRIB09/prib09jackTFF1.pdf   and many more, but why did it matter that the quotation marks were around "prib"?   Best. I was trying to suggest a retag of  on Seasoned Advice, but the system won't let me; I get the familiar message     Edits must be at least 6 characters; is there something else to improve in this post?   In general, that's not true for retagging; if you don't change the question body at all, it should work. I suspect the logic checking the edit is thrown off guard because of the title warning:     The question you're asking appears subjective and is likely to be closed       I found , but I cannot find any evidence (in SEDE) for invisible characters being present in the question's source. Also, that's supposed to be . How do you convert a cake recipe to make brownies? Possible Duplicate:           What book would you recommend for an undergraduate wanting to learn the basics of topology? I've come across several books that claim to give an introduction to the subject, but I wasn't sure which one(s) to pick.  Here are some of the books I came across:   Introduction to Topology - Bert Mendelson Basic Topology - M.A. Armstrong First Concepts of Topology - William G. Chinn Topology Without Tears - Sidney A. Morris Topology - James Munkres   They don't go over the exact same topics, some are more in-depth than others, some seem to target slightly different audiences etc. What would be right for me (not necessarily from that list)? To give some more background, I want to learn topology because I feel it will be somewhat helpful in the field of Computer Vision. Associates in Integral Domain Let $x$ and $y$ be nonzero elements of an integral domain $D$. Then $x$ and $y$ are associates if and only if $x = yd$ for some unit $d \in D$.    I am done proving the $\Leftarrow$ part. For $\Rightarrow$ what I did was: If $x$ and $y$ are associates then $x \mid y$ and $y \mid x$, so $x \mid y$ implies that $xs = y$ for some $s \in D$ and $y \mid x$ implies that $yt = x$ for some $t \in D$. That is, $yts=y$ which implies $ts=1$. Therefore $s$ is a unit and $t$ is a unit.    Am I on the right track? Can I say that the proof is complete? What are sentences like "the longer X, the more Y" called and can they be used in formal written English? What is the type of sentence exemplified below called? Is it appropriate to use it in a scientific paper and formal written English in general?     1. The more pronounced the variation, the   more the waste.      2. The more you give, the more you get.      3. The longer I live, the more I realize the impact of attitude on life. Is it possible to speed up the gzip process?  I'm using  mysqldump "$database_name" | gzip &gt; $BACKUP_DIR/$database_name.sql.gz   to backup a database into a directory, $BACKUP_DIR.  the manpage says:     -# --fast --best             Regulate  the  speed  of compression using the             specified digit #, where -1  or  --fast  indi‐             cates  the  fastest  compression  method (less             compression) and -9 or  --best  indicates  the             slowest compression method (best compression).             The default compression level is -6 (that  is,             biased  towards high compression at expense of             speed).    How effective would it be to use --fast? Is this effectively lowering the CPU usage on a modern computer?   My test results  I didn't notice any acceleration:   7 min, 47 seconds (with default ratio -6) 8 min, 36 seconds (with ratio --fast ( = 9 ))   So it seems it takes even longer to use the fast compression?  Only higher compression really slows it down:   11 min, 57 seconds (with ratio --best ( = 1 ))   After getting the Idea with lzop I tested that too and it really is faster:   6 min, 14 seconds with lzop -1 -f -o $BACKUP_DIR/$database_name.sql.lzo My impression for how Poincare and Lorentz representations are linked in $3+1$ dimensions is:   Assuming positive mass for simplicity, irreducible representations of the Poincare group are indexed by their mass $M$ and spin $s$. Irreducible representations of the Lorentz group are indexed by two numbers $(s_1, s_2)$ and when restricted to the rotation subgroup contains spins from $|s_1 - s_2|$ up to $s_1 + s_2$ in integer steps. Particles transform in representations of the Poincare group, while fields transform in representations of the Lorentz group. They are related by defining $$|\mathbf{p}, \lambda \rangle = a^\dagger(\mathbf{p}, \lambda) |0 \rangle$$ where $\lambda$ is the helicity, and the field is defined in terms of the creation and annihilation operators in the usual way. The only requirement is that the Lorentz representation used for the field contains the spin $s$ used in the Poincare irrep. A relativistic wave equation is imposed to eliminate the unwanted degrees of freedom.   For example, a massive spin $1$ particle may be embedded in a vector field, which is in the $(1/2, 1/2)$ irrep of the Lorentz group. This vector field has one extra degree of freedom that is eliminated by the equation $\partial_\mu A^\mu = 0$.  Assuming this is right, I'm wondering why I've never heard of "alternative" embeddings. For instance, why can't one embed a spin $1$ particle inside the $(1, 0)$ irrep, which doesn't have any extra degrees of freedom at all, or inside the $(1, 1)$ irrep? For massive particles, I've only ever seen spin $0$ in $(0, 0)$, spin $1/2$ in $(1/2, 0) + (0, 1/2)$, and spin $1$ in $(1/2, 1/2)$. Are other embeddings very clunky, or not allowed, or are they actually used somewhere? Piping STDERR vs. STDOUT According to "" (pg. 44), you can pipe only STDERR using the |&amp; redirection symbols.  I've written a pretty simple script to test this:  #!/bin/bash echo "Normal Text." echo "Error Text." &gt;&amp;2   I run this script like this:  ./script.sh |&amp; sed 's:^:\t:'   Presumably, only the lines printed to STDERR will be indented. However, it doesn't actually work like this, as I see:      Normal Text.     Error Text.    What am I doing wrong here? Can I update an early Airport Time Capsule? I have an Apple Time Capsule model A1254. It has a 1Tb drive. Is it possible to replace the drive with a larger capacity unit? It seems a shame to replace the whole unit. Thanks In quantum field theory, scalar can take non-zero vacuum expectation value (vev). And this way they break symmetry of the Lagrangian. Now my question is what will happen if the fermions in the theory take non-zero vacuum expectation value? What forbids fermions to take vevs? What's the difference between "it excites me" and "that excites me"? How do you create grass? In ideal gas model,  is the measure of average kinetic energy of the gas molecules. If by some means the gas particles are accelerated to a very high speed in one direction, KE certainly increased, can we say the gas becomes hotter? Do we need to distinguish the random vibration KE and KE in one direction?  Furthermore, if we accelerate a block of metal with ultrasonic vibrator so that the metal is vibrating in very high speed with cyclic motion, can we say the metal is hot when it is moving but suddenly become much cooler when the vibration stop? I have a stubborn folder that someone must have created accidentally and that has persisted all this time. I can see it with:  # find /var/www/html -maxdepth 1 -type d   which gives me:  /var/www/html /var/www/html/files /var/www/html/.?   unfortunately the question mark there is not the actual character ?, it merely seems to denote that there is no proper glyph and/or translation for that character. So something like rmdir is out of the question. My system has UTF-8 as the default locale as so many modern Ubuntu systems, but admittedly the folder in question may have originated on a RHEL or CentOS box (tared up and unpacked).  # env|grep LANG LANG=en_US.UTF-8   When trying to cd .\? (as mentioned before it is not actually ?) I get auto-corrected to . by bash and actually end up in /var/www/html/. for some reason. Now if I can't "name" this folder usefully, I cannot access it in any way. How can I get rid of it without putting the whole system in jeopardy?  Now I installed detox already but that only seems to act on files, not folders, according to its documentation and besides it still requires that I be able to name the object somehow to do something with it. Model selection with low N? I've got a study which is kinda messed up by the design...Turns out I ended up with about 50 patients of which 80% have the outcome and 20% don't (binary outcome).  I've been turning in my bed for the last month trying to figure out what to do with this. The only real answer is "don't" but I have to deliver something in the next days as it's part of a master's thesis.  I have about 10 predictors of interest for the outcome (various variable types) and the research question is whether any of these predictors can predict the outcome. Some already have an established correlation in the literature while some are original hypothesis. Several are significant with a univariate logistic regression, but it doesn't look good in any other way than the actual p-value.  Now obviously I'm not going to be able to answer this research question sufficiently but if you were in my shoes, what sort of statistical analysis would you perform to relay to your supervisors?  EDIT: Link to my (anonymized) data (CSV): Django Template Variables and Javascript When I render a page using the Django template renderer, I can pass in a dictionary variable containing various values to manipulate them in the page using {{ myVar }}.  Is there a way to access the same variable in Javascript (perhaps using the DOM, I don't know how Django makes the variables accessible)? I want to be able to lookup details using an AJAX lookup based on the values contained in the variables passed in. How to stop reordering of the same kind multiple preview windows in task switching?