Attaching a CSS file to a Java Servlet in Tomcat
Browser can't access/find relative resources like CSS, images and links when calling a Servlet which forwards to a JSP
What is an "index out of range" exception, and how do I fix it? How do I change a switched outlet to a half-hot outlet? I am trying to change a switched outlet to a half-hot outlet. If you can see the picture, the outlet currently only has a white, black, and ground wire coming to it.   The switch is on the other side of the wall and it would be eextremely difficult and ugly to run another wire to it. (no crawl or attic space). So my question is, can I change the current outlet/wiring within the outlet to make it a half-hot? My understanding is that removing the brass connector will just make half of it dead. C#: code error while changing the active directory user's password Installing Ubuntu on a SSD Going to install Ubuntu 10.10 on new intel x25M 80GB SSD. It will be fresh install. I have been googling for past few days and getting overwhelming articles/blogs/Q&amp;As. One particularly very useful being:     But with so many suggestions and differences of opinions (on different links) this simple OS install process seems to be daunting task to me and I really want to stick with Ubuntu (although have used for very short period of time).  Can someone help me by answering few questions (yes, they are repeated because I couldn't comprehend the answers elsewhere)   Which file system (ext2/3/4 or something else)? (consider SSD life) Can it be changed after installation? Should I partition the disk? (as we do in traditional HDD) for now, no plan of dual booting. Only Ubuntu will live on scarce space of 80GB SSD. I have 2 GB RAM, should i still allocate swap space (if I don't allocate swap space, can I still hibernate the machine)? will swap space impact SSD life? Should I consider putting additional 1GB RAM to avoid swap space? What is partition aligning? Is it needed to be done before installing the Ubuntu OS or can be done later?   Intended usage - heavy browsing, programming, regular video/music and some other non-CPU/RAM-intensive programs. Will keep big files in an external hard drive.  laptop config - 3yr old Vaio, Core2 Duo, 2GB RAM  More references:        (resizing/creating does not seem a simple process after look this) Question of remainder on dividing by 7 Question :  What is the remainder when   $$ 10^{10} + 10^{10^2} +10^{10^3} + \ldots + 10^{10^{100}} $$  is divided by $7$? Solving $f(x+y) = f(x)f(y)f(xy)$ I'm trying to make a liquid simulation with Mantaflow where the flow of the liquid respects the flow object's local rotation, so it looks like water spraying in different directions. It looks like the options on the flow object only work for 'world' coordinates and doesn't take into account the coordinates of the object. How do I make the water 'fire' (like a hose) into a specific direction that uses local coordinates instead of world ones? I am a dual Australian/British citizen with an expired emergency Aussie passport and a valid UK passport. What are my chances for an Aussie visit? I was going to have to miss my brother's wedding on Jan 4th but he bought me a flight today. But my Aussie passport is expired and was only an emergency passport to begin with. I'm born and bred Aussie, just been away for ten years. I'm hoping to arrive on UK passport, show the expired Aussie one and the wedding invite and my return ticket for two weeks later and hope they understand.   What are my chances? Also planning on going to the Aussie embassy on Monday to see what they say but want to know my chances of just entering on a UK passport. Remember window locations when docked and undocked I find this beyond frustrating.  I have two extra screens on my laptop at work. I take my laptop and go home, with no extra screens connected. I come back, dock the laptop, and the windows need to be rearranged again.  Is there a way to get windows (or a utility) to keep track of the overall screen configuration (#, size, resolution), and remember where windows were placed, so when the screen configuration matches again, it puts applications BACK where they were? How do I make an HTML text box show a hint when empty? A finite, cancellative semigroup is a group Let $G$ be a finite, nonempty set with an operation $*$ such that   $G$ is closed under $*$ and $*$ is associative Given $a,b,c \in G$ with $a*b=a*c$, then $b=c$. Given $a,b,c \in G$ with $b*a=c*a$, then $b=c$.   I want to prove that $G$ is a group, but I don't know how to show that there exists an identity $e\in  G$ such that $e*x=x$ and $x*e=x$ $\forall x \in G$. I also don't know how to show that $\forall$ x $\in G$ there exists a $y \in G$ such that $y*x=e$ and $x*y=e$. How do I do this? How do I find out which dlls an executable will load? For $a,b,c,d \in \mathbb{R}$, is $\sqrt{a^2+b^2} + \sqrt{c^2+d^2} \geq \sqrt{(a+c)^2 + (b+d)^2}$? I have tried to show this using the fact that $\sqrt{x+y}\leq\sqrt{x}+\sqrt{y}\; $  for non-negative $x,y$ but haven't been able to arrive at a proof. How do I apply differential cryptanalysis to a block cipher? I have read a lot of summaries of block ciphers particularly with regards to the NIST competitions stating that reduced-round block ciphers are – for example – vulnerable to differential cryptanalysis.  I have a general idea that the application of differential cryptanalysis is to look at the difference between inputs;  makes that fairly clear. However, I could take any two inputs for any given block cipher and I am pretty certain I'd be staring at random differences.    I am aware this is the idea of a well written block cipher; however, assuming a broken or vulnerable cipher (feel free to provide simple examples) how do I go about choosing differences to try?  Are there any clues in algorithm design that would inform a decision on which values to choose?  How does being vulnerable to differential cryptanalysis impact a cipher in the wild?  If all I have are differences between known plain-texts and known keys as my analysis and a captured ciphertext as my data to exploit, what can I actually deduce? Find examples of two series $\sum a_n$ and $\sum b_n$ both of which diverge but for which $\sum \min(a_n, b_n)$ converges. To make it more challenging, produce examples where $a_n$ and $b_n$ are positive and decreasing.  Edit: This problem is taken verbatim from Exercise 2.7.11 on page 68 of Abbott's Understanding analysis. Introduction to proofs with a fair amount of hand-holding? Lately I've gotten a friend of mine interested in mathematics. He has no college-level education to speak of, but is well employed as a software engineer. So I feel he's competent to learn this stuff on his own.  He asked me recently if there was a 'mathematical' version of .  The point being, if there was an "introduction to proofs" book which took a more hand-holding approach. He's also expressed fondness for the .  However, metamath's proofs are obviously a bit too low level to learn anything serious.  At one point in our conversation, I mentioned the dependently typed programming language , but I felt it's not quite as helpful until he at least gets some experience with  (for which the target audience of Agda is Haskell programmers, hence the similarity in syntax).  Anyone have any good suggestions on a book? Float/double precision in debug/release modes Do C#/.NET floating point operations differ in precision between debug mode and release mode? On machine A I have the folder /home/a/  On machine B I have the folder /home/b/  I wish transfer all files, directories and sub-directories of /home/a in /home/b with sftp On machine A I tried the commands: sftp fibon82@machineB.com put /home/a/* /home/b/  but it doesn't work, i get the error message: &quot;skipping non-regular file /home/a/a1&quot;... [a1 is a sub-directory of a] How could I modify the put instruction? Thanks! :) EDIT: I solved using scp: scp -r /home/a/ fibon82@machineB.com:/home/b/ Should "each" be followed by a singular or plural possessive? If a possessive noun, which is plural, is preceded by "each", then should it use the singular or plural possessive form?  For example, which of the following is correct?    spend time in each other's presence spend time in each others' presence Why are SMD LEDs shipped in a sealed bag containing desiccant? I had a selection of 0805 LEDs in my last Mouser order and was a bit surprised to discover they arrived in heat-sealed (rather than folded and taped with sticker) bags containing a desiccant bag and some sort of litmus-esque paper indicator saying something about baking them if the dots on it went pink (instead of blue).    A quantity of through-hole LEDs I had in the same order just came in the regular ESD-protective bag, folded over with a sticker.  What's up with SMD LEDs that they work so hard to keep them dry? Surely their dryness can't be assured once they're installed. Does it have to do with their solderability or something? Why would that be different than other SMD parts?