In python I can't match all character including newline. This is the string     &lt;ebl:NotificationSignature xmlns:ebl="urn:ebay:apis:eBLBaseComponents"&gt;   4tzL1OLLe3eEchFIDFFJbA==&lt;/ebl:NotificationSignature&gt;   This is the regex I've used  re.findall('&lt;ebl:NotificationSignature xmlns:ebl="urn:ebay:apis:eBLBaseComponents&gt;"(.*?)&lt;/ebl:NotificationSignature&gt;', body)   I tried with this one:      re.findall('&lt;ebl:NotificationSignature xmlns:ebl="urn:ebay:apis:eBLBaseComponents&gt;"(.*?|\n*)&lt;/ebl:NotificationSignature&gt;', body)   They return nothing. I am using python 2.7.
For example, this regex  (.*)&lt;FooBar&gt;   will match:  abcde&lt;FooBar&gt;   But how do I get it to match across multiple lines?  abcde fghij&lt;FooBar&gt;
I have installed a package using snap and I need to modify one of the files but when I try to change its ownership or permissions, I always get the following message:  sudo chmod +x ./my_file.js chmod: changing permissions of '/snap/my_app/my_file.js': Read-only file system   How can I modify files that are installed via snap? How to define binary operation on arbitrary set in order to create a group structure. What data type to use for hashed password field and what length? I'm not sure how password hashing works (will be implementing it later), but need to create database schema now.  I'm thinking of limiting passwords to 4-20 characters, but as I understand after encrypting hash string will be of different length.  So, how to store these passwords in the database? NORMAL label in top right of some applications Why are some of my screen-recording/capturing/sharing applications (or app features) not working in Ubuntu 17.10 (and later releases)? After upgrading to Ubuntu 17.10 I noticed some of my screencasting applications are not working, for example screencasting tools like SimpleScreenRecorder and vokoscreen. ()  Also I noticed features like screenshot from GIMP is not working properly, producing blank screenshots (). Shutter too is producing glitchy screenshots ().  Screen-sharing option on Skype is also not working ().  The issue occurs sometimes on later Ubuntu releases too.  Why is this happening and how do I fix this? When I post an answer to a brand new question I usually find that someone else has submitted that same answer just moments before. (, usually ;-) )  What I've started to do lately is (I think) the right thing.   If I notice that another answer predates mine, and that I add no value over it, I immediately delete my own answer, and upvote the other guy.  I recommend that you too do the same. Otherwise the message will be diluted.  Similarly, if after posting your "answer" you realise that you are in fact wrong (and you've just misread the question) -- you can actually delete your answer.  Is this reasonable?  (The reason why I'm writing this down is because it feels completely counter-intuitive to delete your own stuff. But it really saves everyone time and effort) I was wondering if anybody knew a command that would allow me to open a Nautilus (if that's the right name for the Ubuntu graphic/window explorer) window from the command line at the current directory that the user is at.  So, if I open a command line, and type:  cd /home/myUser/some/long/path/to/a/directory   Then, I'd like to be able to issue some command:  nautilus open-sesame   And have a graphic window opened to /home/myUser/some/long/path/to/a/directory. Is this even possible? How do you change the size of figures drawn with Matplotlib? How can I reliably and accurately identify the passive voice in writing or speech? Number of Homomorphisms from $\Bbb{Z}_m$ to $\Bbb{Z}_n$ 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 does "Perform GC" button do in jconsole? How do you get the index of the current iteration of a foreach loop? Is there some rare language construct I haven't encountered (like the few I've learned recently, some on Stack Overflow) in C# to get a value representing the current iteration of a foreach loop?  For instance, I currently do something like this depending on the circumstances:  int i = 0; foreach (Object o in collection) {     // ...     i++; } Why Do Jedi Use One Lightsaber in Combat? While I've seen Ahsoko Tano, in The Clone Wars, fight with two lightsabers (one in each hand), this seems to be extremely rare for Jedi.  We've seen Sith do this frequently, like Asajj Ventress, with two lightsabers.  Darth Maul used a dual lightsaber against Qui-Gon Jinn and Obi-Wan Kenobi and then there's General Grievous, who uses multiple lightsabers with his multiple limbs.  But most Jedi use just one blade, and their lightsaber hilts tend to be simple, just a straight cylinder without much adornment, while Sith sometimes use curved grips or other more exotic stylings.  Is there a reason Jedi stick with the simplest lightsaber designs and why the vast majority (at least in the movies and in The Clone Wars series) use only a single lightsaber? I have attempted a proof of this, but upon looking at my notes, I feel it might be incorrect: it is noticeably simpler than the one in my notes.  Proposition: any permutation in $S_n$ can be written as a product of disjoint cycles.  Proof (attempt): $s\in S_n$. Let $\langle s\rangle$ act on $X=\{1,\cdots,n\}$. Define $x\sim x'\iff x'\in\text{Orb}(x)$ for $x,x'\in X:$ this is clearly an equivalent relation, hence the orbits partition $X$. Each orbit corresponds a cycle in $s$, so we are done.  Does this hold, or have I missed something vital? I run a large bulletin board and I get spammers every now and again. My moderation team does a good job filtering them out but every time I IP ban them they seem to come back (I'm pretty sure it's the same person on some occasions, as the post patterns are exactly the same as are the usernames) but I'm afraid to ban them by IP address every time.  If they are on a dynamic IP address, I could be banning innocent users later down the line when they try to get to my forum through SERPs, but if I ban only via static IPs I know that I'm only banning that one person.  So, is there a way to properly determine if an IP address is static or dynamic?  Thanks. Applications losing focus for a few seconds in Windows 7 Recently all of my applications keep losing focus every minute (or so) for a few seconds (then the window gets the focus back). It is very annoying, since I'm typing most of the time and get interrupted by this behavior. Things worked fine until a week ago and I have no idea what is causing this error, but I noticed the mouse moves to a certain point on one of my screens when this happens.  I would appreciate any advice: it starts to drive me crazy... Laplace equation of composite function Suppose we have $f(x,y)$, which satisfies Laplaces equation: $\frac{\delta^2f}{\delta x^2}+\frac{\delta^2f}{\delta y^2}=0$  Does $f(\frac{x}{x^2+y^2},\frac{y}{x^2+y^2})$ also satisfy Laplace equation? How can I repair a ceiling fan that hums, but doesn't turn? Supposing we have a table with four columns (a,b,c,d) of the same data type.  Is it possible to select all distinct values within the data in the columns and return them as a single column or do I have to create a function to achieve this?