Qt - Regex to filter rich-text string and replace substrings
RegEx match open tags except XHTML self-contained tags
Is there a way to make an Android phone (HTC Desire HD) act as Bluetooth speakers or headset?  I'd like to use the phone as wireless headphones whilst watching a movie on a computer (running Ubuntu). I am trying to run Notepad as admin so I can edit my hosts file from the command line.  I have tried runas /user:(myusername)\administrator "notepad c:\windows\system32\drivers\etc\hosts" I then input my password and I get     RUNAS ERROR: Unable to run - notepad   c:\windows\system32\drivers\etc\hosts 1327: Account restrictions are   preventing this user from signing in. For example: blank pa sswords   aren't allowed, sign-in times are limited, or a policy restriction has   been enforc ed.   PS: I know if I give permission to my user account I can edit it without running as admin. But I'd like to know how to do this without having to change permissions on the hosts file. Can I use one Apple ID for Apple Music and another for iTunes & App Store? Let us suppose I want to use a shared Apple ID for logging into iTunes &amp; App Store, in order to share music and app purchases with a friend.  But let us also suppose that, despite this, my friend and I have very different tastes in music, so I don't want to share Apple Music playlists and "like" assertions with my friend. In other words, I don't want Apple Music to think I like the music my friend likes, and vice versa.  Is there a way that my friend and I can share an Apple ID for logging into iTunes &amp; App Store, but use different Apple IDs for Apple Music?  I suspect the answer is no, but I just wanted to ask. I'm trying to measure the execution time of a process that I call via the command line (i.e., I want to find out how long it takes to for the process to finish). Is there any command that I can add to the command calling the process that will achieve this? Is there any way to get the ID of the element that fires an event?  I'm thinking something like:    $(document).ready(function() {   $("a").click(function() {     var test = caller.id;     alert(test.val());   }); }); &lt;script type="text/javascript" src="starterkit/jquery.js"&gt;&lt;/script&gt;  &lt;form class="item" id="aaa"&gt;   &lt;input class="title"&gt;&lt;/input&gt; &lt;/form&gt; &lt;form class="item" id="bbb"&gt;   &lt;input class="title"&gt;&lt;/input&gt; &lt;/form&gt;     Except of course that the var test should contain the id "aaa", if the event is fired from the first form, and "bbb", if the event is fired from the second form. Proof of the following inequality $ \frac{x - y}{\log x - \log y} > \sqrt{xy} $, $x>y$. I have seen the following inequality  $$ \frac{x - y}{\log x - \log y} &gt; \sqrt{xy} \ , \quad \forall x&gt;y $$ be stated as a near "obvious" fact in another , on the site.  The inequality is very cute, but so far I have not been able to prove it.  It reminds me of the Lipschitz inequality, but has some minor differences. Also Jensens inequality comes to mind. Is there something obvious I am missing, or is this ineqality not as easy to prove as it looks? Get Site Collection full URL using javascript How could I place objects (buildings) on a flat surface in the BGE? I'm working on an  in BGE, and I am not sure how I could make it so you can place buildings on flat surfaces (or unless there is an easier way). I would love to know how to place buildings when you click a certain button to place it.  I don't really need anything fancy like price and stuff like that yet. I really have no idea if  is required to do this. Manage SSH Users with MySQL backend How does one get started with web test automation using Selenium? So I've been testing web based analytical software now for the past 4 years or so with mostly manual techniques. But for 2015, I've set myself the goal of getting setup and start writing automated tests and to introduce automated testing into my company.  I've done a little research and it seems that Selenium is quite big when it comes to writing automated tests, but most of the tutorials I've come across reference the Java language.  Some questions:   Is Java the primary language used for Selenium tests?  Do you recommend it over C# ?  Wat is the process of writing test scripts?  Are there Frameworks that I should use that can make the process even easier? $f$ is irreducible $\iff$ $G$ act transitively on the roots Let $F$ be a field and $f\in F[X]$ a separable polynomial. Let $K_f$ be the splitting field of $f$ and $G_f=\text{Gal}(K_f/F)$ its Galois group. Show that $f$ is irreducible $\iff$ $G_f$ acts transitively on the roots on $f$. My work $\implies :$ Let $f\in F[x]$ irreducible, $\alpha \in K_f$ a root and $\alpha _1,...,\alpha _n$ the other roots of $f$ (so $K_f=F(\alpha ,\alpha _1,...,\alpha _n)$). What I have to show (I think) is that for all $i$ there is a $\sigma \in G_f$ s.t. $\sigma \alpha =\alpha _i.$ Q1) Is it right ? Q2) Is $f$ the minimal polynomial of $\alpha $ ? (To me it is, but my teacher said that it can be not the case, but I don't understand why). Since $\alpha $ and $\alpha _1$ have the same minimal polynomial, there is an isomorphism $\sigma :\alpha \longmapsto \alpha _1$. We can observe that $\sigma : F(\alpha )\longrightarrow K_f$. Now $F(\alpha ,\alpha _1)/F(\alpha )$ is algebraic, then we can extend $\sigma $ to a morphism $F(\alpha ,\alpha _1)\longrightarrow K_f$. Now, we can continue like that and extend $\sigma $ as $\psi: K_f\longrightarrow K_f$ s.t. $\psi(\alpha )=\alpha _1$. Q3) The fact that $\psi(\alpha )=\alpha _1$ comes from the fact that $\psi|_{F(\alpha )}=\sigma $, right ? The bijectivity is obvious since it's a field homomorphism and that $\sigma (K_f)=K_f$. Q4) How to conclude that $G_f$ act transitively on the roots ? I don't have particular problem for the converse. How can I compute the integral $\int_{0}^{\infty} \frac{dt}{1+t^4}$? How many triples $(x,y,n)$ are there such that $x^n - y^n = 2^{100}$ If I have a legendary creature out, and I make a copy of it (such as by enchanting it with  or making a ), do I get enters-the-battlefield effects from the creature before I have to sacrifice it to the legend rule? When is it appropriate to use a hyphen? Is there any app for Stack Exchange? Is there any app available in the Android Market for Stack Exchange sites? Why can two (or more) electric field lines never cross? The the title is self explanatory, I guess.  Why can two (or more) electric  never cross? I have two $2\times 2$ matrices, $A$ and $B$, with the same determinant. I want to know if they are similar or not.  I solved this by using a matrix called $S$: $$\left(\begin{array}{cc} a&amp; b\\ c&amp; d \end{array}\right)$$ and its inverse in terms of $a$, $b$, $c$, and $d$, then showing that there was no solution to $A = SBS^{-1}$. That worked fine, but what will I do if I have $3\times 3$ or $9\times 9$ matrices? I can't possibly make system that complex and solve it.  How can I know if any two matrices represent the "same" linear transformation with different bases?  That is, how can I find $S$ that change of basis matrix?  I tried making $A$ and $B$ into linear transformations... but without the bases for the linear transformations I had no way of comparing them.  (I have read that similar matrices will have the same eigenvalues... and the same "trace" --but my class has not studied these yet. Also, it may be the case that some matrices with the same trace and eigenvalues are not similar so this will not solve my problem.)  I have one idea. Maybe if I look at the reduced col. and row echelon forms that will tell me something about the basis for the linear transformation? I'm not really certain how this would work though? Please help. I'm using code that I found on the .  The only problem is it uses external DLL calls that don't work in mono.  I was wondering if anyone knew of a way to accomplish the same thing as that code, but will run in both Windows using .net, and Linux using mono?  Edit:  Clarifying what I'm trying to do: I'm making a .  The program sits in the system tray and when the user presses the hot-key, it will pop up all the gadgets.  So the program doesn't have focus, so typically it won't catch any keystrokes, so I'm using the low-level keyboard hook and I hook the two keys that the user defines as the hot-keys.  But I'm using a Windows DLL call for that, which doesn't work in Linux using mono.  So I'm wondering if there's a way to do the same thing, but will run in Linux using mono? How bug prioritization works in agile projects vs non agile When reporting a defect, we are setting the priority and severity of the defect. How this works with agile development? Is there any specific way ?  How bug prioritization works in agile projects vs non agile.?  Is there any other way of measuring the priority of a bug in agile projects?