main.js is called in my template. Is the following syntax okay? Or is there another way? or do i have to name each element manually in JS  jQuery('#{{ form.use_acn.id_for_label|escapejs }}').click(function(){
When I render a page using the Django template renderer, I can pass in a dictionary variable containing various values to manipulate them in the page using {{ myVar }}.  Is there a way to access the same variable in Javascript (perhaps using the DOM, I don't know how Django makes the variables accessible)? I want to be able to lookup details using an AJAX lookup based on the values contained in the variables passed in.
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? Problem: Let $f$ be defined for all real $x$, and suppose that   $$|f(x)-f(y)|\le (x-y)^2$$  for all real $x$ and $y$. Prove $f$ is constant.  Source: W. Rudin, Principles of Mathematical Analysis, Chapter 5, exercise 1. Can I convert a C# string value to an escaped string literal? In C#, can I convert a string value to a string literal, the way I would see it in code? I would like to replace tabs, newlines, etc. with their escape sequences. If this code: Console.WriteLine(someString);  produces: Hello World!  I want this code: Console.WriteLine(ToLiteral(someString));  to produce: \tHello\r\n\tWorld!\r\n When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead. Help with proving that $\pi$ is irrational I was trying to prove that $\pi$ is irrational, just to see if I could do it. So far, I've tried to do this by using the fact that the sum   $$S=\sum\limits_{k=1}^\infty \frac{1}{k^2}=\frac{\pi^2}{6}$$ and arguing that $S$ is irrational instead, and thus implying that $\pi$ is also irrational.  To do this, I thought I could use partial sums $S_n$ of $S$:  $$S_n=\sum\limits_{k=1}^n \frac{1}{k^2}=\frac{A_n}{B_n}$$ where the fraction $A_n/B_n$ is written in lowest terms. We can note that the sequence $\lbrace S_n \rbrace$ is a strictly increasing sequence, with $\pi^2/6$ as its lowest upper bound, so I thought that maybe the sequences $\lbrace A_n \rbrace$ and $\lbrace B_n \rbrace$ both have no upper bound, and the sequences would tend to infinity, and if I were able to prove this, I thought I could use it to argue that $S$ is an irrational number, using the fact that every rational number can be written as the quotient between two finite integers.  We note that $A_n\geq B_n$ for all natural $n$, as $S_n\geq 1$, so all we would really need to prove in that case is that $\lbrace B_n \rbrace \rightarrow \infty$(if this assertion is even correct).  At first I thought that both $\lbrace A_n \rbrace$ and $\lbrace B_n \rbrace$ would be increasing sequences, but after checking with Maple I noticed that they weren't, sadly enough($S_9=\frac{9778141}{6350400}$ and $S_{10}=\frac{1968329}{1270080}$). However, they do indeed seem to get very large very quickly, so I'm thinking that my hypothesis about $\lbrace A_n \rbrace$ and $\lbrace B_n \rbrace$ is correct.  But I have trouble proving my hypothesis, and I'm kind of stuck, no knowing what to do. Is there a way to prove that $\lbrace B_n \rbrace \rightarrow \infty$? And of course, is this approach to prove that $\pi$ is irrational logically sound, or is it fundamentally flawed in some important aspect? In the latter case, what idea should I try next? I am currently studying in class 10 and I am unable to do this problem. $$\tan 70 ° -\tan 20° -2 \tan 40° =4\tan 10°$$ Can anybody please help me.  Thanks! Exporting Data From Salesforce - REST or SOAP? Deep Format of a Harddrive on a Linux System I've got an original Asus Eee PC Netbook that I'd like to sell.  When I've sold old computers in the past, I've typically done a deep/secure/zeroing out style format.  How can I do this on a Linux Netbook?  I'm looking for   The command that will let me do this Advice on how I can do this on a device with (seemingly?) non-removable media   Thanks in advance! Why is my dual-core CPU recognized as a quad-core one? My processor is an . As you can see, it's 2 cores and 4 threads.  Although, both Ubuntu 11.04 and Windows 7 seem to think it's a quad-core CPU:      Why is this? Is it because there are 2 threads per core, dividing the CPU in 4 processing units? I will give this question a little context. Firstly, as I understand it, as soon as I "close the switch" on a circuit, electric current pretty quickly establishes a steady state where, at any given cross section along a wire, the average kinetic energy of that slice is both constant and equal anywhere along the wire. (Please correct me if I am misunderstanding).   If the average kinetic energy is constant anywhere throughout the wire in the circuit (which confuses me, as I would think that the electrons should all accelerate after exiting the resistor since they are no longer being impeded as much), that means that the average velocity is constant. So, in the example of a simple circuit with a battery of v Volts and a resistor of o Ohms, my question is the following:  Because a 'voltage drop' is known to occur across the resistor, what type energy is being "traded" to generate the heat that radiates from the resistor? I would think that the reflexive answer is "electrical energy"...hence the VOLTAGE drop (the sacrificed energy is clearly not kinetic, as the velocity is constant everywhere). However, I find this confusing. Does this mean that if I had a positive test charge, it would be easier for me to bring it to the beginning of the resistor as compared to bringing it to the end of the resister?     Further, if the correct answer IS "electrical energy", why exactly DOES electrical energy get "dissipated" as the electrons pass through the resistor? I always here the comment Oh! It's because all the electrons are running into densely packed crap which impedes their flow but that to me sounds like a reason for their KINETIC energy to be reduced. However, clearly that's not the case. So, ultimately, I guess the real question is:  **What goes on in the resistor that is literally removing electrical energy **. I am sure that this is a quantum mechanics question, but my quantum mechanics knowledge is not terribly strong. If I could get an answer that is devoid of crazy wave function equations, I would greatly appreciate it. Thanks! Evalute $ \lim_{n\rightarrow \infty}\sum^{n}_{k=0}\frac{\binom{n}{k}}{n^k(k+3)} $ Gauge symmetries and elementary particles The  (disclaimer: I don't know this wikipedia entry) is usually mentioned as the reason why gravitons may not be composite particles. I do understand the proof of the theorem, but not the previous conclusion.   The theorem states that in an interacting and Poincare invariant quantum field theory, there are not massless, spin-2 particles unless there exists a gauge symmetry — which makes the energy-momentum tensor non-covariant (actually covariant up to a gauge transformation) under Lorentz transformations in the Fock space. So the immediate conclusion of the theorem is that the existence of a massless, spin-2 particle (like a graviton) requires linearized diffeomorphisms.  My question is: why do linearized diffeomorphisms imply that gravitons are elementary particles? Or, more in general, why  the particle corresponding to a gauge field must be elementary (I know that a gauge symmetry must be exact, but why this implies that the corresponding particle must be elementary?). Slope of geometry as `fac` input for cycles material I have a terrain with two materials going into a Mix Shader, I want the fac input to be the slope of the terrain. Steep parts should be one color, flat part another. Reduce spacing between subequations Styling an input type="file" button PATH variable resets with reboot Just as the title indicates my PATH variable resets after every reboot. I read that I have to edit my bashrc file's PATH variable, but I don't have anything there that suggests anything related to the PATH variable. Are orbiting planets an  example of perpetual motion? interpreting scatter plots I have plotted my predictors versus my response variable in order to be able to fit a good Poisson model to my data. However i am getting  those scatter plots for nearly all predictors which make me rather worried since including these predictors is making my residual deviance a value of 575 on 571 df(high enough) Thanks Word/phrase to mean something that just happens once What is the word/phrase to mean something that just happens once? For example,     I have often been told/expected to do this and not to do that. I become aimless   and gradually lose the idea of who I am. I ask myself "What is the point?" If   life is just once thing, why can't I live my life in my own way,   the way I think is right and suitable to me? If I cannot, I would   rather live a shorter life. JSON Parsing in Android