I'm trying to scp into a box running 12.04 32bit livecd. The machines are connected to same switch &amp; can ping each other just fine.  I use the usual args, eg-  scp -rp 'ubuntu@192.168.1.101:/home/ubuntu/Desktop/somefiletocopy.zip' .   but keep getting connection refused on port 22.   Its my understanding port 22 is open on livecd so I cannot figure out what the problem is..   Thanks for any help with this.
I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from my PC via Putty.  The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error like this: Network error: Connection refused.  Then, I dont't change anything, try to login a few times more, wait a while and try again. Sometimes I can log in, sometimes I cannot. It seems pretty random to me.  What can I do to solve this?  Edit:  And Sometimes, Putty gives Network error: Software caused connection abort error after displaying login as: text.  Here is the ping -t output:  Pinging 192.168.2.254 with 32 bytes of data: Reply from 192.168.2.254: bytes=32 time=6ms TTL=64 Reply from 192.168.2.254: bytes=32 time=65ms TTL=6 Reply from 192.168.2.254: bytes=32 time=88ms TTL=6 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=3ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64     I turned off firewall of router, and everything seems to work now. Except for that, I still can't enter my web server by typing external IP from my PC.
Which document class is being used? Is there a way to programmatically determine which document class is in effect?  I'd like to be able to write conditional macros that behave differently depending on which document class is currently being used. Proof that $\inf A = -\sup(-A)$ Injecting variables into an import namespace Why do a lot of questions from around 2008 seem to have really high upvotes? What is the cause of gravitional force of attraction? Ok,this is a silly question. But for quite long I have been thinking about this. What is gravitation all about?? My book directly writes since force of gravitation is directly proportional to the masses and inversly proportional to the square of the distance ie. $$F = G\frac{M_1 . M_2}{r^2}$$ . So is this gravitation all about? What is the cause of it? The book then says     We are not in the scope in classical approach so as to discuss the cause of this. However,as a matter of fact that if there are more than one mass,then there is gravitation as it is their fundamental property.( Cause of gravitation can be attributed to exchange of non-classical particles between the masses) .    Then it ended the talkings. What are those non-classical particles? Why and how are they exchanged? So far I have studied physics , I never found such weird phenomenon like this. I want to know what is the cause of gravitation and what is the cause of exchange of those so-called non-classical particles? And how do they do it? Failed to fetch jessie backports repository I'm using a docker image as a base for my own development that adds the jessie backports repository in its Dockerfile and uses that to install a dependency. This image uses the following command to add the repository:  echo "deb http://ftp.debian.org/debian jessie-backports main" &gt;&gt; /etc/apt/sources.list   The problem is that fetching packages from the backports repository now  fails with the following error (this used to work previously):  W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404  Not Found  W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found   I looked on that server, and those paths are indeed not present there.  I tried to figure out on the Debian backports site whether this particular repository should still be available, and I didn't find any indication that this was deprecated or something like that.  Is this a temporary issue with the repository, or is the jessie-backports repository not available anymore? And if this is not a temporary issue, what options do I have to use this or an equivalent repository without upgrading to the newer Debian stable version? I have seen some very weird for loops when reading other people's code. I have been trying to search for a full syntax explanation for the for loop in C but it is very hard because the word "for" appears in unrelated sentences making the search almost impossible to Google effectively.  This question came to my mind after reading  which made me curious again.  The for here:   for(p=0;p+=(a&amp;1)*b,a!=1;a&gt;&gt;=1,b&lt;&lt;=1);   In the middle condition there is a comma separating the two pieces of code, what does this comma do? The comma on the right side I understand as it makes both a&gt;&gt;=1 and b&lt;&lt;=1.   But within a loop exit condition, what happens? Does it exit when p==0, when a==1 or when both happen?  It would be great if anyone could help me understand this and maybe point me in the direction of a full for loop syntax description. So in the first 5 or 6 books, it was very clear that the wand chooses the wizard and the power/level of the spells the wizard produces is based on the knowledge and skill of the wizard.  This is referenced by people constantly being telling Harry that he wasn't skilled enough to perform certain spells, or Bellatrix telling Harry that he needed to mean the Cruciatus curse for it to be effective.  However, in the 7th book, this entire idea is changed to the wand being the thing that's powerful and regardless of the wizard's/witch's skill or knowledge, he/she could still perform a very advanced spell if it's something the wand could handle.  Goyle accidentally creating a fire serpent is something that instantly comes to mind from the movies(I don't remember if that happened in the book).  So, my question is, what actually holds the power, the wizard/witch, or the wand? Why does the /winsxs folder grow so large, and can it be made smaller? Can Tamron 16-300mm Macro Lens fit to Canon EOS 600D? I use Canon EOS 600D and I want a lens with a larger range. I found out Tamron 16-300 f/3.5-6.3 Di II VC PZD Macro Lens, I added it into my wishlist. I did some research on it and I'm scared that it couldn't fit to my Canon EOS 600D.  I'm still a beginner... I'm confused with EF, EF-S and APS-C/DX. Can someone please explain it to me? Map bounded if composition is bounded Studying the equation $\ln(x)- 1+ x^2=0$ I am currently reading about the interactions between light and matter, but I keep coming across conflicting explanations.  My initial understanding (using classical electrodynamics) was that light (EM) waves do not actually travel through glass. Instead, they are absorbed by the atoms and/or electrons within the glass, which then emit new EM waves. The new EM waves emitted by the energised particles make up the forward-radiation, which is the light observed from the opposite side of the glass. So it appears as if light is travelling through the glass, but it's actually being absorbed and then re-emitted with (mostly) the same properties.  The article  by Chad Orzel, based on a related SE question, confirms the above:      To understand the propagation of a wave through a medium, you can   think of each component of the medium– atoms, in the case of a glass   block– as being set into motion by the incoming wave, and then acting   as a point source of its own waves.   But an answer to a different but related question,  conflicts with the above:     the electrons in glass are tightly bound to atoms so they are not free   to move like the electrons in a metal and therefore they do not absorb   the photons.   I know the above is referring to the quantum electrodynamics understanding, but I think it still conflicts as it claims that EM waves are not absorbed by the electrons in glass because they are too tightly bound to their atoms.  Also, the  provides a small explanation of the mechanics behind refraction within glass, which kind of conflicts with both of the above:     In the case of dielectrics such as glass, the electric field of the   light acts on the electrons in the material, and the moving electrons   generate fields and become new radiators. The refracted light in the   glass is the combination of the forward radiation of the electrons and   the incident light. The reflected light is the combination of the   backward radiation of all of the electrons.   From my understanding, the above claims that some of the light is absorbed and re-emitted by the electrons (which conflicts with the linked answer), and that the rest of the incident light travels through the glass (makes up the rest of the refracted light) (which I think conflicts with the linked article, claiming the light is absorbed (although the article doesn't technically state whether all of the light is absorbed and re-emitted, so maybe that's where I'm going wrong(?))  I'm sure this is my misunderstanding, so I would be very grateful if you could clear it up for me:  When a light wave is incident on a sheet of glass, do the particles that make up the glass absorb the waves and re-emit them in the forward direction? Or do the light waves manage to travel through the glass, without being absorbed and then exit the glass? Came across this little practice exercise, and I couldn't properly convince myself of this relation:  Let $X,Y \subset \mathbb{R}^n$ and $g:X\times Y \rightarrow \mathbb{R}$. Show that $$\sup_{y \in Y} \inf_{x \in X}g(x,y) \leq \inf_{x \in X} \sup_{y \in Y} g(x,y).$$  My thinking was starting with $\inf_{x \in X}g(x,\overline{y}) \leq\sup_{y \in Y} g(\overline{x},y)$, but does that even hold for all $\overline{x} \in X$ and $\overline{y} \in Y$? When using the Gmail preview pane lab, fastest way to get a direct link to a conversation? In vanilla Gmail, clicking on a conversation alters the fragment ID in the URL, allowing you to link back to that conversation.  (It opens in its own Gmail interface.)  I am using the preview pane, which is great, except that the URL no longer updates when viewing specific emails, so there appears to be no way to get the link to the currently-viewed conversation.  (The 'open in new window' button doesn't help, since it pulls its contents in on the client side; it isn't a standalone link.)  The only solution I've found is to turn off the preview pane, find the message again in the list, open it, grab the link, go back to the message list, and turn preview pane back on.  That's fairly onerous for something I do often though (to clip Gmail conversations to Evernote, where my GTD setup lives). Compiler error C3493: 'func' cannot be implicitly captured because no default capture mode has been specified Simulation software to solve high school level mechanics problems I'm a physics teacher and I would like to find a simulation software that could be used to give exact numerical answers to high school level problems in Newtonian mechanics.  I want the students to first calcultate a numerical answer to a physics problem and then use the simulator to visualize the problem in order to understand it better and verify that the simlator gives the same answer that they got when doing the calculation themselves.  Here are some examples of what kind of problems I want the students to be able to solve with the simulator:   A slope with a specific angle of inclination and a ball starts rolling at a certain point. Determine the speed, angular momentum and total mechanical energy of the ball after a specific time t. A ladder of known mass and length is leaning against the wall at a specific angle. The contact between the ladder and the wall is frictionless. Calcultate the x and y components of the force between the floor and the ladder.   I would like the software to have the following features:  - Simulation in 2D. No 3D simulations are necessary and the software should at least have the option of doing simulations only in 2D.  - Position all objects exactly by writing numbers (just positioning the objects using the mouse is not precise enough).  - Show animations of the time evolution of the system.  - Show forces, velocities and accelerations as arrows.  - Give exact numerical results so that the students can use the software to verify their calculation.  Ideally the software would have a graphical user interface, but if no suitable software with graphical interface exixts, I could also consider a software with text-based inputs. I would consider both free and commercial software.  My question is: Is there any software that would meet these requirements and if there is, where could I get it? Intersection of Adiabatic curves Can paths of two adiabatic process intersect on a plot? This question is for both reversible and irreversible processes. There are some , but they mostly address only for reversible adiabatic processes. Also, I want a physical interpretation of the processes that is, if they don't intersect then why don't and what it would be like, physically for a system. "Yesterday" time specification shown when it was actually the day before yesterday Looking at , I see "asked yesterday" (which I really hate; I'd like to see an exact time specification rather than this vague one, especially in the list of questions). But it was not asked yesterday! When I hover over it to show the exact time, it shows it was actually the day before yesterday!  This snapshot was taken at 2012-03-31 15:00 UTC (plus or minus a few minutes):    Whatever different opinions you may have on the implementation, yesterday is a word with a certain meaning. Redefining it is not a good idea. At least rephrase this as "1 day ago" or something. General relativity (gravitation) in time and one spatial dimension I don't have any idea of general relativity but intend to learn. Is it a good idea to study general relativity in two dimensions (time and single spatial dimension) in the begining to get good idea on the subject? If it is, then please give some references for such a treatment.