Alternatives to escape(), encodeURI(), and encodeURIComponent() for use in URLs
When are you supposed to use escape instead of encodeURI / encodeURIComponent?
Is there difference in force when the height increases? Consider a man with mass 50kg.   When he jumps from a 2 meter height, the total force is $F=ma$ ie (mass * gravity), but nothing happens to him. When he jumps from a 50 meter height, the total force is (mass * gravity ) same, but he dies.   Why is this happening? I would like to delete, from the following figure:  the top circle, but without removing the black edge that separate the orange part from the gray part. The figure above has been obtained by the following code: \documentclass[border=0.2cm]{standalone}  % Required packages \usepackage[dvipsnames]{xcolor} \usepackage{tikz}   \begin{document} \begin{tikzpicture}[thick, set/.style = {circle,      minimum size = 3cm,      fill=black!30}]  % Set A \node[set,label={135:$A$}] (A) at (0,0) {};  % Set B \node[set,label={45:$B$}] (B) at (1.8,0) {};   % Intersection \begin{scope} \clip (0,0) circle(1.5cm); \clip (1.8,0) circle(1.5cm); \clip (0.9,1.5) circle(1.5cm); \fill[orange!60](0,0) circle(1.5cm); \end{scope}  % Circles outline \draw (0,0) circle(1.5cm); \draw (1.8,0) circle(1.5cm); \draw (0.9,1.5) circle(1.5cm);  \end{tikzpicture} \end{document}  A rough example of the desired result is: How to use a file in a jar as javax.net.ssl.keystore? I'm trying to do something like   URL clientks = com.messaging.SubscriptionManager.class.getResource( "client.ks" ); String path = clientks.toURI().getPath(); System.setProperty( "javax.net.ssl.keyStore", path);   Where client.ks is a file stored in com/messaging in the jar file that I'm running.  The thing that reads the javax.net.ssl.keyStore is expecting a path to the client.ks file which is in the jar. I'd rather not extract the file and put in on the client's machine if possible. So is it possible to reference a file in a jar?  This doesn't work as getPath() returns null. Is there another way to do this? Detecting the onload event of a window opened with window.open Holomorphic function $\varphi$ with fixed point $z_0$ such that $\varphi'(z_o)=1$ is linear? This is an exercise in complex analysis:     Let $\Omega\subset{\Bbb C}$ be open and bounded, and $\varphi:\Omega\to\Omega$ a holomorphic function. Prove that if there exists a point $z_0\in\Omega$ such that   $$ \varphi(z_0)=z_0\qquad\text{and   }\qquad \varphi'(z_0)=1 $$   then $\varphi$ is linear.   I'm trying work out the case $z_0=0$ first, in which $$ \varphi(z)=z+\sum_{n=2}^{\infty}a_nz^2. $$ It suffices to show that $a_n=0$ for all $n\geq 2$. If let $$ \varphi(z)=z+a_2z^2+O(z^3) $$ then  $$ \varphi^k(0)=z+ka_2z^2+O(z^3), $$ and $$ \varphi^k(0)=0,\quad (\varphi^k)'(0)=1. $$ If one can show that $\{ka_2\}_{k=1}^{\infty}$ is uniformly bounded, then one at least has $a_2=0$. But I don't know how to go on. Any idea? How to apply layer style to one object and apply it to multiple layers Can the relative pronoun "whose" be used for animals, things and countries? When I was a student of English as a foreign language, more years ago than I care to count, I was taught that the relative pronoun “whose” could only be used for human beings, i.e., when someone possesses something.   My teachers were native speakers from England, then.   Since that time, I’ve seen “whose”, as a relative pronoun, used in several contexts where no human beings are mentioned, e.g. with animals, objects, countries, abstract nouns, etc, in American newspapers and magazines. Unfortunately, I can’t remember any of the sentences and cannot give examples.  What is acceptable in written and spoken English, and what isn’t, concerning the use of “whose” ? Why can't I associate files with Excel after upgrading to 2010? Consider the infinite line, $L$ in $2D$ consisting of all points $p$ such that $p.[0.3511 0.9263]= 6$. Find the point on the line closest to $(10, 20)$. Find the point on the line closest to $(4, 3)$. Find the distance from the line to both of these points.  Hi, I was reading the book $3D$ Maths Primer for Graphics and Game Development. The book mention about $2$ formulas but I don't know how to apply them.   $\text{Signed distance} = d-q.n$  $q' = q + (d-q.n)n$  for any point $q$, the point $q'$ that is the closest point on $L$ to $q$.  This is what I have tried,   Since the lines are parallel then the normal are the same so   $q' = q + (6 - q(0.3511 0.9263))(0.3511 0.9263)$   I'm stuck here. What is the purpose of LongLength for .Net Arrays? What features of Mavericks are beneficial to you? This question serves to share and collect the enhancements that make a large difference to how you use your Mac.   Please post one feature per answer. Please also check to see if your answer has already been posted - duplicate answers will be deleted. To search answers for this question use  (directly from the question page) in addition to your search terms in the search box in the upper right hand corner of this page.  The best answers will not only list a feature, but provide details on how to configure that feature, and provide an image of how to use the feature to be more efficient or effective with Mavericks. How to interpret this yum dependency error? I'm trying to install XRDP and I'm hitting the following:  [root@box ~]# yum -y install xrdp Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile  * base: centos.serverspace.co.uk  * epel: mirrors.coreix.net  * extras: mirror.sov.uk.goscomb.net  * updates: mirror.sov.uk.goscomb.net Resolving Dependencies --&gt; Running transaction check ---&gt; Package xrdp.x86_64 1:0.9.10-1.el7 will be installed --&gt; Processing Dependency: xrdp-selinux = 1:0.9.10-1.el7 for package: 1:xrdp-0.9.10-1.el7.x86_64 --&gt; Processing Dependency: xorgxrdp for package: 1:xrdp-0.9.10-1.el7.x86_64 --&gt; Running transaction check ---&gt; Package xorgxrdp.x86_64 0:0.2.10-4.el7 will be installed --&gt; Processing Dependency: xorg-x11-server-Xorg(x86-64) = 1.20.4 for package: xorgxrdp-0.2.10-4.el7.x86_64 ---&gt; Package xrdp-selinux.x86_64 1:0.9.10-1.el7 will be installed --&gt; Finished Dependency Resolution Error: Package: xorgxrdp-0.2.10-4.el7.x86_64 (epel)            Requires: xorg-x11-server-Xorg(x86-64) = 1.20.4            Installed: xorg-x11-server-Xorg-1.20.1-5.6.el7_6.x86_64 (@updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.6.el7_6            Available: xorg-x11-server-Xorg-1.20.1-3.el7.x86_64 (base)                xorg-x11-server-Xorg(x86-64) = 1.20.1-3.el7            Available: xorg-x11-server-Xorg-1.20.1-5.el7.x86_64 (updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.el7            Available: xorg-x11-server-Xorg-1.20.1-5.1.el7.x86_64 (updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.1.el7            Available: xorg-x11-server-Xorg-1.20.1-5.2.el7_6.x86_64 (updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.2.el7_6            Available: xorg-x11-server-Xorg-1.20.1-5.3.el7_6.x86_64 (updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.3.el7_6  You could try using --skip-broken to work around the problem  You could try running: rpm -Va --nofiles --nodigest   Now, I get that it's missing a dependency, however, it appears to be saying it requires xorg-x11-server-Xorg version 1.20.4.   It then continues to say version 1.20.1-5.6.el7_6 is installed.  From where I'm sitting, 4 is in the range 1-5 so I'm unclear what the issue is. They all seem to be for the right architecture.  Is 1-5 a version string in and of itself as opposed to a range, or -if not- what am I missing?  Solution: Thanks to , here's a workaround:     Having the same issue, I installed manually archived xorgxrdp   yum -y install https://archive.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/x/xorgxrdp-0.2.9-1.el7.x86_64.rpm   then   yum -y install xrdp and it works Lookup list dependant on the contents of another cell hope someone can help to crack this one?  I've got a table on my data entry tab (sheet 1) where each row includes two data validation drop down lists (source is on sheet2). I want the options in the second drop down list (k13) to be dependant on what is selected in the first drop down list (g13)...  ie. if you select 'Diary' in the first drop down box then the second drop down only has 'Cheese', 'Milk' and 'Yogurt' - likewise, if you select 'Fruit' in the first box - I want the only options to be available specific to that categories column in the lookup table on sheet 2 (which are 'apple', 'pear' and 'banana' in this case)?  Please help - i think this is a vlookup indirect formula?? I am trying to change the page size in the QGIS 3.0 Composer but I am not able to see the Composition tab.  I have right clicked an empty space in the toolbar but did not see anything about composition.  I am using Windows 7.  I tried looking at the QGIS docs but they are still in testing. What does the helpful flag mean? I don't see "Helpful" in the list of things I can do when I press the flag link.   In my profile page I saw "6 helpful flags."  How do I earn these flags?  May I make them on other peoples' posts or comments?   This is what I am talking about: What's the simplest way to print a Java array? In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob] PHP Error - Uploading a file Compiling a document with PGFplots processing only every x-th data point? css vertical centering how could i vertically center a &lt;div&gt; within a &lt;div&gt; ?  my code so far:  &lt;div style="height:322px;overflow:auto;"&gt;     &lt;div style="border: Solid 1px #999999;padding:5px;"&gt;     &lt;/div&gt; &lt;/div&gt;   i have tried "top:50%;" and "vertical-align:middle;" without success  EDIT: okay so it's been discussed a lot. and i've maybe started another mini flame war. but for argument sake, how would i do it with a table then? i've used css for everything else so far so it's not like i'm not trying to employ "good practices".  EDIT: the inner div does not have a fixed height My first issue was when I tried to apt-get update or apt-get upgrade. On upgrade I get the following error:  You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not installed E: Unmet dependencies. Try using -f.   I tried running apt-get install -f and this was the output(after saying yes on prompt)  (Reading database ... 186183 files and directories currently installed.) Unpacking linux-image-3.2.0-27-generic (from .../linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb) ... Done. dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb (--unpack):  failed in write on buffer copy for backend dpkg-deb during `./boot/System.map-3.2.0-27-generic': No space left on device  No apport report written because the error message indicates a disk full error                                                                           dpkg-deb:    error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-27-generic   /boot/vmlinuz-3.2.0-27-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried running apt-get autoremove and it gives me the same error as apt-get upgrade.  When I run df, I get this for /boot:  /dev/sda1                    233191     230297         0 100% /boot   So, I read elsewhere that I should try to purge old kernels. I checked for what kernels I had with:  $ dpkg -l linux-image-\* | grep ^ii ii  linux-image-2.6.38-13-server  2.6.38-13.52  Linux kernel image for version 2.6.38 on x86_64 ii  linux-image-3.0.0-13-server   3.0.0-13.22   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-14-server   3.0.0-14.23   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-15-server   3.0.0-15.26   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-16-server   3.0.0-16.29   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-17-server   3.0.0-17.30   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.2.0-24-generic  3.2.0-24.39   Linux kernel image for version 3.2.0  on 64 bit x86 SMP ii  linux-image-3.2.0-25-generic  3.2.0-25.40   Linux kernel image for version 3.2.0  on 64 bit x86 SMP ii  linux-image-3.2.0-26-generic  3.2.0-26.41   Linux kernel image for version 3.2.0  on 64 bit x86 SMP   When I try to remove the oldest with this:  $ sudo apt-get purge linux-image-2.6.38-13-server Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not going to be     installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   How can I free up or extend boot without messing up my installation?