I'm using this code: (?i)(?&lt;!\d)Item.*?1A.*?Risk.*?Factors.*?\n*(.+?)\n*Item.*?1B to grab the following text:  ITEM 1A.    RISK FACTORS  In addition to other information in this Form 10-K, the following risk factors should be carefully considered in evaluating us and our business because these factors currently have a significant impact or   In addition to other information in this Form 10-K, the following risk factors should be carefully considered in evaluating us and our business because these factors currently have a significant impact or    ITEM 1B.   But it would not grab anything in the capturing group, unless it's one paragraph like this:  ITEM 1A.    RISK FACTORS  In addition to other information in this Form 10-K, the following risk factors should be carefully considered in evaluating us and our business because these factors currently have a significant impact or   ITEM 1B.
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;
Im having a bit of trouble drawing a circuit with a diode in. I know the current flows from negative to positive, but convention says that current goes from positive to negative.  When drawing a circuit with a diode do you draw the arrow pointing to the positive (matching the actual flow of electrons) or towards the negative terminal (matching conventional current)?  If you follow convention then surely when building circuits from the diagram the diode will not allow current as it is actually facing the incorrect way? MapServer (MS4W) test page from shapefile shows only blank white square? I am trying to create a test page with mapserver and shapefile. At the moment I just want to get the map shown on my test page. I have gotten the EXTENT coordinates by opening shapefiles with QGIS - I am sure those are correct. I have followed this  as an example.  I am accessing my test page via this link:  http://localhost:1025/cgi-bin/mapserv.exe?map=C:\MS4W\ms4w\Apache\htdocs\mapfile.map   Problem I have - map is not loaded - I only see a blank white square.  When I look at contents of ms4w\Apache\htdocs\output , I see that images are actually getting generated but all of them are white (empty), for example:  lat_pmts_region13941906093724.png lat_pmts_region13941910095144.png lat_pmts_region13941913405500.png ...   Shapefiles are located at this location: C:\MS4W\ms4w\Apache\htdocs\shapefiles.  An example of what is logged to error file:  [Fri Apr 11 11:19:32 2014].883000 CGI Request 1 on process 7888 msWCSDispatch20(): wrong service (none) msWCSParseRequest(): request is KVP. msWCSDispatch(): SERVICE and REQUEST not included msDrawMap(): rendering using outputformat named png (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawMap(): Layer 0 (lat_pmts_region), 0.001s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.002s msSaveImage(C:/MS4W/ms4w/Apache/htdocs/output/lat_pmts_region13972043727888.png) total time: 0.138s [Fri Apr 11 11:19:33 2014].24000 mapserv request processing time (loadmap not incl.): 0.141s [Fri Apr 11 11:19:33 2014].24000 msFreeMap(): freeing map at 0246EFD8.   ms4w\Apache\htdocs\template.html:  &lt;html&gt; &lt;head&gt;&lt;title&gt;Mapserver Template HTML Document&lt;/title&gt;&lt;/head&gt; &lt;body bgcolor=#AAAAAA&gt; &lt;h2&gt;Template&lt;/h2&gt; &lt;img src="[img]" border=1&gt; &lt;/body&gt; &lt;/html&gt;   It looks like this:   C:\MS4W\ms4w\Apache\htdocs\mapfile.map:  MAP     CONFIG "MS_ERRORFILE" "C:/MS4W/ms4w/tmp/ms_error.txt"     DEBUG 5     NAME lat_pmts_region     STATUS ON     SIZE 800 600      EXTENT 286878.53 142087.25 799084.10 481123.75     #   lat_pmts_region      UNITS METERS     SHAPEPATH "shapefiles"     IMAGECOLOR 155 155 155      WEB     TEMPLATE "template.html"     IMAGEPATH "C:/MS4W/ms4w/Apache/htdocs/output/"     IMAGEURL "/output/"     END      LAYER     NAME "lat_pmts_region"     DATA lat_pmts_region     STATUS DEFAULT     TYPE POLYGON     END END   I will gladly provide more information if it's asked. Change how questions marked as duplicates by the asker are represented Situation: when a user self-marks their post as a duplicate, it shows as closed by "community" rather than the original poster.  Problems: this is not clear at all to most users of SE what has happened. It looks like the question was "mod closed" as a duplicate against the asker's wishes.    Suggestion: instead of the community user "closing" the post, have the final close user be the asker (or make it "Community &amp; Asker"). This will help clear up confusion and streamline the process for understanding what happens. I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use &amp; and \\ inside a block started with \[. Any good application for data usage monitor? I was wondering if there are any good applications to monitor how much data I use on my laptop in a month. My net connection has a restriction of how much data I can use after which the speed goes down considerably. I saw ntop, but I just wanted to ask if there are any other good options or suggestions regarding this. Regards. Create ArrayList from array As we all know, going near a black hole (Gargantua in this case) slows down time, according to the theory of relativity.  So when Cooper comes out of the black hole, after spending a fair bit of time there, shouldn't he be much older than Brand who hasn't gone inside Gargantua? As we all know, air consists of many gases including oxygen and carbon dioxide. I found that carbon dioxide is heavier than O2. Does the volume difference neglect the mass difference? Is it same for all other gases in air or is there another force that keeps all of these gases together?  If I take a breath of a fresh air, will the exhaled air be heavier because of its higher CO2 content? Will it fall on the floor? I don't know if this is a well-known fact, but I have observed that every number, no matter how large, that is equally divided by $9$, will equal $9$ if you add all the numbers it is made from until there is $1$ digit. A quick example of what I mean:  $9*99 = 891$ $8+9+1 = 18$ $1+8 = 9$  This works even with really long numbers like $4376331$ Why is that? This doesn't work with any other number. Similarly for $11$ and alternating digits sums. I am new to Drupal. I have been trying to make a slide show on the front page but I am facing an issue on how to upload images of my choice in the slide show. I.e. the images that I have in my computers folder.  I have created a view and placed an image field in it, everything is set. I have also added the block to the main page content. All I can see on the front page is the slider title obviously since i have not been able to add any images.   Can any body tell me how to set my own images to the slider?  I don't want to use fixer slider.  I have used views slide show and some other js files for cycle.  Edit: Here is a screenprint of the view I defiined so far: Maximal ideal in the ring of continuous functions from $\mathbb{R} \to \mathbb{R}$ Well, the problem I'm trying to solve is this:      Let $A$ be the ring of all continuous functions from $\mathbb{R} \to \mathbb{R}$. Show that $M = \{f \in A: f(0)=0\}$ is a maximal ideal of $A$.   I tried to show that if $J$ is an ideal of A that properly contains M, so $J = A$: we know that there is a function $g \in J$ with $g(0) \neq 0$. So, we have that $$J \supseteq \langle g, M\rangle=\{ag+f;a \in A, f\in M\}$$   I tried to show that 1 $\in$ $\langle g,M\rangle$. However I'd have to find some function $h(x)\in A$ such that $h(x)(ag+f) = 1$, but this function $h$ has to be different from 0 for all x $\in \mathbb{R}$, so I don't know how to find this function.  My second idea to solve this problem was prove that the quocient $A/M$ is a field. We have that $$A/M = \{h(x) + M; h(x) \in A\},$$ but again I have the problem to show that all elements of $A/M$ are units.  If someone could help, I would be really grateful (: I got some new hard discs and would like to set my PC up in the following way:   Ubuntu is currently installed on one drive I want to put Windows on a second drive I would like a third drive for shared content (music and stuff) that both OSes can access     What I need to know is what format should the content drive be?  How should I configure the drive order in my bios for GRUB to be boot manager and how to configure GRUB for multi-HDD booting? Drawbacks of making public which journal a manuscript is submitted to, while it is under review? Many researchers list out their submitted manuscripts on their website. Some specify the journal name, like     Smith J, Oliver J (under review) My awesome paper. Nature.   while others don't, like     Smith J, Oliver J (under review) My awesome paper.   One reason I can think of as to why some don't mention the journal name is that they may get embarrassed in the case where the current journal rejects the paper. Then, the "circle" will know this paper gets rejected from Nature first and then ends up in an inferior journal.  Besides this, are there any other considerations preventing people from mentioning to which journal they submit a paper to?  P.S.: I am asking because my advisor is a researcher who only mentions accepted  papers on his webpage. As a student hunting jobs, I feel it is advantageous for me to mention my submitted papers on my webpage. I hesitate to do so, as I worry I may make my advisor unhappy by announcing in which journal our papers are currently under review. How are answers with the same vote score sorted? When a new question is asked how are the answers sorted?  I just answered a question and there were two other answers.  All three answers have 0 votes and no edits.  Immediately after I answered my answer appeared first.  Now the order refreshed,  it appears they are sorted by reputation. Stack Overflow is getting a Meta of its own Javascript profanity match NOT replace My 13 year old daughter says she wants to be a boy. This is out of character for her. Is this a phase? My daughter, 13, has said she wants to be a boy. A little background: we moved to a new state a year and a half ago. In her new school, she felt isolated among her peers until she met a girl in art, and became good friends. She joined the drama club, and made  friends with some 8th graders. They joined “the diversity club”. This club is a LGBT club. The kids put on a play they wrote and starred in, which had homosexual connotations. “Romeo and Juliet”, but script  rewritten to include  2 females as the couple, for instance.   My daughter got so wrapped up in it, that her life was as if she was copying the play. She’s no longer friends with the friend from art, but remains close with the 8th grade crowd. They all labeled themselves. One week, my daughter said she was gay, then, changed to bi, then onto pan. (I had to google that one). Now she is emphatic about being disgusted with her body and wants to be a boy. She wants to donate all the “girly” clothes she picked out last year, and tossed out all the makeup she bought a few months ago.   All her life, she was the classic girly girl. She had crushes on boys, and she and this boy were inseparable since first grade. She was sad when it came time to move away. When we settled here, she became sullen and angry, putting herself down. She now sees a therapist who she really likes. We’ve been working on her self esteem issues. She’s wanting us to call her “he” and by a male name. I can’t do that. She’s my daughter. She is female. Had we seen this coming, maybe I could come to accepting. But it happened out of the blue.  Sometimes the old her comes back-I got a makeup sample and she was interested in trying it, looked at me, then quickly put it down and said “ewww, makeup”—just a few months ago, she bought a bunch. She’s now wanting to wear boys clothes and talks of wearing a suit to her prom. She is very impressionable, and seems affected by viral YouTube videos about kids coming coming out to their mothers, and the mothers gleefully embrace with happy tears. She has told me when she’s 18, she’s having her breasts removed.    Nothing seems normal to me anymore-in terms of how she always was-this new situation just doesn’t fit.  My gut tells me this is a phase.  I’m hoping it’s a phase. But with all I’m seeing in the media about this, I’m not sure. I love her; this is too much for me to process. I’m a stay at home mom; we were inseparable. I knew her. Until now.:(  She cut off all her beautiful hair, and wears boys shorts, baggy tee shirts, and bought this awful men’s deodorant spray. Please help me sort this out. I’m at my wits end.  Do you think this is a phase? Is this common? I'm looking into using Named Credentials (spring '15) to simplify apex callouts to an external web service.  I actually thought, based on the documentation, that this would help, and I'm referring correctly to the Named Credential in my code and have also given my profile access to the NC, but I'm faced with this error when I do the callout:     System.UnexpectedException: You don't have permission to view this   data. Ask your administrator to set up authentication for the external   data source   This seems to say that NC are tied to the use of External Data Source, which is absolutely unrelated to what I want to do, and the documentation doesn't mention that they are a requirement.  Have any of you run into this error when testing out Named Credentials? Javascript multiple replace I have an external hard disk, and for some reason, it is reporting wrong free space.  In Windows Explorer, it is showing the used space is 378 GB.    I tried running chkdsk H: /f /r, it seems to report the same usage as Windows Explorer, and it says that there is no problem.    But when I tried selecting all the files inside this drive, it is showing much lesser usage.    I've already set the setting to show all hidden files and folders, also show the protected OS files, but it still cannot find about those missing files. And the difference is huge (282 GB). I've already cleaned the Recycle bin as well.    What I am missing here and how do I identify those missing spaces?  [UPDATE]: I used  to help identify and it seems to find some gigantic files, of which filename is quite weird. Anyone knows what this is and is it safe to delete?