Live example:   Source markup:  &lt;xf:macro name="breadcrumbs" arg-breadcrumbs="!" arg-navTree="!" arg-selectedNavEntry="{{ null }}" arg-variant=""&gt;     &lt;xf:if contentcheck="true"&gt;         &lt;ul class="p-breadcrumbs {{ $variant ? 'p-breadcrumbs--' . $variant : '' }}"             itemscope itemtype="https://schema.org/BreadcrumbList"&gt;         &lt;xf:contentcheck&gt;             &lt;xf:set var="$position" value="{{ 0 }}" /&gt;              &lt;xf:set var="$rootBreadcrumb" value="{$navTree.{$xf.options.rootBreadcrumb}}" /&gt;             &lt;xf:if is="$rootBreadcrumb AND $rootBreadcrumb.href != $xf.uri"&gt;                 &lt;xf:set var="$position" value="{{ $position + 1 }}" /&gt;                 &lt;xf:macro name="crumb"                     arg-position="{$position}"                     arg-href="{$rootBreadcrumb.href}"                     arg-value="{$rootBreadcrumb.title}" /&gt;             &lt;/xf:if&gt;              &lt;xf:if is="$selectedNavEntry &amp;&amp; $selectedNavEntry.href &amp;&amp; $selectedNavEntry.href != $xf.uri &amp;&amp; $selectedNavEntry.href != $rootBreadcrumb.href"&gt;                 &lt;xf:set var="$position" value="{{ $position + 1 }}" /&gt;                 &lt;xf:macro name="crumb"                     arg-position="{$position}"                     arg-href="{$selectedNavEntry.href}"                     arg-value="{$selectedNavEntry.title}" /&gt;             &lt;/xf:if&gt;             &lt;xf:foreach loop="$breadcrumbs" value="$breadcrumb" if="$breadcrumb.href != $xf.uri"&gt;                 &lt;xf:set var="$position" value="{{ $position + 1 }}" /&gt;                 &lt;xf:macro name="crumb"                     arg-position="{$position}"                     arg-href="{$breadcrumb.href}"                     arg-value="{$breadcrumb.value}" /&gt;             &lt;/xf:foreach&gt;          &lt;/xf:contentcheck&gt;         &lt;/ul&gt;     &lt;/xf:if&gt; &lt;/xf:macro&gt;   I'm trying to grab the ul.p-breadcrumbs element via regex. I can grab the ul and everything after ok using:  &lt;p.*class.p-breadcrumbs(.*[\s]*)*   And I can select the closing tag with  &lt;\/ul&gt;   However putting them together doesn't work at all:  &lt;ul.*class=.p-breadcrumbs(.*[\s]*)*&lt;\/ul&gt;   I followed this answer:   But it doesn't work with multiline content. If you line break that example and enter more content it breaks the solution. Appreciate any pointers as I'm pulling hair out trying to solve the last bit!
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}?
How to show or hide Keyboard Viewer with a keyboard shortcut? I would like to display and hide the Keyboard Viewer using a shortcut.   Is there a way to display the Keyboard Viewer via a keyboard shortcut? Is there a way to automatically display the Keyboard Viewer once I switch to a specific language? com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure How can I delete a (null) app in usage? In my usage list(settings>general>storage &amp; iCloud usage>manage storage), there is an app that registers as (null) with no icon, a version number that doesn't match anything I've previously downloaded, and it's taking up storage space. I first noticed it about a week or two ago. And no, I can't download recent apps to find the one that it is, because I downloaded multiple apps recently, and didn't notice the (null) app until my storage was critically low and I was looking to delete something. I am running iOS 9.2.1 on an iPhone 5C. Suppose that $f : \mathbb{C} \to \mathbb{C}$ is entire. Let $\Omega = \{ z : \frac{1}{2} &lt; |z| &lt; 2\}$. Furthermore, suppose that $ \mathcal{F} = \{f(kz) : k \in \mathbb{C}\}$ is a normal family of analytic functions defined on $\Omega$; the family $\mathcal{F}$ is normal on $\Omega$ iff each sequence from $\mathcal{F}$ has a subsequence converging uniformly on compact subsets of $\Omega$. Prove that $f$ is a polynomial.  I'm studying for my qualifying exam in complex analysis, and this question appears on an old exam. Usually, when I want to show that some entire $f$ is a polynomial, I just try to show that there exists some $N$ so that $f^{(k)}(0) = 0$, all $k \ge N$, but I'm having trouble getting that strategy to work here. I've been looking at the sequence $f(\frac{z}{n})$ trying to make something work, but have not had any success.   I would prefer to receive a hint or two, and then I'll try to post my own solution. Thanks in advance! No more WIFI. oem-wifi-intel-iwlwifi doesn't build on the new 4.4 kernel Why doesn't the Doctor go back to Gallifrey before the Time War? According to , it’s just the Time War that is time locked. So why does Eccelston's Doctor tell Rose:     My whole planet is gone. My people, my family, all gone. Don't you think I want to go back and save them?   Why hasn't he ever gone back to before the war?   All the other Doctors basically see Gallifrey as gone from them, and when you say the Doctor cannot go back on his own timeline, there will have been plenty of time periods he could go to; maybe to a time before they could regenerate, or maybe when Time Lords were using Tardises — as in "The Doctor's Wife" she says to Matt Smith:     I was already a museum piece when I stole you cron Vs. sleep - which is the better one in terms of efficient cpu/memory utilization? Why is logistic regression a linear classifier? Since we are using the logistic function to transform a linear combination of the input into a non-linear output, how can logistic regression be considered a linear classifier?  Linear regression is just like a neural network without the hidden layer, so why are neural networks considered non-linear classifiers and logistic regression is linear? I have installed Ubuntu 12.04-64 bit on my Lenovo IdeaPad laptop, and the wired Ethernet (LAN) connection doesn't work.  Running the lspci -vv | grep Atheros command from the terminal shows me I have the AR8161 Gigabit Ethernet controller:  02:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 08)   This looks like a new product whose drivers are not built into Ubuntu.  How do I install drivers to get the AR8161 working? How to generate all permutations of a list? Differentiability of this picewise function $$f(x,y) = \left\{\begin{array}{cc} \frac{xy}{x^2+y^2} &amp; (x,y)\neq(0,0) \\ f(x,y) = 0 &amp; (x,y)=(0,0) \end{array}\right.$$  In order to verify if this function is differentiable, I tried to prove it by the theorem that says that if $\frac{∂f}{∂x}$ and $\frac{∂f}{∂y}$ exist and are continuous at the point $(x_0,y_0)$, then the function is differentiable at this point. So I did:  $$\frac{\partial f}{\partial x}(0,0) = \lim_{h\to 0}\frac{f(0+h,0)-f(0,0)}{h} = 0$$ $$\frac{\partial f}{\partial y}(0,0) = \lim_{h\to 0}\frac{f(0,0+h)-f(0,0)}{h} = 0$$  so we have that the partial derivatives at point $(0,0)$ is $0$. Now, if we take the derivative at $(x,y)\neq (0,0)$ and then take the limit of it as $(x,y)\to(0,0)$, we can see if the derivatives are continuous or not. So here it is:  $$\frac{\partial f}{\partial x}(x,y) = \frac{y(y^2-x^2)}{(x^2+y^2)}$$  but   $$\lim_{(x,y)\to(0,0)} \frac{y(y^2-x^2)}{(x^2+y^2)} $$ does not exist (by wolfram alpha... but can anybody tell me an easy way to prove this limit does not exist? easier than taking the limit in different directions?), therefore the derivative is not continuous at $(0,0)$, so we can't say $f$ is differentiable at $(0,0)$, but for $(x,y)\neq (0,0)$ the function is continuous, as it is a quotient of continuous functions. So $f$ is at least differentiable at $(x,y)\neq (0,0)$.   Now, to verify differentiability at $(0,0)$ I think we must use the limit definition of differentiablity: A function is differentiable at $(0,0)$ iff: $$\lim_{(h,k)\to (0,0)} \frac{f(0+h,0+k)-f(0,0)-\frac{\partial f}{\partial x}(0,0)-\frac{\partial f}{\partial y}(0,0)}{\|(h,k)\|} = 0$$  Let's calculate this limit:  $$\lim_{(h,k)\to (0,0)} \frac{f(0+h,0+k)-f(0,0)-\frac{\partial f}{\partial x}(0,0)-\frac{\partial f}{\partial y}(0,0)}{\|(h,k)\|} = \\ \lim_{(h,k)\to (0,0)} \frac{\frac{hk}{h^2+k^2}}{\sqrt{h^2+k^2}} = \\ \lim_{(h,k)\to (0,0)} \frac{hk}{(h^2+k^2)\sqrt{h^2+k^2}}$$  which I think, it's a limit that does not exist, therefore the function isn't differentiable at $(0,0)$ I recieve the below error when I am trying to call a Custom Lightning Component in a Visualforce page that is used in Communities.    Unrecognized Content-Security-Policy directive 'reflected-xss'.   logo180.png Failed to load resource: the server responded with a status of 404 (Not Found)   CommunityHomePage:1 Uncaught SyntaxError: Unexpected token w in JSON at position 0     at JSON.parse ()     at XMLHttpRequest.xhr.onreadystatechange (lightning/lightning.out.delegate.js?v=ZCuyRUYzK_kAf4cKCIeS2A:143)   My Component  &lt;aura:component controller="LeadController" implements="forceCommunity:availableForAllPageTypes"&gt;     &lt;aura:attribute name="theLead"          type="Lead"          default="{ 'sobjectType': 'Lead',                    'Rating__c': 2,                    'Company': '',                    'FirstName': '',                    'LastName': '',                    'Email': '' }"/&gt;     &lt;form&gt;          &lt;ui:inputText value="{!v.theLead.Company}" label="Company" class="input"/&gt;         &lt;ui:inputText value="{!v.theLead.FirstName}" label="First" class="input"/&gt;         &lt;ui:inputText value="{!v.theLead.LastName}" label="Last" class="input" /&gt;         &lt;ui:inputEmail value="{!v.theLead.Email}" label="Email" class="input" /&gt;         &lt;ui:button label="Save" press="{!c.save}"/&gt;     &lt;/form&gt; &lt;/aura:component&gt;   My Lightning App is   &lt;aura:application access="GLOBAL" extends="ltng:outApp" implements="forceCommunity:availableForAllPageTypes"&gt;     &lt;aura:dependency resource="c:CommunityChatter"/&gt; &lt;/aura:application&gt;   My VF Page is  &lt;apex:page standardController="Lead"&gt;     &lt;apex:includeScript value="{!$Site.BaseUrl}/lightning/lightning.out.js"/&gt;     &lt;script&gt;         $Lightning.use("c:MyLightApp", function() {             $Lightning.createComponent(                 "c:CommunityChatter",                 {},                 "theLead",                 function(cmp) {                     console.log("Component created!");                     console.log(cmp);                 });             });     &lt;/script&gt;      &lt;div id="theLead"&gt;&lt;/div&gt; &lt;/apex:page&gt; I have a set of 10 tables and each has an extra column that I don't want. Specifically, these tables are descriptions of database tables exported by phpMyAdmin, and they all have a "MIME" column that I would like to remove. Is there a way to do this other than using string manipulation / find and replace?   I have tried setting the column to p{0in}, but the column title still remains. How to install hp scanjet 200 in Ubuntu 12.04? Unable to scan with hp scan-jet 200. When I type lsusb command in terminal it shows the scanner details.  I opened the simple scan which displays no scanners found, and x sane image scanners also displays the same error. Could I have a hint for testing the convergence of the following series please?  $$\sum_{n=2}^\infty\frac{1}{(\ln n)^{\ln n}}$$  Edit  The integral test does not work because $\int_1^n\frac{1}{(\ln x)^{\ln x}}dx$ has not an elementary primitive.  Thank You. Have iPhone 4 with iOS 5.1.1 Trying to update to 6.1.2 (not the latest) via downloaded IPSW but unfortunately getting error:     iphone could not be restored device isn't eligible for the requested   build   After searching for fix all over the internet found some suggestion like putting # in hosts file in line gs.apple.com but not helped.  Have you any idea why I'm getting this error and can't restore iphone? S1300I scanner issues under Ubuntu 16.04 using Sane In theory this scanner does work under Linux and Ubuntu.  I've found this document that I tried to follow.    I install sane, copy firmware, confirm the location in the config etc.  Everything looks good.  Potential problem areas  sudo sane-find-scanner   output:  # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer.  found SCSI processor "Marvell 91xx Config 1.01" at /dev/sg5 # Your SCSI scanner was detected. It may or may not be supported by SANE. Try # scanimage -L and read the backend's manpage.  could not fetch string descriptor: Pipe error could not fetch string descriptor: Pipe error found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap S1300i]) at    libusb:005:007 could not fetch string descriptor: Pipe error # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage.  # Not checking for parallel port scanners.  # Most Scanners connected to the parallel port or other proprietary ports # can't be detected by this program.   Okay.  So the scanner is detected and listed, it prints a bunch of extra noise that   # scanimage -L  No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages).   Okay, let's verify the firmware files:  ls -lh  /usr/share/sane/epjitsu  total 136K -rw-r----- 1 root root 65K Jan  1 17:49 1300_0C26.nal -rw-r----- 1 root root 65K Jan  1 17:49 300_0C00.nal   Looking at the configuration file: (snippets)  # Fujitsu S300 firmware /usr/share/sane/epjitsu/300_0C00.nal usb 0x04c5 0x1156  # Fujitsu S1300 firmware /usr/share/sane/epjitsu/1300_0C26.nal usb 0x04c5 0x11ed   Last thing I tried was to pull the line from sane-find-scanner and update the config  sane-find-scanner returns a different product ID.   I updated the config file above, restarted the sane service, I ran scanimage -L still, scanner not detected.  For reference I had this working on this same computer under a virtualbox VM.  If I can get it to work under windows that would be ideal.  Any suggestion would be much appreciated.    Update: I revisited the behavior after adding the 1300i firmware and it's still not working but.  Once in a while when I do run this is the output.  If I run it again it'll fail.  scanimage -L device `epjitsu:libusb:005:008' is a FUJITSU ScanSnap S1300i scanner   also sudo gscan2pdf and sudo simple-scan both fail to detect a scanner.  It fails with and without sudo permissions. Prove that $|f''(\xi)|\geqslant\frac{4|f(a)-f(b)|}{(b-a)^2}$ Let ${\rm f}:\left[a, b\right]\to\mathbb{R}$ be twice differentiable, and suppose   $$\lim_{x\to a^{+}} \frac{{\rm f}\left(x\right) - {\rm f}\left(a\right)}{x - a} = \lim_{x\to b^{-}}\frac{{\rm f}\left(x\right) - {\rm f}\left(b\right)}{x - b} =0 $$  Show that there exists $\xi \in \left(a, b\right)$ such that $\displaystyle{% \left\vert\vphantom{\Large A}\,{\rm f}''\left(\xi\right)\right\vert \geq \frac{4\left\vert\vphantom{\Large A}% \,{\rm f}\left(a\right) - {\rm f}\left(b\right)\right\vert} {\left(b - a\right)^{2}}}$.  I don't know how to start. Any hints ?. How can I move files and view the progress (e.g. with a progress bar)? When moving large directories using mv, is there a way to view the progress (%)? The cp command on gentoo had a -g switch that showed the progress. Physical Explanation for "Kolmogorov -5/3 spectrum" in Fluid Mechanics According to Kolmogorov, the energy spectrum function of a turbulent fluid is given as,  $E(k)=C\epsilon^{\frac{2}{3}}k^{\frac{-5}{3}}$  where $\epsilon$ is the energy flux and $k=\frac{2\pi}{r}$ where $r$ is the length scale.   The normal explanation I see in most physics texts and articles is that the -5/3 exponent is found purely through dimensional analysis. Obviously dimensional analysis is very useful, but often times there is a more physical explanation as well. Does anyone have any insights?