eval inside method in a class
What is the scope of variables in JavaScript?
Counting files in leaves of directory tree Is there a way to get trig functions without a calculator? In school, we just started learning about trigonometry, and I was wondering: is there a way to find the sine, cosine, tangent, cosecant, secant, and cotangent of a single angle without using a calculator?  Sometimes I don't feel right when I can't do things out myself and let a machine do it when I can't.  Or, if you could redirect me to a place that explains how to do it, please do so.  My dad said there isn't, but I just had to make sure.  Thanks. Java's Virtual Machine and CLR As a sort of follow up to the question called , what is the (major) differences or similarity in how the Java Virtual Machine works versus how the .NET Framework Common Language Runtime (CLR) works?  Also, is the .NET framework CLR a "virtual machine" or does it not have the attributes of a virtual machine? Set HDMI sound output automatically on connect/disconnect I have a dual screen setup on my laptop (using 12.04 LTS) using a HDMI connected display. Everything works fine, but everytime I connect/disconnect the cable I have to go to Sound preferences and change the sound output device manually.  Is there any way to change the sound output device on connect/disconnection of cable, so when I connect my display the sound output is set to HDMI and when I disconnect it the sound goes back to laptop speakers? In PHP you can just use $_POST for POST and $_GET for GET (Query string) variables. What's the equivalent in Python? Can Windows use a Linux shell instead of cmd? Why, historically, do we multiply matrices as we do? Multiplication of matrices &mdash; taking the dot product of the $i$th row of the first matrix and the $j$th column of the second to yield the $ij$th entry of the product &mdash; is not a very intuitive operation: if you were to ask someone how to mutliply two matrices, he probably would not think of that method. Of course, it turns out to be very useful: matrix multiplication is precisely the operation that represents composition of transformations. But it's not intuitive. So my question is where it came from. Who thought of multiplying matrices in that way, and why? (Was it perhaps multiplication of a matrix and a vector first? If so, who thought of multiplying them in that way, and why?) My question is intact no matter whether matrix multiplication was done this way only after it was used as representation of composition of transformations, or whether, on the contrary, matrix multiplication came first. (Again, I'm not asking about the utility of multiplying matrices as we do: this is clear to me. I'm asking a question about history.) I have a 32-bit machine, can I use programs that are meant for 64-bit processors? I am using a 32-bit machine, but I am having to use a relatively obscure semantic database which only comes in 64-bit versions.  What are my options for running it in my local dev environment?  Currently when I try to run it, I get an error message that looks like this:  cannot execute binary file   and when I check my machine info, I get this:  $ uname -a Linux slabrams-desktop 2.6.32-29-generic #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011 i686 GNU/Linux Difference between "speed up something" and "speed something up" Both seem to be in common usage, but is there a nuanced difference about when one is more appropriate than the other? Thanks. Cast ray to select block in voxel game How do I convince someone that $1+1=2$ may not necessarily be true? Me and my friend were arguing over this &quot;fact&quot; that we all know and hold dear. However, I do know that $1+1=2$ is an axiom. That is why I beg to differ. Neither of us have the required mathematical knowledge to convince each other. And that is why, we decided to turn to Math Stackexchange for help. What would be stack's opinion? GRUB does not detect Windows I have finally installed Ubuntu on my second drive. When I start my computer GRUB only offers me to boot Ubuntu, not Windows 7. What needs to be done so that I can choose between Ubuntu and Windows in GRUB?  When I press F12 for boot menu at startup and I choose Windows Boot Manager it boots into Windows 7.    I ran command sudo fdisk -l and here is log ():  WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0xc3ffc3ff     Device Boot      Start         End      Blocks   Id  System /dev/sda1               1  1953525167   976762583+  ee  GPT Partition 1 does not start on physical sector boundary. Novel in which the protagonist fades out is forgotten by, and can't interact with, the rest of the world Trying to identify a novel I read years ago (probably in the '80s) in which the protagonist (late teens, early 20s?) is gradually forgotten by and ceases to be able to interact with the rest of the world (all of which gradually fades to gray).  In the beginning, as he is slowly fading out (not realizing it) he goes down to breakfast with his parents, and his mother has only set out two plates (one for his father and one for herself) — she'd forgotten to set one out for him.   He reminds her.  Foreshadowing, eh?   But gradually everyone forgets about him and ceases to be able to hear or see him, and fade to gray.  Some other things apparently similarly get "forgotten" however — e.g., occasionally he finds colored, not gray, cans of food in grocery stores, which he can interact with and eat — so he survives.  He then meets a girl who has similarly been forgotten by the world, and they spend time together and fall in love.  At the end,       he is gradually starting to fade back into the world (she isn't) and she puts writes a note about them and puts it in his pocket, in the hope it will fade back into the world with him.  It does, and he sees it one day — but has no idea what it is or any memory of her.  Sad. Suggested edit review should show custom rejection reasons Somewhat similar to , but rather more limited: when Rejecting an edit, not only the count of custom rejection reasons but the actual text of the reasons should be shown, IMO. Just now I  on SO that tidied some code in a trivially correct and substantially superior way because it looked perfectly legitimate and I couldn't understand why anyone would bother with a custom rejection reason. As it turned out, it was code in a question, of course.  In this case, the rejection reason correctly identified the problem, and had I seen it, I would have been reminded of that aspect I had neglected to check. "Recent Badges" list is displayed without margins on "Home" page When the &quot;Hide Hot Network Questions&quot; preference is enabled (i.e. HNQ sidebar is hidden), we see &quot;Recent Tags&quot; and &quot;Recent Badges&quot; in the homepage instead of the HNQ. However, the &quot;Recent Badges&quot; list is displayed with no margins. ex.)   I think that the appropriate margins were set in the past. cf.) tasks package: items are in two line with 4 columns and 4 items I write some choice questions into beamer frame, after some research, here is my code:  \documentclass[aspectratio=169]{beamer} \usetheme{Berkeley} \usepackage{tasks,CJK} \begin{document} \begin{CJK*}{utf8}{bsmi} \begin{frame} \transwipe 1.Which one you want to choose? \begin{tasks}[counter-format=tsk[A].,debug=true](4) \task A \task B \task C \task D \end{tasks} \end{frame} \end{CJK*} \end{document}   output with pdflatex:  But I don't want the D choice goto the second line, I want them stay in one line, what should I do? Properties of the greatest common divisor: $\gcd(a, b) = \gcd(a, b-a)$ and $\gcd(a, b) = \gcd(a, b \text{ mod } a)$ Prove that (a) gcd(a, b) = gcd (a, b – a) (b) Let r be the remainder if we divide b by a. Then gcd(a, b) = gcd(a, r).  I solved part a like: Assume a=pcommonpa b=pcommonpb gcd (a,b) = pcommon b-a = pcommon*(pb-pa)  So: gcd(a, b-a) = common again But I need help for part b guys I can solve it but I need a mathematical expression. Can I see a list of gyms I left a pokemon at? Trigger a button click with JavaScript on the Enter key in a text box I have one text input and one button (see below). How can I use JavaScript to trigger the button's click event when the Enter key is pressed inside the text box?  There is already a different submit button on my current page, so I can't simply make the button a submit button. And, I only want the Enter key to click this specific button if it is pressed from within this one text box, nothing else.  &lt;input type="text" id="txtSearch" /&gt; &lt;input type="button" id="btnSearch" value="Search" onclick="doSomething();" /&gt; Why does the x86-64 / AMD64 System V ABI mandate a 16 byte stack alignment?