I have the following html content   &lt;html&gt;&lt;head&gt; &lt;title&gt;Simple&lt;/title&gt;   &lt;/head&gt; &lt;body&gt; &lt;div id="Content" style="padding: 5px;"&gt; &lt;p&gt;&lt;a href="http://confluence:8080/download/attachments/8618175/Text.txt?version=1&amp;modificationDate=1484637732181"&gt;Text.txt&lt;/a&gt;&lt;br/&gt; &lt;span class="image-wrap" style=""&gt;&lt;img src="http://confluence:8080/download/attachments/8618175/add-button-blue-hi.png?version=1&amp;modificationDate=1484562338796" style="border: 1px solid black" /&gt;&lt;/span&gt;&lt;br/&gt; &lt;span class="image-wrap" style=""&gt;&lt;a class="confluence-thumbnail-link 300x200" href='http://confluence:8080/download/attachments/8618175/attachment.jpg'&gt;&lt;img src="http://confluence:8080/download/thumbnails/8618175/attachment.jpg" style="border: 1px solid black" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;/body&gt;&lt;/html&gt;   Here i have two &lt;a&gt; tags. I need the value of href of the &lt;a&gt; node where the attribute 'src' is that of the second &lt;a&gt; node i.e \"\"  I have a variable say string x which contains this value and i need to get the the href of the &lt;a&gt; node based on this value.  Right now i am using "href\s*=\s*(?:\"(?&lt;1>[^\"]*)\"|(?&lt;1>\S+))" but it gives me the href value of all the  nodes.
I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries.
How to smooth shade an object while retaining hard edges? I'm looking for a word which indicates that a person has adopted a quality suggested by their name, e.g. a person named Grace who is indeed graceful, or perhaps someone named Shepherd who has become a shepherd.  I have a strong notion that I once learned such a word, but I have forgotten it and have never re-discovered it. Basic Web Development IDE/Editor like Dreamweaver? I've used Windows for many years, using Dreamweaver as my editor as it had a file tree which is based on a project (via Local, FTP or SFTP).  I need a web development IDE with the following functionality:   syntax highlighting for PHP, HTML, CSS, JavaScript  file tree - Local, FTP, SFTP, Project-Based (e.g. via the methods of Local/FTP/SFTP) in other words, like Dreamweaver can open multiple files (tabbed)   Additionally, I wouldn't mind features like debugging, class listings, etc, as long as I can hide them away. Are C++ Templates just Macros in disguise? I've been programming in C++ for a few years, and I've used STL quite a bit and have created my own template classes a few times to see how it's done.  Now I'm trying to integrate templates deeper into my OO design, and a nagging thought keeps coming back to me: They're just a macros, really... You could implement (rather UGLY) auto_ptrs using #defines, if you really wanted to.  This way of thinking about templates helps me understand how my code will actually work, but I feel that I must be missing the point somehow. Macros are meant evil incarnate, yet "template metaprogramming" is all the rage.  So, what ARE the real distinctions? and how can templates avoid the dangers that #define leads you into, like   Inscrutable compiler errors in places where you don't expect them? Code bloat?  Difficulty in tracing code? Setting Debugger Breakpoints? Mathematica creates a huge eps file Is it appropriate to put a comma before "which"? How is being able to break into any Linux machine through grub2 secure? When I add LIMIT 1 to a MySQL query, does it stop the search after it finds 1 result (thus making it faster) or does it still fetch all of the results and truncate at the end? Are there any banned subjects on Area 51? I know of the following rules for creating a proposal on Area 51:  The scope must be reasonably well-defined, not too unclear (e.g. &quot;cool stuff&quot;), too opinion-based (e.g. &quot;car reviews&quot;), too broad (e.g. &quot;life on Earth&quot;), or too narrow (e.g. &quot;The 1995 academic misconduct scandal at East Oak Mews High School&quot;). One  come to Area 51 with an already existing community rather than hope to build one on Area 51. Proposals that are subsets of existing sites are not acceptable (e.g.  — deleted). These get closed as &quot;This subject is already well-covered by a live Stack Exchange site. We generally do not split off subjects simply to give them their own space.&quot; Proposals for non-English sites .  Other than the criteria above, are there any per se restrictions on site content for an Area 51 proposal? If so, what topics are currently banned? I would expect a proposal for a &quot;Let's organize a lawsuit against Stack Exchange&quot; or &quot;[Specific SE staff member] sucks, amirite?&quot; would get closed for obvious reasons, but I'm interested if there are any non-obvious topics that are not currently allowed in proposals regardless of how well-defined, well-scoped, original, and well-supported by a community they are. Having a list of banned topics would be helpful to potential proposers as well as the communities that back them. For example, I wouldn't want to go to all the effort of organizing a community, bringing them to Area 51, etc., only to have my proposal closed with a curt &quot;Sorry, due to the political climate, we are not currently accepting proposals for sites about real-life weapons.&quot; custom closure. To be clear, I am asking solely about topic restrictions (e.g. &quot;no sites about fishing, hunting, or weapons&quot;). I'm not asking about clarity requirements, the requirement to have a pre-existing community, not duplicating an existing site, or the requirement to not use sock puppets to artificially inflate proposal stats. Those requirements are already well-defined elsewhere or else are common sense. Also to be clear, I don't have a specific proposal idea in mind right now or the community to make it happen. I'm asking in general. The question could be rephrased as &quot;What are those topics where I shouldn't even bother to try to define, gather a community, etc. because any attempt to propose a site will be summarily closed due to covering a banned topic?&quot; This is not a duplicate of  because that question is about the appropriateness of expanding a proposal to cover things that are acceptable proposal topics but arguably don't make sense in combination with the original proposal scope. My question is about topics that are completely banned from proposals regardless of whether they are included in the original proposal description or tacked on by the community later. What are the odds of hitting exactly 100 rolling a fair die How to search based on part of file name in Google Drive I'd like to be able to find all files in my Google drive that contain the string "_INSTRUCTION_" in the file name. Is there a way to do this?  EDIT 1: When I search for "RMA2013", I should get a dropdown with several options. As you can see, there are several Word and .pdf files with the phrase "RMA2013". Still I get no dropdown help:   And even if I click the search button, I get nothing: There are now errors when updating and I cannot install most software due to a corrupted  /etc/apt/sources.list   file. Is there a copy I can download to replace it?  The file would be for Ubuntu 12.04 (Final Beta) in the United States. If you could travel to the center of the Earth (or any planet), would you be weightless there? How do I get a straight quote instead of curly quotes? I’m not inside verb or listing or any other special environments, and I’m not using XeLaTeX or anything—just normal LaTeX. I don’t want to change all quotes, just get the occasional straight quote. For example, I’d like a way to get something like this in the TeX:  ... some examples of these glyphs are curly quotes (``''), straight quotes ('"), and angled quotes ($'$$"$) ...   to look like this in the output:  ... some examples of these glyphs are curly quotes (“”), straight quotes ('"), and angled quotes (′″) ...   As I’m using an academic-publisher-provided template that does its own required font setup, I’m extremely wary of changing fonts or font encodings. I think the template uses the times package, and the formatting instructions say all fonts must be Type 1. In a photoelectric effect we remove electrons from a metal using high energy photons, the work function is the minimal energy required for this effect.  My question is why doesnt the work fucntion depended on time? The more electrons we take out from the metal, the more ionized it becomes (if we remove a lot of negative charge, it will turn positive), and as a result we would expect to need more energy for this effect (the possitive charge of the metal would make it harder to remove the remaining electrons).  Why does the work function remains constant no matter how much electrons we take out? What causes javac to issue the "uses unchecked or unsafe operations" warning Is it possible to save frequently used expressions in QGIS? Is there any way to save frequently used expressions in the selection or field calculator dialogs? Obviously I can cut and paste them into a file where I might save them, but I mean within the context of QGIS like you can do in ArcMap. How to arrive at $\int_{0}^{1} f^3(x) \, dx < (\int_{0}^{1} f(x) \, dx)^2$? Define $f : [0,1] \to \mathbb{R} $ differentiable satisfying $f(0)=0$ and $0&lt;f'(x)&lt;1$. Prove:  $\displaystyle\int_{0}^{1} f^3(x) \, dx &lt; \left(\displaystyle\int_{0}^{1} f(x) \, dx\right)^2$ I found the following answer,  Define $F(x)=\displaystyle\int_{0}^{x} f^3(t) \, dt - \left(\displaystyle\int_{0}^{x} f(t) \, dt\right)^2$ We have $$F'(x)=f^3(x)-2 \left(\displaystyle\int_{0}^{x} f(t) \, dt\right)f(x)=f(x)\left[f^2(x)-2 \left(\displaystyle\int_{0}^{x} f(t) \, dt\right)\right]$$ and $$\left[f^2(x)-2 \left(\displaystyle\int_{0}^{x} f(t) \, dt\right)\right]'=2f(x)\left[f'(x)-1\right]$$ from which we can arrive at the conclusion.  But I felt a little confused. In the past I usually proved the inequality by classical inequalities and something like Taylor expansion to use the condition about derivative. But this answer is little out of my expectation. Do we have other proofs or ideas to arrive at $\displaystyle\int_{0}^{1} f^3(x) \, dx &lt; \left(\displaystyle\int_{0}^{1} f(x) \, dx\right)^2$? And other thoughts about solving these types of issues? I think when we talk about $\left(\displaystyle\int_{0}^{1} f(x) \, dx\right)^2 &gt;\ldots \,$ it's a little difficult to deal with. I don't quite know what tools to use. Interpretation of ROC curve I have a ROC curve like the figure below:   What can be inferred given this kind of curve in general?  What are the differences of states 1, 2 and 3 in the figure?  What causes the diagram to jump straight from state 1 to state 3? Most of the ROC curves on the internet look like the figure below: I'm preparing a document using the book class. In the table of contents, the space between the subsection number and title is too wide. How to reduce it?