This is my loop:  hi = 567 z = len(str(hi)) his = str(hi) for i in range(z - 1, -1 ,-1):     x = his[i],     print x,   What I get is:  ('7',) ('6',) ('5',)   Is there a way to get it like this:  765   Thank You!
In python, if I say  print 'h'   I get the letter h and a newline.  If I say   print 'h',   I get the letter h and no newline.  If I say  print 'h', print 'm',   I get the letter h, a space, and the letter m.  How can I prevent Python from printing the space?  The print statements are different iterations of the same loop so I can't just use the + operator.
I'm trying to define \conjunction by means of \textbullet instead of \bullet, since the latter looks too big in logical formulas.  How can I make the spacing around \conjunction to behave like the spacing around \bullet when there is an opening parenthesis just after it?  Compare (2) and (2'):     \documentclass[12pt]{article} \usepackage[paperwidth=10cm,paperheight=7cm,margin=1em]{geometry} \usepackage{amsmath} \usepackage{amssymb} \usepackage{ebgaramond-maths}  \DeclareMathOperator\conjunction{\raisebox{-0.25ex}{\textbullet}}  \begin{document}\begin{align} \intertext {Good spacing but bad size:} (\exists x(\forall y(\phi(y)\equiv y\!=\!x)&amp;\bullet Gx)\supset\psi)\\ \exists  x(\forall y(\phi(y)\equiv y\!=\!x)&amp;\bullet (Gx\supset\psi))\\ \intertext {Good size and spacing:} (\exists x(\forall y(\phi(y)\equiv y\!=\!x)&amp;\conjunction Gx)\supset\psi)\\ \intertext {Good size but bad spacing:} \exists  x(\forall y(\phi(y)\equiv y\!=\!x)&amp;\conjunction (Gx\supset\psi)) \end{align}\end{document}   This won't do:  \DeclareMathOperator\conjunction{\raisebox{-0.25ex}{\textbullet\ }}   because it adds an unwanted extra space to (1'). Is there a way to get reverse numbering on the enumerate environment? To build a list of publications, I wish to show the most recent on top of the list, while keeping the numbering similar. This can be achieved manually by doing something like:  \begin{enumerate} \item[42] pub num 42 \item[41] pub num 41 \item[...] \item[1] pub num 1 \end{enumerate}   but is there a more principled approach? Creating polygon from hole in QGIS? I tried installing Office 2007 in Ubuntu with Wine but it was throwing an error after installing and also when I tried to open a PowerPoint document and save it. Has anybody gotten Office 2007 installed without any issues? Please help me. The best stack-up possible with a four-layer PCB? I'm designing a 4 layer PCB and I know that the standard stack-up is  Signals GND VCC Singals  (GND and VCC can be switched depending on the layer with more signals) The problem is, I don't really want to connect all ground pins through vias, there are just too many of them ! maybe because I'm not used to 4 layer PCBs, anyway, I've read a  by Henry W. Ott about a different stack-up  GND Signals Signals GND  (Where the power is being routed with wide traces on the signal planes) According to him, this is the best stack-up possible with a four-layer PCB, for the following reasons: 1.Signal layers are adjacent to ground planes. 2.Signal layers are tightly coupled (close) to their adjacent planes. 3.The ground planes can act as shields for the inner signal layers. (I think this requires stitching ??) 4.Multiple ground planes lower the ground (reference plane) impedance of the board and reduce the common-mode radiation. (don't really understand this one) One problem is cross-talk, but I really don't have any signals in the third layer, so I don't think that corss-talk will be an issue with this stack-up,am I correct in my assumption ? Note: The highest frequency is 48MHz, there's a wifi module on the board too. When I log into my web server via SSH I see the information:  88 packages can be updated. 80 updates are security updates   I tried apt-get update then apt-get upgrade but each time I log in I still see the message about updates. How do I install them? Can someone give me some example code that creates a surface with a transparent background in pygame? I want to use a Java file SaveProp which is written in a package user. The class file has been placed in WEBINF/classes. Below are the two lines which cause the issue.  jsp:useBean id="user" class="user.SaveProp" scope="session"  jsp:setProperty name="user" property="*"   It throws:  The value for the useBean class attribute user.SaveProp is invalid   I'm using Tomcat 6.0. My web application has a login page that submits authentication credentials via an AJAX call. If the user enters the correct username and password, everything is fine, but if not, the following happens:   The web server determines that although the request included a well-formed Authorization header, the credentials in the header do not successfully authenticate. The web server returns a 401 status code and includes one or more WWW-Authenticate headers listing the supported authentication types. The browser detects that the response to my call on the XMLHttpRequest object is a 401 and the response includes WWW-Authenticate headers. It then pops up an authentication dialog asking, again, for the username and password.   This is all fine up until step 3. I don't want the dialog to pop up, I want want to handle the 401 response in my AJAX callback function. (For example, by displaying an error message on the login page.) I want the user to re-enter their username and password, of course, but I want them to see my friendly, reassuring login form, not the browser's ugly, default authentication dialog.  Incidentally, I have no control over the server, so having it return a custom status code (i.e., something other than a 401) is not an option.  Is there any way I can suppress the authentication dialog? In particular, can I suppress the Authentication Required dialog in Firefox 2 or later? Is there any way to suppress the Connect to [host] dialog in IE 6 and later?    Edit Additional information from the author (Sept. 18): I should add that the real problem with the browser's authentication dialog popping up is that it give insufficient information to the user.  The user has just entered a username and password via the form on the login page, he believes he has typed them both correctly, and he has clicked the submit button or hit enter. His expectation is that he will be taken to the next page or perhaps told that he has entered his information incorrectly and should try again. However, he is instead presented with an unexpected dialog box.  The dialog makes no acknowledgment of the fact he just did enter a username and password. It does not clearly state that there was a problem and that he should try again. Instead, the dialog box presents the user with cryptic information like "The site says: '[realm]'." Where [realm] is a short realm name that only a programmer could love.  Web broswer designers take note: no one would ask how to suppress the authentication dialog if the dialog itself were simply more user-friendly. The entire reason that I am doing a login form is that our product management team rightly considers the browsers' authentication dialogs to be awful. Say I have a metric space $(X, d)$ and a set $A\in X$.  I want to prove that if $a \in \overline{A}$ then there is a convergent sequence $\{x_n\}$ that converges to $a$. Could I have any help? What logical fallacy considers a personal experience to be common place While my wife and I were discussing the news a few days ago I stated  that an argument expressed (in a news article, not by my wife) was a fallacy -- but I've been unable to put a name to it.  Basically, it is when a person experiences some experience (personally or thru acquaintance), and thus considers it a common experience because they have experienced it. I need to get execution time in milliseconds.  I originally asked this question back in 2008. The accepted answer then was to use  However, we can all agree now  that using the standard  API is more appropriate. I am therefore changing the accepted answer to this one. Meaning of a set in the exponent Let $ D = 2^\mathbb{N} $, i.e., D is the set of all sets of natural numbers.   What's the meaning of this definition? Intuitively, I would suggest that $ D = \{1,2,4,...\} $ but the explanation "set of all sets" leads me to the guess that this is wrong. How can I change the field names (not the alias) in ArcGIS 10.2? I already found this page on ArcGIS support: &quot;&quot; but there is is not &quot;Defense Mapping&quot; on Customized Mode Categories In my ArcCatalog! Without access to Defense Mapping, how can I change the field names? Combinatorics riddle: keys and a safe There are 8 crew members, The leading member wants that only a crew of 5 people or more could open a safe he bought, To each member he gave equal amount of keys, and locked the safe with several locks.  What's the minimal number of locks he should put:   at least 5 crew members would be required to open the safe? Any team of 5 crew members could open the safe, but none of the 4 team crew members.   1,2 stands individually of course. Role of dependencies while installing software?? What is the role of dependencies while installing any software?I was installing vlc player and it were closed by giving me error something like check dependency .  What is to solution of this and how i'll get these dependencies??  Thanks in Advance. DNS, multiple nameservers and geolocation? Currently, when a DNS client makes a request for a DNS record (say, www.example.com., it needs to traverse the DNS tree. It asks the root servers for the location of com., which it then asks for the location of example.com., which it then asks for the location of www.example.com.. Thankfully, much of this is cached.  If example.com. has multiple, geographically diverse NS records listed, my understanding is that these are listed in random order to avoid all queries going to the first (or last) NS record listed.  This would appear to imply that a DNS resolver in Australia could choose a NS record for a nameserver that's located far away, perhaps in Europe, when there may be another authoritative nameserver that is much closer.  So, my question is: Is there any provision within the DNS spec to allow DNS resolvers to select an authoritative nameserver that's local to them? The only way I can see to achieve this is to have the NS records behind an anycast address and do local resolution that way. Would this work? Is there any other option? How to properly scale image in uv editor Hello to anyone who come here and help out or read. I have an issue with the uv editor, I have been trying to make an proper eye. The issue is that I can't figure out how to scale this correctly.    Is there anything I can do to make the eye colors or texture? Quoted headings are rendered properly on preview but not when posted With markdown, you can use some dashes for headings. For example, this: Hello ---- this is some other text  renders as this: Hello this is some other text This is fine and works well. When I want to quote that text is when the problem arises, since this Markdown: &gt; Hello &gt; ---- &gt; this is some other text  When written down shows well in the preview but not when posted:  Hello this is some other text   As an example, see an screenshot of the preview:    and a screenshot of the posted content, where the ---- becomes a &lt;hr&gt;:  Note a similar bug I also reported: . Is there a formal spelling for the English letter names?