Count html tags with Perl regex
RegEx match open tags except XHTML self-contained tags
so there are some idiosyncrasies with the method they use to invert that part of the image which I can't figure out. It could be that they just invert the luminosity but I don't know how i would do that in a dynamic way. I'm getting the following error message:     System.QueryException: Didn't understand relationship 'AccountContactRelation' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.   Select Email, Id, (Select ContactId, AccountId From AccountContactRelation) From Contact  In AccountContactRelation object there are two lookup fields for Account and for Contact.  Please advise how to avoid such error message? How to convert Bedrock texture pack to Java Edition Minecraft Number of edges of any spanning tree of a graph $G$ coming from a subgraph of $G$ Consider a simple undirected, unweigthed graph $G=(V,E)$ and its edge-induced subgraph $G^{*}=(V^{*},E^{*})$. Suppose that $G$ and $G^{*}$ have $c$ and $c^{*}$ connected components, respectively. Is it true that any spanning tree of $G$ has exactly  $$|V^{*}|-\min\{c^{*},c\}$$  edges from $E^{*}$? Could somebody give a proof/counterexample? Thank you for the help! Area of an ellipse. (Calculus) Rep graph overview thing™ is white (only in latest Chrome) As you can see, if you go to the reputation graph on your profile on Stack Overflow, the bars in the bottom overview will be white. This makes them invisible unless they are selected.  Eeek!  This does not happen on meta or any other site. Also, I cannot seem to reproduce it on others' profile. Possibly a bug only on your own profile? EDIT: I think I've existed for too long. If I change the CSS on one of the bars to stroke: none, then it becomes green. I think the outline is covering the fill because the bars are too skinny. EDIT2: Confirmed hypothesis by reproducing on Jon Skeet's graph. Proposed solution: enforce minimum bar width and add horizontal scrollbar. EDIT3: Can only repro on Chrome 29.0.1547.57 (Official Build 217859) m (the latest version). Norepro on older versions of Chrome, IE9 (winces), all versions of FF, and all versions of Safari. EDIT4: Can be fixed simply by running the JavaScript $('rect').css('stroke-width', '0') or a userstyle rect { stroke: none }. I may make a user[style|script] to fix this. Do redirection operators always open file descriptors in parallel? I am writing out some parameters to JSON files using pythontex, but would like to add context information in form of section numbers (for example \thesection or \thesubsubsection, perhaps also the page number or other counters).  Is there a straightforward way to pass the values of the section counters to Python?   Josef How to update a pull request from forked repo? A matrix inside a table Possible Duplicate:          I am trying to insert a matrix inside a table, and I am looking for a good way to do this. Usually when I write matrices in equations, I use array environment, so I naively defined an array inside tabular, and it sort of works. The only problem is that the matrix itself seems to take up a huge amount of space inside the cell. An example is   \begin{tabular}{|c|c|} \hline \textbf{EKF} &amp; \textbf{UKF}\\ \hline $Q = \left[ \begin{array}{cc} 0.1 &amp; 0 \\ 0 &amp; 0.1 \end{array}\right]$ &amp; $Q = left[ \begin{array}{cc} 0.01 &amp; 0 \\ 0 &amp; 0.01  \end{array}\right]$\\ \hline $R = 5 \times 10^{-3}$ &amp; $R = 5 \times 10^{-5}$ \\ \hline \end{tabular}   Is there any way to increase the spacing in the cell containing the matrix without that matrix taking up all the space? Ability to give away iOS application, usually for sale I am wondering if it's possible to do "mass giveaways" on the AppStore, without lowering, changing or otherwise changing the listed application.  Is it possible to distribute hundreds to, potentially, thousands of promo codes, legally, while still leaving the "normal" distribution channel of purchasing the app open?  An example of the above would be selling physical items in a store which have a bundled digital component available. Essentially you buy a product in a store, which comes "bundles with a free app" (BB and Android have already been dealt with, iOS is unclear). It would be nice to give the option to have a promo code in the box, that the user can then use to get the application for free. Is this possible? PHP: Split string into array, like explode with no delimiter In setting up dual Boot with Windows and Ubuntu, which OS do I install first? I'd like to install both Ubuntu 12.04 and Windows XP on a Dell laptop, and I was thinking about using a dual boot structure, and using the bulk of my hard drive as empty hard drive space to share files between the two operating systems (so choice of file system type is very important in this set-up).     The kind of partitioning structure I would like to use is  Partition 1 - Ubuntu 12.04 (root) (20GB)  Partition 2 - Ubuntu /home        (20GB)  Partition 3 : Free Space          (560GB)  Partition 4 : Windows XP          (35GB)  Partition 5 : SWAP                (3GB)  (Total Hardrive Capacity is ~640GB)    My question is; what is the best way to go about setting up this kind this system?   Should I install Windows XP first and setup the partitions, and then install Ubuntu which I believe will install the GRUB bootloader for OS booting choice   or   Do I install Ubuntu first, setting up the available partitions and then perform a WIndows install?  Please let me know if there is anything in this setup that I have left out and should know about, including things related to setting particular partitions as logical or primary, and whether the boot partition and the filesystem partition should actually be two separate partitions. Passing parameters to a document I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the handout option).  Is there any standard mechanism for passing parameters to the TeX file so that I can just type make handout to get the handout version in the above example? I understand that \bf and \it are now obsolete in LaTeX and that \textbf and \textit are proper, as they produce more sophisticated (in particular, cumulative and properly kerned) changes to font style. I have read the  and I understand the rules and their reasons, as well as the several other commands that are affected.  However, I find it convenient to use LaTeX for notetaking during lectures, and in that rushed environment, shortening a command by any number of keystrokes helps keep me from falling behind. \bf and its two-letter kin are still very useful to me for that reason, and once a presentation is finished I can go through and replace all appearances of \bf et al. with \textbf et al.  My question is this: is there a plan eventually to replace the short font style commands like \bf with the implementations of \textbf etc. some day, or should I expect \bf always to remain in existence but obsolete, for reasons of backward compatibility with original TeX? Original TeX has been greatly improved on in countless ways, but in the heat of transcription I sometimes miss its conciseness. string array with garbage character at end I have a char array buffer that I am using to store characters that the user will input one by one.  My code below works but has a few glitches that I can't figure out:   when I execute a printf to see what's in Buffer, it does fill up but I get garbage characters at the end it won't stop at 8 characters despite being declared as char Buffer[8];   Can somebody please explain to me what is going on and perhaps how I could fix this? Thanks.  char Buffer[8]; //holds the byte stream int i=0;  if (/* user input event has occurred */)  {         Buffer[i] = charInput;         i++;          // Display a response to input         printf("Buffer is %s!\n", Buffer);  }   Output:   tagBuffer is 1┬┬w! tagBuffer is 12┬w! tagBuffer is 123w! tagBuffer is 1234! tagBuffer is 12345! tagBuffer is 123456=! tagBuffer is 1234567! tagBuffer is 12345678!  tagBuffer is 123456789! How can I find the version of Ubuntu that is installed? How to customize Windows 10 "6 Folders" in My Computer I would like to customize the folders in the Default Folders group of My computer. It is not necessary to have the same folders appear on the left sidebar and in the middle view. How can I do that ? I use  on Windows 7 and I want to know if there is a good substitution for it on Ubuntu.   I want something that is good for editing html files. What's "Another Way In"? There's a new achievement and I'm stumped as to how to get it:     Start a game without breaking the laboratory wall   I assume it has something to do with the new Gadgets but none of them sound like they'd help. How do I get this achievement?