I have a list and then two randomly selected items from them.  But those two items are always the same. Why?  \documentclass{article}  \usepackage{pgf} \usepackage{pgffor}  \pgfmathsetseed{\number\pdfrandomseed}  \newcommand{\InitVariables} {% \pgfmathdeclarerandomlist{List}{{2}{3}{4}{5}{6}{7}{8}{9}} \pgfmathrandomitem{\VarA}{List} \pgfmathrandomitem{\VarB}{List} }    \begin{document}   ATTEMPT ONE \InitVariables  Variable A is \VarA .  Variable B is \VarB .   ATTEMPT TWO \InitVariables  Variable A is \VarA .  Variable B is \VarB .  ATTEMPT THREE \InitVariables  Variable A is \VarA .  Variable B is \VarB .  \end{document}
I declared random list using TikZ package and can get items randomly. But at same time I need to get all items in sequential order. How can I do it? Is it possible print \mylist items declared in noncomma variat?  \documentclass[a4paper,14pt]{extreport} \usepackage{tikz}   \def\mylist{{one}{two}{three}{four}{five}}   \pgfmathdeclarerandomlist{mynum}{\mylist} %Define the list   \begin{document} \pgfmathrandomitem{\mynum}{mynum} \pgfmathresult~\mynum\\  \pgfmathrandomitem{\mynum}{mynum} \pgfmathresult~\mynum\\  \pgfmathrandomitem{\mynum}{mynum} \pgfmathresult~\mynum\\  \pgfmathrandomitem{\mynum}{mynum} \pgfmathresult~\mynum\\  \pgfmathrandomitem{\mynum}{mynum} \pgfmathresult~\mynum\\ \end{document}
Force URL link to open with a specific browser I've created a URL link in my dock, however, the link only opens with the default browser. I have safari, Firefox, and chrome (latest being the default) installed in my machine. I'm wondering if someone knows how to default the link to open with Firefox instead of Chrome but still keeping chrome as the default browser.  Note: I'm running Mavericks in my MacBook Pro. I've got a generic dictionary Dictionary&lt;string, T&gt; that I would like to essentially make a Clone() of ..any suggestions. Simple problem with Manipulate and Plot $f'(x) = [f(x)]^{2}$. Prove $f(x) = 0 $ Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be a differentiable function such that $f(0) = 0$ and $f'(x) = [f(x)]^{2}$, $\forall x \in \mathbb{R}$. Show that $f(x) = 0$,  $\forall x \in \mathbb{R} $.  I first (unsuccessfully) tried using the Mean Value Theorem, but this is in the Integrals chapter so the solution probably involves them. Can't really see where integrals come in here though.  What I've got so far:   (i) Since $f$ is differentiable, thus it is continuous and, hence,  integrable. Therefore $f^2$ is also integrable and as $f'=f^2$, $f'$ is too.   (ii) $f' \geq 0$, $\forall x \in \mathbb{R}$ How can I remap Caps lock to both Escape and Control? I generally run Linux. I use Vim a lot, so the Escape key is extremely important. I also use other keyboard shortcuts a lot, so Control is "key" as well. On Linux, I've solved this by using  to map the Caps lock key to Escape if pressed by itself, or Control if pressed in combination with another key. This puts the best of both worlds within quick reach of my pinky finger. Is there any way I can do this on a Mac? How can I change the default program installation directory in Windows 7? Windows 7 is installed on my C drive, which is quite small.  I am very tired of instructing new programs to put their files on my larger D drive during installation; I would like to change the default drive.   says that you can use a registry hack, but I am giving Microsoft the benefit of the doubt and naively assuming that a configuration option exists somewhere.  It's 2010... do I really have to hack my registry to make a simple tweak like this?  Also, there's a  that explains how to move the "Users" directory and create a symlink, which could also work.  However, at the moment I have some apps in C:\Program Files, some apps in C:\Program Files (x86), and some apps in the corresponding folders on D:\, so it would be a hassle.  Also, my small OS boot drive is a 10k RPM WD Raptor, and I feel like that probably gives a speed boost to apps installed on it that need to read &amp; write to their directories a bunch.  I wonder if it actually matters. ActionBarSherlock + Google Maps API v2 Duplicate Id "By" vs "Per". Which one should I use on expressions like "P&L/Geography" or "VaR/Asset"? In the finance field, it is quite common to express some measures in relation to some grouping criteria. Some groupings can be temporal (year, month, etc.) and others like greography, asset class (e.g. a financial product), strategy (used in trading), and others.   Which one is the most appropriate preposition to apply in this kind of expression ?    "VaR per asset" or "VaR by asset" "P&amp;L per strategy" or "P&amp;L by strategy".   Is there any well defined rule behind the most appropriate use ? Replace dynamic content in XML file Please Join Us in Welcoming Our New Meta Stack Exchange Moderators! Short Question:  Why can we manipulate a read-only file in Vim using : + w + q + ! even without being an administrator?  Long Question:  I have a text file (myFile.txt) which is read-only for everyone:  navid@navid-ThinkPad-T530:~/ubuntuTest$ ls -l myFile.txt  -r--r--r-- 1 navid navid 26 Aug 22 21:21 myFile.txt   I can open it with Vim without having admin privileges:  navid@navid-ThinkPad-T530:~/ubuntuTest$ vi myFile.txt    I modify it and press: Esc + : + w + q + Enter and I see this error message:  E45: 'readonly' option is set (add ! to override)   So far, everything makes sense.  But when I press: Esc + : + w + q + ! + Enter, Vim saves the changes.  I'm using Ubuntu 16.04 and VIM 7.4. My neighbor keeps complaining about my music. How to soundproof my apartment? I live in an old apartment building and the walls are thin. This is a problem because I love to listen to music -- sometimes at odd hours of the night. Yes, I can be an asshole in this way. But my neighbor bangs against the wall even when I'm being perfectly reasonable (his bedroom seems to share a wall with my living room). And it's not just the low frequencies that get to him. He knocks against the wall even when I turn the subwoofer off on my speakers, which are located on the opposite wall.   This is kinda unacceptable. This is my home! What can I do so that I can live in it the way I want? Provide an easily discoverable way to get the full URL to an answer Is it possible to install an app and exclude some of its requested permissions? Occasionally I want to install an application which requires certain permissions that I feel it really shouldn't need. Can I install the app without giving it these permissions? For example, GPS location, , internet connection, etc.  Is it possible to change the permissions of an application once it is installed? If I've got a file (or files) selected in Windows Explorer, the only way I've found to "unselect" them is click with the mouse on some empty space.  I thought Esc would do this, but it doesn't. Also changing focus with Tab or Shift + Tab doesn't work; the file(s) are still selected even if focus goes to the address bar for instance.  Does anyone know of a keyboard shortcut to do this? Can sudo be reinstalled after being removed? I have a conjecture that any two positive coprime integers $a$ and $b$ can be added to form any integer greater than or equal to $(a-1)(b-1)$.   This is true for $3$ and $5$, which can form any integer greater than or equal to $8$, where $8=3+5, 9=3+3+3, 10=5+5; k=3n+8$ or $3n+9$ or $3n+10$.  It is true for $4$ and $7$, which can form any integer greater than or equal to $18$, where $18=4+7+7, 19=4+4+4+7, 20=4+4+4+4+4, 21=7+7+7$, etc. How can it be proven that this will work for any two coprime numbers? How can I change some pages into document into landscape mode, while leaving the others in portrait mode (or vice versa)? Windows License stored in UEFI/BIOS Since Windows 10 (or earlier?). It has become standard to store the license product key in the UEFI/BIOS.  I am in the market for buying a new (custom build, individual parts) PC with a new Windows 10 License.  However I was wondering (and can't find clear information on this subject). What the differences between the licenses are when it comes to OEM and Retail.  If in the far future I were to sell this PC:   Would the license (whether OEM or Retail), be stored in the UEFI/BIOS, where it could be used by the new owner? If so, can I remove the license key from the UEFI/BIOS?   I want to know this because I don't want to buy Windows 10 every single time I buy a new PC (since no new versions of Windows will be created, only updates). How to install the OS with a new Hard drive?