I can't get expect to work with a specific string
What special characters must be escaped in regular expressions?
My linear voltage regulator is overheating very fast I'm using a 5 V / 2 A voltage regulator () without a heatsink. I'm testing the circuit with a microcontroller (PIC18FXXXX), a few LEDs and a 1 mA piezzo buzzer. The input voltage is aprox. 24 VDC. After running for a minute, the voltage regulator starts to overheat, meaning it burns my finger if I keep it there for more than a second. Within a few minutes it starts to smell like it's burnt. Is this a normal behavior for this regulator? What could cause it to heat that much?    Other components used in this circuit:  L1:   R2:   F1: I think the following is true:  If $q$ is coprime to $a$ then $a\mid (nq-1)$ for some $n\in\mathbb Z$.  I have started to first reducing $n\in\mathbb Z$ to $n\in\{1,\ldots,a-1\}$ and then considering all the cases $q = ka + j$ for $j=1,2,3,\ldots,a-1$. I stopped at $j=3$ and found that this is kinda messy. Does anyone have an elegant proof for this (maybe using some results from number theory)?  [Note: question has been generalized from prime $q\nmid a$ to $\,q$ coprime to $a$] I'd like to understand  and its contents as to what it implies in a bit simpler terms. I am familiar with mathematics unto Calculus 1,2,3 and some linear algebra and group theory. I am familiar with that for each symmetry there is a conservation law.    Now is there a one-one correspondence between these two always? What about laws like conservation of charge?  And conservation of energy?  And conservation of mass?  Considering our view of nature was changed as Special Relativity was introduced and thus, what earlier the theorem would have asserted as mass and energy to be originating from different symmetries then how did we reconcile these two as just one symmetry? Absolute Value Symbols What is the "best LaTeX practices" for writing absolute value symbols?  Are there any packages which provide good methods?  Some options include |x| and \mid x \mid, but I'm not sure which is best... 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? Domains in cell membrane Overflow: Visible on SVG Finding $ \int^1_0 \frac{\ln(1+x)}{x}dx$ There is supposed to be a clean solution to the integral below, maybe involving some symmetry $$ \int^1_0 \frac{\ln(1+x)}{x}dx$$ I have tried integration by parts as followed: $\ln(x+1)=u$ ,$\frac{1}{x+1} dx = du$ and also $\frac{1}{x}dx=dv$, $\ln(x)=v$. Then, the integral becomes $$\int^1_0 \frac{\ln(1+x)}{x}dx=- \int^1_0 \frac{\ln x}{1+x}dx$$ which does not make this easier. I have also tried using the identity $\int_a^bf(x)~dx=\int_a^bf(a+b-x)~dx$. So let $I = \int^1_0 \frac{\ln(1+x)}{x}dx$ and also $I = \int^1_0 \frac{\ln(2-x)}{1-x}  $. Then $$2I= \int^1_0 \ln(1+x)+\ln(2-x)$$ which is not any easier, either. Any ideas? :) It seems that  by the OP of  was attributed to the community user.   I'm assuming that the edit was by the OP from the edit summary:     updated my question   and from the actual update. Both texts are speaking in the first person. I've built a current sense differential amplifier that measures the voltage across a 1 Ohm resistor, to give me a reading for the current through it.  I've connected it as follows, all resistors are matched 10k to give a gain of 1:    (Image source: )  I am powering it from a single rail 12 volt source. The problem is even though this is a rail to rail opamp (Output Low swing from 5-20mV) I'm getting a constant error of 0.62V and it seems the opamp is not able to go below this value.   I have tried to resolve this by connected Vout to ground using a 10k resistor, but that makes no difference whatsoever.  I tried it with dual supply configuration (+8V, -8V) and that seems to resolve the issue. However I want to run this off a single supply rail, so this is not a viable option.  How can I resolve this? I'm trying to measure the voltage drop across a 1 ohm resistor to give me a reading for current through the circuit (0-1V represents 0-1 A) so I can set up a current limit. A better way (or practice) to doing this is also welcomed. The initial (but not ideal) fix I can think of, is to offset the readings by a few volts?  Edit:  Changed R1-R4 from 10k to 100k and I'm down to about 30-50mV! Graduate student in or of? In my cover letter I want to write that I am a graduate student in statistics. But I am not sure about the "in". So what is correct?     I am a graduate student in statistics.      I am a graduate student of statistics. How to show that the set of orthogonal n x n matrices forms a group under multiplication I am studying orthogonal matrices and I am not sure if to show if a set of orthogonal $n \times n$ matrices forms a group under multiplication. We must check each of the group axioms. I found that the axioms are:  Closure Associativity Existence of identity matrix Existence of the inverse matrix.  I edited my question, since I was able to find more information about this topic. This group is called $O(n)$. To check the four axioms I did: Let $A \text{ and } B \in O(n)$, denoted as orthogonal matrices and assume that $C=AB$, then, Closure :  To prove that $C \in  O(n)$ we must prove that $C$ is a real $n \times n$ orthogonal matrix with uni-modular determinant. Since A and B are real $n \times n$ matrices, $C$ is also a real $n \times n$ matrix so, $C^TC=(AB)^T AB=B^T A^T AB = B^TB=I$  Associativity :  Matrix multiplication is associative, so the law holds for $O(n)$ group elements.  I am not sure if this is enough to prove associativity. Identity element :  The $n \times n$ identity matrix $I_{n \times n}$ represents the identity element.  In this case I am not sure if this is enough to prove the identity element. Inverse element :  Let $A^{-1}$ be the inverse of $A$, then we need to prove that  $A^{-1} \in  O(n)$ since $(A^{-1})^T=(A^T)^{-1}$. We have that: $(A^{-1})^T A^{-1}=(A^T)^{-1} A ^{-1}=(AA^T)^{-1}=I^{-1}=I$  Can anyone check if what I did is correct? I also would like to know if I can prove the associativity and the identity element in a better way. thanks Chrome and IE 11 are fine, I'm only able to reproduce this in Firefox. Using version 27.0.1 on Windows 7. Meta as well as all the other sites are affected.        I can still see the hover effect, but the image is gone. I see this in Firebug:        The image doesn't show up in the Network tab. I am able to see the image by visiting  which goes to   I've done Ctrl-F5, I've cleared the cache and I've tried Private Browsing. Possibly related to  ? Post Problem Analysis - Rod in a cylindrical time varying magnetic field? A metal rod of length $l$ is placed (as shown in figure) in a cylindrical time varying magnetic field. Find the potential difference across it.   My answer:  As electric fields as forming circles around the centre with magnitude $$\frac12r\frac{dB}{dt}$$ whose magnitude is same along any chord at a fix distance from centre: $$\Delta V=E.l=\frac12r\frac32at^{\frac12}.l$$ $$\Delta V=\frac34arlt^{\frac12}$$  My question: Is $\Delta V =V_M-V_N$ or $\Delta V=V_N-V_M$ $\bf OR$ equivalently which side is at high potential?  Possible    $(i)$ As Field lines are circular from $M$ to $N$, $M$ must be high potential. $(ii)$ As this field line apply a force on electrons- in the rod- towards left, then $M$ must have excess $e^-$ and $N$ must have deficiency; so $N$ would be high potential as $M$ is $(+)$ and $N$ is $(-)$. Blank white desktop icons on new Windows 7 install I just did a fresh install of Windows 7 professional on my father's Toshiba Satellite laptop and everything went smoothly except for the fact that certain desktop shortcuts appear as a blank white page.    I've tried:    going in and changing the icon to many different things reloading the icon cache by deleting the IconCache.db file uninstalling his Free AVG as he heard the virus scanner might be preventing it (it wasn't and he put it back.)   The one thing these icons have in common is that they are shortcuts to some very old DOS executables.  One of them is Word Star 2000 to give you an idea.  Does anybody have any other suggestions besides what we've tried? How exactly is Arda supposed to be an ancient Earth? As most Tolkien fans know, Arda (Tolkien's world) is supposed to be Earth in its past, and all its stories are supposed to have happened long ago on this very same planet. Of course, this is fiction, so this is not supposed to be actually true.  But, if one wanted to roll with it... how could it possibly make sense from a geographical standpoint? All maps of Middle Earth (before or after the destruction of Beleriand and Numenor) just don't match anything on Earth, even when considering continental drift.  Of course, one could simply say "the Valar reshaped it (again)", but not only this is a bit unsatisfactory, it also doesn't make much sense in context, as Valar are well known for not wanting to meddle with Arda unless absolutely needed, and even then, as little as possible.    Update:  Hey, please calm down, guys. Mine was not a rant at all. And I know perfectly well this is fiction (and I've stated it plainly). The sense of my question was: "If one wanted to follow this line of thought and assume Arda should be related to Earth as Tolkien said, then how could this relationship be explained?". Here $p$ and $q$ are co-prime integers. Is it necessarily an algebraic number? I have an issue which I could not solve, although I tried and I got some help on R forum.  I am trying to calculate Mahalanobis distances on a data.frame, where I have several hundreds of groups and several hundreds of variables. Whatever I do, I get the system is computationally singular: reciprocal condition number error.   It is clear that it is singular, but is there any way to get rid of it and run Mahalanobis? Should I forget solve this using another approach? If yes, then what else to use?  I have uploaded the data file to my :  It is a tab delimited txt file with no headers.  I was working with the R StatMatch Mahalanobis (also tried stats Mahalanobis) function. I have a deadline for this project (not a homework!), and I could always use this function, so I thought I will be able to keep the calculations short, but now I am lost.  Migrated . Windows 7 Audio Too Loud In Windows 7 (64-bit, Ultimate) the default audio output is extremely high. This has been an issue for a while but I was able to get around it as my previous headphones took more power to drive so it actually worked in my benefit.  However, now I have a set of really sensitive headphones and they're being over-powered. So much so that if I put it down at around 5% of total output it's bearable.  Is there a way I can sort of limit the system's volume so that it's incapable of going extremely loud and then have the rest of it just behave as normal?  Things I've tried:   Uninstalling and re-installing the audio device and drivers. Limiting each application individually. Searching for third-party software (so far nothing looks promising).   The first has no effect. The second works find but I have to do it for every application individually (which can be a pain) and many of them reset their volume every time they're launched, which makes it almost useless. Some even reset the volume while I'm playing a game!  So does anyone have any suggestions on how to make my volume reasonable?  The device is, apparently, a Cirrus Logic CS4206A (AB 24). The computer is an 2010 iMac. Down Arrow Key is not working