Injecting environment variables to string path
How to evaluate environment variables into a string in Python?
Python: Finding differences between elements of a list I need to find out the modular inverse of 5(mod 11), I know the answer is 9 and got the following so far and don't understand how to than get the answer. I know how to get the answer for a larger one such as 27(mod 392) but am stuck because they are both low numbers.  11=5 (2)+1  5=1 (5) "one of the cables that runs" or "one of the cables that run"? Recently at work I was writing the following, and I have not been able to get a firm answer on which version is the most grammatically correct. The sentence is:     We would like to use one of the cables that _________ between rooms.   Is the correct conjugation run or runs?  I think 'run' is correct, because I think that the verb in the prepositional phrase is referring to 'cables' not 'one.' However, a number of colleagues have said that 'runs' is correct because one is singular. A PC in our group was off on his own following a recurring villain of our groups. He was paralyzed where he could move, and the vampire bit his neck. The vampire said "now you get to remain 19 (years old) forever" before he left the cave. This was all done in RP.  We found him later, and healed up his bite marks. Our characters know of vampires, specifically only the one that bit him (recurring villain), but don't really know how vampirism works, because it isn't a super common thing in this world yet.   My question as the player is:  How does RAW vampirism work in 5e?  Is it a disease that develops over time? Is it something where they have to die and be brought back as a vampire? How to password protect grub menu entry? Is there a way I can password protect grub menu entry- e.g. if I dual boot with Windows 7 can I set it so that a password is needed to boot into Win 7?   Secondly I would also like to protect grub menu entries being changed if possible.  thanks Implementing INotifyPropertyChanged - does a better way exist? Display the original, unedited post on the post editing page I edit people's posts occasionally on ServerFault when the grammar/punctuation/coherence goes below a threshold that my OCD can handle. However, on some of the thornier posts I would like to be able to compare my edits to the original text, especially when doing a final proof-reading of my edits.  At the moment, my only options are to either copy the original text into a text editor or copy a duplicate of the text into the editing field. From there I can compare my edits to the original text and make sure I'm preserving the original meaning as I attempt to untangle less than optimal communication.  This request is somewhat similar to this Meta post: "" Display Database Instance Relationship with TikZ I'm trying to display all of my corporate database instances and their relationship to each other, so to speak the database links. I found the geometry shape cylinder using TikZ \usetikzlibrary{shapes.geometric}, but I'm new to the whole TikZ stuff and it doesn't worked out that well so I thought maybe you could help me getting something like the following figure:    There will be a ton of instances and arrows, but I hope that you guys could give me a start so that I could do the rest on my own. prove that $\frac{(2n)!}{(n!)^2}$ is even if $n$ is a positive integer Prove that $\frac{(2n)!}{(n!)^2}$ is even if $n$ is a positive integer.      For clarity: the denominator is the only part being squared.   My thought process:   The numerator is the product of the first $n$ even numbers and the product of the first $n$ odd numbers.   That is, $(2n!) = (2n)(2n-2)(2n-4)\cdots(2n-1)(2n-3)(2n-5).$ In effect, the product of even numbers can be cancelled out with $n!$ resulting in the following quotient:  $$ \frac{(2^n)(2n-1)(2n-3)}{(n!)}\;.$$  To me this looks even thanks to the powers of $2$. But I am not convinced for some reason.   Was this approach to naive?   Sorry for the poor notation, I don't know any coding languages, my apologies. I have a web service in C# and would like to have a nested inner class, that abstracts away the session collection, something like this:     public class Service : System.Web.Services.WebService {     [WebMethod]     public string Foo(string ticket)     {         SessionPool.getSession(ticket);     }      private class SessionPool      {         public static Session getSession(string ticket)         {             // this is what i want to do, but I can't access Context             return (Session)Context.Session[ticket];         }     } }    Is it possible to access the HTTP context of the WebService class via a nested class? If not, is there way I can store the reference to it? How to solve and see resolution of $13^{53} \pmod 7$ using Fermat little Theorem? Is cross-posting wrong (to an external site)? I made a question at Stack Overflow long ago and also posted the same question in a non-Stack Exchange website (Xtreme VB Talk). The question .  According to the answer, I shouldn't have cross-posted between Stack&nbsp;Overflow and XtremeVBTalk, because     it increases the probability that wires will get crossed and everyone will waste time.   But I'm not sure why is that wrong. You see, I simply see Stack&nbsp;Overflow and XtremeVBTalk as two different communities with different users. So posting the question in both sites would just give me more answers. And if I got the answer in one of them, I would report back to the other site and let everyone know (and perhaps someone else would be benefited as well). I really doubt it is a waste of time - the more input, the better. The fact that someone was a user in both websites is simply a coincidence.  I realize that Meta&nbsp;Stack&nbsp;Exchange question  exists, but apparently it involves cross-posting within Stack Exchange sites, but this is about external websites instead.  I also realize that I was told that as "advice" (since my question was not flagged or anything), but well, I am now curious: Why would anyone consider this a bad practice? In Windows XP we can search for files that contain a defined keyword (inside all files types).  Windows 7 can look inside files for a keyword, but only for text files. (*.doc, *.txt, *.inf, ...), not (*.conf, *.dat, *.*, ...).   don't contain any filter I can use for this.  How is this possible? I find I always have trouble scaling the amount of time the eggs should be boiled, cooled, etc. for different-sized batches of hard-boiled eggs.  I've heard a variety of "folk lore"-type rules for how it should be done, but what's really the right way? Travel in the Schengen area after my residence card was lost or stolen I have already booked my flight from Italy to the Netherlands through Ryanair. I'm staying in Italy legally and have a carta di soggiorno. However, after booking my flight, my wallet was stolen, which contains all my IDs except my passport. I filed a police report, and I'm trying to get a new residence card. However, I need to go to the Netherlands ASAP. Will Ryanair accept the police report and receipt of getting a new residence card from the post office?  UPDATE (17.07.2014)  Thanks for helping me out. BTW it's OK now. I went to our local CISL here in Florence, Italy, where they process your envelope for renewing your permesso di soggornio or carta di soggiorno (residence permit for foreigners) to be submitted to the post office. That's where you pay and get your postal receipt, and they make an appointment for you at the questura. Anyway, long story short, they processed a application for IMPROVISED residence permit which is good for 30 days to travel within the Schengen area, so all I have to do is go to the questura, bring my travel booking, the police report and copy of my passport. Now I can travel, and it's my first time to fly with Ryanair because I always use Transavia to go to Holland. =) Hope this helps for future persons who will have the same issue with lost or stolen residence permits...Just wish me luck that the questura will process my improvised residence permit immediately. Maximal Ideals in Ring of Continuous Functions Dummit and Foote, 7.4.33(a): Let $R$ be the ring of all continuous functions $[0,1] \to \mathbb{R}$ and let $M_c$ be the kernel of evaluation at $c \in [0,1]$, i.e. all $f$ such that $f(c) = 0$. Show that if $M$ is a maximal ideal in $R$ then $M = M_c$ for some $c$.    I am aware of proofs that use the compactness of $[0,1]$; however I have been told that a simpler proof exists using only the isomorphism theorems for rings along with basic facts about ideals. I have tried on my own to prove it this way but still have no success; is it possible?  (My attempts go something like: since $M$ is maximal, the quotient ring $R/M$ is a field. Then it would be nice to use the fact that $R/M$ has no zero divisors, but I can't quite make it work. Alternatively, consider $M \cap M_c$.) How to disable copy in shared folder I am trying to make folder that everyone can view and can't copy,modify.    For all answers.I thinking about specially ms office files. I tried following methods  Software  - copy protect    - anti copy    This method can't protect save as and upload  MS office macro    Users can enable,disable macros.  MS office restriction    This is best choice but can't protect from file uploading.   Almost I found the solution. Way is combination of MS office restriction and restrict access from browsers using firewall or antivirus. But I don't exact how to do this. Getting below error message while issuing :  sudo apt-get update  Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [95.8 kB] Ign:2 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 InRelease                                                                                                             Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                          Hit:4 http://ppa.launchpad.net/canonical-x/vulkan/ubuntu xenial InRelease                                                                                                 Hit:5 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 Release                                                                             Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease                                                   Ign:7 http://dl.google.com/linux/talkplugin/deb stable InRelease                                                      Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                    Ign:9 http://linux.dropbox.com/ubuntu wily InRelease                                            Hit:10 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease                               Get:12 http://dl.google.com/linux/chrome/deb stable Release [782 B]       Hit:13 http://dl.google.com/linux/talkplugin/deb stable Release                   Ign:14 https://apt.dockerproject.org/repo ubuntu-wily InRelease           Hit:15 https://apt.dockerproject.org/repo ubuntu-wily Release             Get:16 http://dl.google.com/linux/chrome/deb stable Release.gpg [181 B]   Hit:17 http://linux.dropbox.com/ubuntu wily Release                                   Get:20 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,191 B] Fetched 98.0 kB in 0s (118 kB/s)                                  Reading package lists... Done N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'   This cuts across various releases of ubuntu "Now" vs "by now" Consider these examples:   By now the desk should be looking significantly tidier!  By now, the failure of regulators to contain dangerous forces should be well accepted.  By now I own some forty copies of the magazine.  By now the blue of twilight is glowing.  He used leverage, but by now applied concerted discipline to contain his risks.    I wonder if I can use &quot;now&quot; instead of &quot;by now&quot; to convey the same meaning. I would think &quot;by now&quot; refers to a moment until now, but why not use past tense or present perfect tense in the these examples? Global setting of hyphenation for words containing dashes