Not able to fetch dictionary value in django templates
Django template how to look up a dictionary value with a variable
On the three Stack Overflow chat servers, the  page displays the following image:    Is it from an actual episode, or is it a 'shop? When I place a multipage pdf file into InDesign CC, the pages go outside of my document settings, making this function useless.  What do I have to do to make the placed  pdf pages go within my document settings, which in this case is 11 in. Length X 8.5 in. width, .5 in. margins on all sides, with two columns per page. I would greatly appreciate an answer to this, Thank you. Electric circuits in TeX, LaTeX, and Friends I'm moving all files to a new computer, via an external hard drive. I am certain that broken links will be a concern. What can I do to fix this? Is there a 'Best Practices' kind of way to prevent this problem beforehand? I have many hundreds of .blend files, and of course, I fear losing them. How do I obtain the ebony blade and how do I power it up? The ebony blade is a katana like two handed weapon in Skyrim.  Its apparently associated with one of the daedric quests, but which one, and how do I start it?  Also, once I obtain it, how do I power it up? In Random forest algorithm, Breiman (author) constructs similarity matrix as follows:   Send all learning examples down each tree in the forest If two examples land in the same leaf increment corresponding element in similarity matrix by 1 Normalize the matrix with number of trees   He says:     The proximities between cases n and k form a matrix {prox(n,k)}. From their definition, it is easy to show that this matrix is symmetric, positive definite and bounded above by 1, with the diagonal elements equal to 1. It follows that the values 1-prox(n,k) are squared distances in a Euclidean space of dimension not greater than the number of cases.    In his implementation, he uses sqrt(1-prox), where prox is a similarity matrix, to convert it to distance matrix. I guess it has something to do with the "sqaured distances in a Euclidean space"-quoted above.  Can somebody shine a little light on why it follows that 1-prox are squared distances in a Euclidean space and why he uses squared root to get distance matrix? Is there a C++ decompiler? I installed Ubuntu yesterday, so I'm trying to get used to it.  I'm really close to my router, but my wifi signal gets too low. Sometimes I'm in Facebook or Youtube and the signal is high, almost full, but it is usually in one or two bars, and sometimes none.  I can use Internet normally, I can watch videos and stuff, but the problem is when I try to update something or Ubuntu is downloading stuff, the downloads get stuck or get cancelled telling me that I should check my connection.  How can I fix this? I should be getting a really good signal, I'm really close to my router, my phone has full signal, and a notebook with Windows 7 has full signal here too.  Sorry my bad English and I hope you can help me.  $ lsusb Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 0bda:8179 Realtek Semiconductor Corp.  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120 Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub I wish to open a pdf in photoshop , remove some content and then resave it.  When i do this the new pdf has trimmed margins. What is the best approach to keep the margins the save as the original file. I appreciate indesign or other software would be a better for this job Disable HTTPS for a domain that shares IP with another domain that is under HTTPS I am running into a weird problem trying to disable HTTPS for one domain, but the other domain has HTTPS. They both are different websites running on a dedicated server, sharing the same IP address for the domains.  However, I have a domain that does not have a SSL certificate, but the other does. I want to disable HTTPS for the non-certified domain while leaving the other domain with HTTPS on.  I have two different separate vhosts in /etc/nginx/sites-enabled/,   domain1.org (no HTTPS)  server {      listen                      80;     server_name                 www.domain1.org domain1.org;     root                        /var/www/domain1.org;     index                       index.html index.php index.htm;      error_log                   /var/www/logs/domain1.errors.log;      [ ... ]   domain2.com (with HTTPS)  server {      listen                      443 ssl;     server_name                 domain2.com www.domain2.com;      # INCLUDE SSL CERTIFICATE     include                     sites-enabled/domain2_ssl_include;       root                        /home/domain2/www/www;     index                       index.html index.php index.htm;      [ ... ]   I've included a listener to the port 443 for domain1.org, but once I do that, I get an aborted error from Firefox saying (when accessing ):     This Connection is Untrusted      You have asked Firefox to connect securely to domain1.org, but we can't confirm that your connection is secure.   I opened the technical data, it appears that the domain1.org is using the domain2.com SSL certificate:     domain1.org uses an invalid security certificate.      The certificate is only valid for the following names:    *.domain2.com , domain2.com        (Error code: ssl_error_bad_cert_domain)   So I added this to domain1.org vhost configuration:  server {      server_name                 domain1.org www.domain1.org;      listen                      443 ssl;      rewrite ^ http://domain1.org permanent; }   Which still gets me prompted with the Firefox error.  Now... when I access to , I get an 400 error from nginx saying this:     400 Bad Request      The plain HTTP request was sent to HTTPS port   I am not entirely sure what to do, disabling the https with ssl off; has no effect. How can I actually disable HTTPS for domain1.org but not for domain2.com?  I am using Ubuntu 12.04 running nginx 1.2.6. Suppose I have a function $f$ that is analytic on the unit disk $D = \{ z \in \mathbb{C} : |z| &lt; 1 \}$ that is also continuous up to $\bar{D}$. If $f$ is identically zero on some segment of of the boundary (e.g. $\{ e^{it}, 0 \leq t \leq \pi/2 \}$ ), is it then true that $f$ is identically zero on the entire boundary?   I know that analytic functions that are zero at an accumulation point inside the domain of analyticity are identically zero throughout the entire domain, but I don't know what (if anything) can be said if something similar occurs on the boundary of the domain. Windows 7 task bar at autohide, make it totally disapear? My desktop look is empty so all I have is a nice wallpaper. My Windows taskbar has the "Taskbar Appearance" setting to "Auto-hide the taskbar". Although hidden, it leaves a thin top layer so you can still see it a bit, and where the pinned shortcuts are. Is it possible to totally have it hidden without a trace? This is a serious question. It really bugs m. I want to make the teeth a separate child object from the mouth. I want to know the best way to do this.   I have tried going into edit mode with Tab and trying to select all the vertices but that doesn't move the teeth. Is there an easy way to select just that part and make it a separate child mesh to the rest of the mouth? What does the human body use oxygen for besides the final electron acceptor in the electron transport chain? My biology teachers never explained why animals need to breathe oxygen, just that we organisms die if we don't get oxygen for too long. Maybe one of them happened to mention that its used to make ATP. Now in my AP Biology class we finally learned the specifics of how oxygen is used in the  due to its high electronegativity. But I assume this probably isn't the only reason we need oxygen.   What other purposes does the oxygen we take in through respiration serve? Does oxygen deprivation result in death just due to the halting of ATP production, or is there some other reason as well? What percentage of the oxygen we take in through respiration is expelled later through the breath as carbon dioxide? Should 'using' directives be inside or outside the namespace? I have been running  over some C# code, and it keeps reporting that my using directives should be inside the namespace.  Is there a technical reason for putting the using directives inside instead of outside the namespace? How to create a new object instance from a Type One may not always know the Type of an object at compile-time, but may need to create an instance of the Type.    How do you get a new object instance from a Type? How to find number of prime numbers between two integers I have two integers, x and y so that x &lt; y. How many prime numbers are there between x and y (exclusive). Is there a formula or algorithm to compute? Is there a possibility to make reference to the line in the lstlisting environment? I was wondering if it is possible to refer to the lines of the code enclosed in lstlisting environment rather than just manually write a number of the line I want to describe. I have never met with this feature, is this available? Each number in a subset $S\subseteq \{1,\ldots,2n\}$ does not divide another one. Then $\max |S|$? This problem comes from a seemingly innocuous question from a professor during a lesson for a Math Olympiad course. [A part of this question is really a classic of number theory/combinatorics]  Problem: Let $S$ be a a non-empty subset of $\{1,2,\ldots,2n\}$. It is clear that if $|S|$ is "enough large" then, independently from the choice of $S$, there are for sure some distinct $a,b \in S$ such that $a$ divides $b$.  Then, what is the maximal $k$ such that, for some $S$ with cardinality $k$, if $a,b$ are distinct members of $S$ then $a$ does not divide $b$?  [Ps. I know the solution] Was Severus Snape made a Death Eater before or after he told Voldemort about the Prophecy? Based on discussion in comments on , was Severus Snape a Death Eater (real one, with Dark Mark) before he overheard Sybil give the Prophecy to Dumbledore and relayed it to Voldemort? Or was he made a DE after that?  Canon sources only please (books/interviews/Pottermore)