Passing PHP-variable to Javascript doesn't work via PHP-function (not about global variables)
to Global Variables inside functions
I accidentally removed all the packages starting with the name jpeg with:  sudo apt-get remove jpeg*   This screwed up a lot of things, removed Unity, Firefox, Flash player etc.  I somehow managed to recover the desktop and unity but then a lot of things are still buggy. For example .rpm files and .tag.gz just won't open up at all.  What I want is a way to fix everything that's amiss. Something that is the equivalent of a 'repair installation' with a windows disc.  Any tips, anyone? I have a problem understanding the proof of Rencontres numbers (Derangements) how to prove $437\,$ divides $18!+1$? (NBHM 2012) I was solving some problems and I came across this problem. I didn't understand how to approach this problem. Can we solve this with out actually calculating $18!\,\,?$ Definition of textbook RSA I want to upgrade the hard drive in my 2012 Macbook Pro to an SSD. I have the parts, but had a question about how to clone the contents of my current drive so I can install it onto the SSD.  I've seen tutorials where people suggest connecting the new SSD to the Macbook prior to installation and using a Carbon Copy Cloner to clone the drive, and then installing the SSD drive.  My question is, can I do a Time Machine backup of my current hard drive on an external hard drive, install the SSD, and then use the Time Machine backup from the external to transfer it onto the newly installed SSD? Is this the same as using the clone program above? Apache on CentOS 5.9 VM serves modified files incorrectly Missing dollar problem This sounds silly but I saw this and I couldn't figure it out so I thought you could help. The below is what I saw.  You see a top you want to buy for $\$97$, but you don't have any money so you borrow $\$50$ from your mom and $\$50$ from your dad.  You buy the top and have $\$3$ change, you give your mom $\$1$,your dad $\$1$, and keep $\$1$ for yourself.  You now owe your mom $\$49$ and your dad $\$49$.  $\$49 + \$49 = \$98$ and you kept $\$1$.   Where is the missing $\$1$? Windows 7, any way to sort folders and files all mixed together? Is there a way to sort folders and files by their name all mixed together in Windows 7?  It would be easier to understand if you .  I want my folders and files arranged like the BEFORE situation of the first screenshot.  If there is no way to do that with Windows Explorer, is there any file management programs that I should try?  I've already tried Total Commander. Intuitive explanation of the bias-variance tradeoff? I am looking for an intuitive explanation of the bias-variance tradeoff, both in general and specifically in the context of linear regression. Can Ability Score increases caused by magic items qualify me for feats? As far as I know, only a player character's non-temporary ability scores are considered for taking feats, taking prestige classes, etc. Meanwhile, any ability bonus that comes from spells, or magic items that are in effect only while worn, is not counted (except tomes which increase abilities permanently).  So a Fighter with low Int who wants to qualify for Combat Expertise can't use spells or items that gives an Int bonus to raise it high enough to qualify. Is that right?  For example:  Say our fighter has Str 12, so he can not take the Power Attack feat. Suppose he asks for a spell from the wizard to make his Str 16, or to borrow a ring which provides +4 Str from another character. (Or any other method that will provide him a non-permanent bonus). His Str is now 16. Can he take Power Attack with that non-permanent bonus now? Because after the spell duration ends or he takes off the ring, his Str score will be to low again to qualify for Power Attack. Correcting projection of 360° content onto a sphere - distortion at the poles I'm using the Autopano Giga 4.4 and Autopano Video Pro 2.6 to stitch and create spherical content, but I've recently moved into wanting to create 360° tours via Unity. I know this is partly a developers question, but if anyone out there can help me with the right specs for exporting a spherical image or video from Giga to use to create the image for the inside of the sphere on Unity, I'd appreciate it!  Experimenting with Premiere and FCPX to edit highlight reels of spherical content, I've had seamless experiences created. For some reason in Unity, the images appear to be stretched around the sphere wrong and it's creates issues on the top and bottom of the image:    The image shown is the bottom of the sphere. I'm using the Android platform to hopefully turn these tours into apps when completed. Thank you for any help! I understand the proof that  $$Var(aX+bY) = a^2Var(X) +b^2Var(Y) + 2abCov(X,Y), $$  but I don't understand how to prove the generalization to arbitrary linear combinations.  Let $a_i$ be scalars for $i\in {1,\dots ,n}$ so we have a vector $\underline a$, and $\underline X = X_i,\dots ,X_n$ be a vector of correlated random variables. Then $$ Var(a_1X_1 + \dots a_nX_n) = \sum_{i=1}^n a_i^2 \sigma_i^2 + 2 \sum_{i=1}^n \sum_{j&gt;i}^n a_i a_j \text{ Cov}(X_i,X_j)$$  How do we prove this? I imagine there are proofs in the summation notation and in vector notation? Is there are rule when to use opened vs open?  I always get confused even though I've been speaking English as the dominant language for more than half my life.  E.g.         Is the door open(ed)?   Which file do you have open(ed) in your editor? I'm trying to use the eVis plugin in QGIS 3.16.3 to display geotagged photos (as I have in the past without difficulty), but the plugin has totally disappeared. Not only can't I find it as an icon or under the Database menu, but it doesn't appear in the list of plugins (and yes, I am looking in the complete list of all plugins!). Has it been moved somewhere I haven't come across or is it a bug? Where did the pardon come from? In the  episode  (S04E08), Barristan Selmy is presented with a Royal Pardon supposedly signed by the late Robert Baratheon for Ser Jorah Morment by a lowly boy of Meereen.  However, it is a bit confusing to me as where this actually came from.  Is this the same pardon that Jorah had towards the beginning of the series while Robert was actually alive, or is this pardon one that Tywin actually forged and wrote in a previous episode (remember he asks Mace Tyrell for a quill after learning about Dany's recent actions and allies).  It being from Tywin makes sense but this point is brought up by Jorah and then defeated a sentence later as he himself states it is not a forged Pardon.    So which is it and why would Jorah say it is not a forged copy if it indeed is? Why didn't James' love and sacrifice for Lily protect her? We know that Harry survived Voldemort's killing curse because Lily loved him so much that she sacrificed herself in an attempt to protect him. This resulted in a very powerful charm that pretty much rendered Harry immune to Voldemort (until Voldemort figured out the work-around). Then there's this passage describing that night:  [Voldemort] was over the threshold as James came sprinting down the hall. It was easy, too easy, he had not even picked up his wand ... &quot;Lily, take Harry and go! It's him! Go! Run! I'll hold him off -&quot; Hold him off, without a wand in his hand! ... He laughed before casting the curse ... &quot;Avada Kedavra!&quot; Harry Potter and the Deathly Hallows Chapter 17: Bathilda's Secret  So James Potter, fully aware that he was sacrificing himself (he said &quot;I'll hold him off,&quot; not &quot;I'll get rid of him&quot;) ran to face Voldemort because of his love for Lily and Harry. This seems to be very similar to how Lily tried to protect Harry from Voldemort even though she knew she would die. It seems to me that the same charm should have been cast upon Lily when James died, but just moments later Voldemort killed her too. Apparently James' sacrifice did not result in a charm that protected Lily, even though he did it from love for her and Harry. Why is this? Was something different in the circumstances? How can I improve the performance of Minecraft? How to tell which row number is clicked in a table? Can you grammatically end a sentence with "with"? Do you want to come with? Can I come with?  I seem to hear this construction more often in recent years, but it still grates on my ear. I know it's often said that one shouldn't , but I class that rule along with  (i.e. — pedantic tosh). Is it always informal/casual speech to end a sentence with &quot;with&quot;? Was it ever thus? What is the difference between correlation and causation? What is the difference between correlation and causation?  Pirates and Global Temperature Example  For example, how do we know when we're dealing with correlation only and not also causation here?   What Certain Philosophers Seem to Hold Regarding This  It would seem that   Hume would saycorrelation ≡ causation. Aristotle would say that in generalcorrelation ≢ causationand thatcausation ⇔ correlationonly if we are not dealing with chance events.   ("≡" means "is identical to," and "⇔" means "implies each other.")