I'm trying to match this output from ansible ping module output:  srv1 | SUCCESS =&gt; {     "changed": false,     "ping": "pong" } srv2 | SUCCESS =&gt; {     "changed": false,     "ping": "pong" }   as well as this output from ansible setup module output:  srv1 | SUCCESS =&gt; { "ansible_facts": {     "ansible_all_ipv4_addresses": [         "192.168.50.100"     ],     "ansible_all_ipv6_addresses": [         "fe80::a00:27ff:fead:7504"     ],     "ansible_apparmor": {         "status": "disabled"     },     "ansible_architecture": "x86_64", ...a lot of lines } srv2 | SUCCESS =&gt; { "ansible_facts": {     "ansible_all_ipv4_addresses": [         "192.168.51.101"     ],     "ansible_all_ipv6_addresses": [         "fe80::a00:27ff:fe98:b137"     ],     "ansible_apparmor": {         "status": "disabled"     },     "ansible_architecture": "x86_64", ...a lot of lines }   I'd like to put everything between { .. } for specific host into matched variable, so later I can it using yaml.load.  I tried:  regex = r'(\w+)\s\|\s(\w+)\s=&gt;\s(\{\n\s+"\w+":\s\w+,\n\s+"\w+":\s"\w+"\n\})' o = re.findall(regex,output,re.MULTILINE) for host in o:     yml = yaml.load(host[2])   This works for first output, but not for second. So I tried to generalize it:  regex = r'(\w+)\s\|\s(\w+)\s=&gt;\s(\{.*\})' o = re.findall(regex,output,re.DOTALL) for host in o:     yml = yaml.load(host[2])   But this will match everything between starting { and last }.  What am I doing wrong?  Thanx for help
I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?
Why are random walks intercorrelated? WoeUSB Error Code 256 with NTFS formatted USB I tried to create a Windows 10 USB boot medium with WoeUSB. I formatted a USB drive with an NTFS partition, but WoeUSB complains with:  Installation failed! Exit code: 256 Log: WoeUSB v@@WOEUSB_VERSION@@ ============================== Mounting source filesystem... Error: File "/media/woeusb_source_1543626298_6098/sources/install.wim" in source image has exceed the FAT32 Filesystem 4GiB Single File Size Limitation and cannot be installed.  You must specify a different --target-filesystem. Refer: https://github.com/slacka/WoeUSB/wiki/Limitations#fat32-filesystem-4gib-single-file-size-limitation for more info. Unmounting and removing "/media/woeusb_source_1543626298_6098"... You may now safely detach the target device   I've also tried to start WoeUSB via command line, did not work.  sudo woeusb --partition Win10_1809Oct_English_x64.iso /dev/sdb   My iso is located in:     home/sawyer/Downloads/Win10_1809Oct_English_x64.iso  Thanks in advance! I've been trying to get windows installed for three nights now, so any help towards that goal is greatly appreciated. How do I hide an element when printing a web page? I have a link on my webpage to print the webpage. However, the link is also visible in the printout itself.  Is there javascript or HTML code which would hide the link button when I click the print link?  Example:   "Good Evening"  Print (click Here To Print)   I want to hide this "Print" label when it prints the text "Good Evening". The "Print" label should not show on the printout itself. When should "farther" and "further" be used? I wanted to create a WP plugin. So I requested and my request was approved by WordPress.org But I don't want to develop that plugin anymore. How can I delete the repository forever or request its deletion. Finding the internal name and display name for a list column I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I heard for SharePoint list/list column, it has an internal name which could be used for programming (as identifier for list/list column), and also has a display name (which is showed for end user for list name or list column name).  How to find and set such internal name and display name for list/list column? How does the Rectified Linear Unit (ReLU) activation function produce non-linear interaction of its inputs? When used as an activation function in deep neural networks The ReLU function outperforms other non-linear functions like tanh or sigmoid . In my understanding the whole purpose of an activation function is to let the weighted inputs to a neuron interact non-linearly. For example, when using $sin(z)$ as the activation, the output of a two input neuron would be:  $$ sin(w_0+w_1*x_1+w_2*x_2) $$   which would approximate the function  $$  (w_0+w_1*x_1+w_2*x_2) - {(w_0+w_1*x_1+w_2*x_2)^3 \over 6} + {(w_0+w_1*x_1+w_2*x_2)^5 \over 120} $$  and contain all kinds of combinations of different powers of the features  $x_1$ and $x_2$.   Although the ReLU is also technically a non-linear function, I don't see how it can produce non-linear terms like the $sin(), tanh()$ and other activations do.  Edit: Although my question is similar to , I'd like to know how even a cascade of ReLUs are able to approximate such non-linear terms. What does it do exactly if I click in the window of cmd? Suppose I run cmd.exe and ping localhost. After that I ping localhost again but I click into the window and the ping stops until I press enter.  What happens exactly when I click into the window? Does it suspend the process or something else? I attached a screenshot to clarify this issue.  Note: I do not actually click but drag using the mouse which creates a white box in the window as you can see on the screenshot.  Edit: further clarification: What I really wish to know is whether dragging the window halts the cmd process or not?  Edit: even more clarification: I know that I'm using Quick Edit and pressing enter copies the contents I selected. What I do not know is what happens in the background. Is it true that the Fibonacci sequence has the remainders when divided by 3 repeating? Linear regression in a loglog-plot with fixed slope Goal: create a plot to compare the empirical convergence rate of a numerical method with the one expected from the theory.  Accordingly, given a loglog-plot, I would like to add the line which has a prescribed slope (in this case, the convergence of the method) and the best intercept to fit the data (e.g., in a least-square sense).  Question: how to do a linear regression with fixed slope in pgfplots?  What I have done so far is the following: (1) compute the regression line (of the logarithm of the quantities), (2) save the intercept, (3) plot the line with the slope expected from the theory and this intercept.  This is a good approximation of what I am looking for, provided the data are in agreement with the theory.  Thanks  MdFB The "correct" way to write a set without a specific element is as follows: $S \setminus \{s\}$  But in some contexts this is cumbersome to write/type or read, and it detracts from the flow of the writing. Is it acceptable to just use $S \setminus s$?  Edit: By "cumbersome" i mean they look bad when you're trying to inline formulas in LaTeX. How to create a scope? I'd like to create a custom scope that searches and returns results from an online source for personal use.  Is this possible? And if so, how? What's the meaning of "be blowed"? I would like to know what's the meaning of "be blowed" in the following text:     'I'm going to smoke' Jenkins said; 'be blowed to Bertie dear.' (Mrs. Smythe had once addressed her husband in the office as 'Bertie dear', and thereforth that had been his name among the staff.) Richard made no answer. When a minute later Jenkins, discreetly directing his puffs to the open window, asked him for the titles of one or two of Zola's novels in English, and their price, he gave the required information without turning round and in a preoccupied tone.   , Arnold Bennett, 1911. Finding the missing digits of $23!$ It is given $23!=2585201xy38884976640000$. Now it is required to find the value of $x$ and $y$. I know I could find it by using divisibility rules and solving simultaneous equations. Is there any other way to solve it (without computing it by a calculator)? This question is just out of curiosity. This problem is from Romanian G.M. and although it is very short, it is also (I think) very hard. Let $x, y, z$ real non-negative numbers such that $x+y+z=3$. Prove that   $$27 \leq (x^2+2)(y^2+2)(z^2+2) \leq 44 $$  I didn't succeed in any of the inequalities, I only managed to find the equality cases ($x=y=z=1$ for the first one and one of them $3$ and the others $0$). Any hint/idea/solution is welcome. Should I ask questions I already know the answer to and answer them myself? It seems that Geometric Complexity Theory requires much knowledge of pure maths such as algebraic geometry, representation theory.   While I am a CS student and do NOT have classes of very abstract and pure mathematics, I am interested in this program.  Is there a list of "minimum knowledge" for learning this theory ?     This list includes lecture notes of CS or math departments, surveys of any journal or conferences, and text books of pure math.  [EDIT: Added later] Thank you for your comments.  General theory of computing: I read Sipser's book with the title "Introduction to the Theory of Computation"  Complexity Theory :In particular, I am interested in concrete models for lower bounds of complexity. Thus I read the part of the "concrete lower bounds" in Arora-Barak's text book. I also have basic knowlede in the several chapers of the communication complexity book written by Nisan.  Basic Mathematics : I have learnt about proof-based linear algebra such as general definition of the vector space etc and precicely argument of calculas based on epsilon-delta argument.   Algebra: I have learned about definition and examples of group, ring, and field. I had a class for cs students, and have not learned about general thoery of this algebraic systems. As I understand these two statements:   An electromagnetic field gives particles charge A photon is a quantum of electromagnetic field   It must mean that a photon carries charge. But I guess it isn't true. Why not? How do I remove my "page not found" pages from Google's index? I have a wordpress site that has had a large number of blog posts removed. How can i ask google to remove all these 404 page not founds, but leave the active blog posts. I see the removal tool in google webmasters but it doesnt say if it will just remove the 404s. I understand 404s naturally are removed from the index, but i want to expedite this. Does the curvature of spacetime theory assume gravity? Whenever I read about the curvature of spacetime as an explanation for gravity, I see pictures of a sheet (spacetime) with various masses indenting the sheet to form &quot;gravity wells.&quot; Objects which are gravitationally attracted are said to roll down the curved sheet of spacetime into the gravity well. This is troubling to me, because, in order for objects on the locally slanted spacetime sheet to accelerate, gravity must be assumed. Therefore I ask; does the explanation of gravity as the curvature of spacetime assume gravity? If yes, what is the point of the theory? If No, what am I missing?