Two types of for loop - how come only one of them is working?
Why is using "for...in" for array iteration a bad idea?
Trying to search for multiple file extensions in command line I am trying to find two extensions in command line but when i do it will only return one of the extensions. can you tell me what I am missing?   Here is my command;  [root]# find /etc -name "*.txt" -o -name "*.log" -type f -mtime +7 -exec echo {} \; How should I invest my money as a young graduate in Europe? This is related to this , but that question's answers are 95% tailored for residents of the US, basically recommending to full out the 401k retirement plan and this and that about stock market investments. My question is, are there other types of investments that are good for a young person starting out a career? Pointers:  I live in a welfare state in Europe, so I don't have college debt, (debt of any kind actually). Rainy day funds are much less needed than in the US, since here there is unemployment insurance for at least 18 months. I can probably invest 500€-600€ monthly for something. (The question is what.) I am not looking to invest in my retirement (I am already forced to pay for that out of my salary). I want to maximize my earnings for medium term (5-15 years). I specially want to avoid the typical paradox of (be poor in your 20's,30's,40's and be able to use your money after your 50's). That is not an option for me, I want to use my money for X or Y. But the money used has to be earned from an investment. That is a general rule for me.  For example I want to earn from my investments at least 70k€ after 5-10 years. So I'm guessing this would be a high risk investment, correct? I would like to spend on travel, on courses, on sports etc... But I insist that the money I spend should be a result of an investment not from my salary. Additionally I am not looking to buy a house so I don't want a mortgage. Except if this would constitute a good investment? FYI: this applies to France. But I'd like a general answer so others can benefit. If the question is unclear, a duplicate or off-topic don't hesitate to comment in a mountain climbing expeditions 5 men and 7 women are to walk in a mountain climbing expeditions 5 men and 7 women are to walk single file so that no 2 men are adjacent. How many ways are possible? I am using Google Chrome. I re-installed it today as it was crashing when I start it. I guess may be that this was due to any of my Extensions or Google Update. I disabled my extensions but it was still crashing. Now I installed an old version of chrome from . However, Chrome automaticallyuppdates itself (although Windows asks me before installing and I don't grant it permissions, its still annoying to get Google update asking me permission after a couple of minutes.   I saw the question at  however, it doesn't seem to hlp me. i disabled the service and I stopped it as well, but the problem still persists. I also tried to look into the registry according to the following link:  but the "Policies" section of my registry doesn't contain any folder called "Google". I use Windows 7 - 64 bit Home Premium Service pack 1.  Could anybody help? Thanks a ton! Root of continuous function using Rolle's Theorem $$f(x)= 1 + e^x\cos(x)$$   $$g(x)= 1 + e^x\sin(x)$$      Show that there is at least one root of $g$ between two roots of $f$   How do I start to answer this question and do I need to use Intermediate Value Theorem? jQuery: Selecting and manipulating html elements outside the DOM I accidentally deleted a file from my laptop. I'm using Fedora. Is it possible to recover the file? Finding what's using all the space in *nix Which sequence of commands will tell me which files are the largest starting from a particular directory, including all sub directories? I want to know where all the space went.  Preferably just with regular unix'y commands.  If possible, try to keep it compatible with Sun OS 5.10 (perhaps in addition to regular Linux answers, not as a replacement, to keep it as general as possible.) Clarification on Rayleigh scattering causing various sky colors (I know Rayleigh scattering isn't the only reason why the sky is blue but to simplify the question lets focus on that)  The commonly stated reason for why the sky is blue is that smaller wavelengths are scattered more easily off the molecules in the air. During the day, because the blue light is scattered more, the sky is illuminated more with that blue light and more reaches your eyes. However, during sunsets and sunrises, the light from the sun must travel a longer distance. The explanation I have found is that the blue light is scattered away and more of the longer wavelength reds and greens are available to reach your eyes to get those warmer colors, (red and green of course mixing to get yellows).   My question is that it seems like these explanations are conflicting. If the light at sunsets and sunrises travels more distance, why won't the blue light be scattered even more and thus illuminate the sky with blue light more than in the daylight? It confuses me that in one case the scattering of blue light causes the sky to be blue but then at sunset the scattering eliminates this color. Could I get some explanation on this? My name includes space - How do I enter my username when typing command? My username in Minecraft is sun solar arrow. This name includes spaces. Situation - When I want to get OP privilege, a user who has OP privilege will enter: /op sun solar arrow  But my username includes spaces. So it shows an error message:  Invaild syntax  How do I enter my username? Whenever Ubuntu boots up, a dialogue pops up asking me to unlock my default keyring. Is there some way this can unlock automatically through PAM or some other magical way? What are some CD ripping programs for Ubuntu? Can you list the Pros? What are the Cons? For each program there should be a screenshot, sources to install, and instructions to install and use. Let $p$ be prime and $(\frac{-3}p)=1$. Prove that $p$ is of the form $p=a^2+3b^2$ Let $p$ be prime and $(\frac{-3}p)=1$, where $(\frac{-3}p)$ is Legendre symbol. Prove that $p$ is of the form $p=a^2+3b^2$.   My progress:  $(\frac{-3}p)=1 \Rightarrow$ $(\frac{-3}p)=(\frac{-1}p)(\frac{3}p)=(-1)^{\frac{p-1}2}(-1)^{\lfloor\frac{p+1}6\rfloor}=1 \Rightarrow$ $\frac{p-1}2+\lfloor\frac{p+1}6\rfloor=2k$  I'm stuck here. This is probably not the way to prove that.  Also tried this way:  $(\frac{-3}p)=1$, thus $-3\equiv x^2\pmod{p} \Rightarrow$ $p|x^2+3 \Rightarrow$ $x^2+3=p\cdot k$ stuck here too.  Any help would be appreciated. Let $G$ be a finite group of order $n\ge2$. Which of the following statements are true? a. There always exists an injective homomorphism from $G$ into $S_n$. b. There always exists an injective homomorphism from $G$ into $S_m$ for some $m\lt n$. c. There always exists an injective homomorphism from $G$ into $GL_n(R)$.  I think b. is right (don't know how to prove though). I also think that c. is false. But not sure. How to show setCustomValidity message/tooltip without submit event Printer not recognized on Ubuntu Libre Office I am running 14.04 and have a HP Deskjet 2545 wireless printer which is supported by Ubuntu. I have run HpLIP, the latest version and installed the printer.  The printer is recognised by Ubuntu, printer and network, but LibreOffice do not see the printer. Only a Generic printer.  I don't know what to do anymore and would like to get some good advice What's the difference between an id and a class? How do I change my username? Prevent text selection after double click Run PHPUnit Tests in Certain Order Is there a way to get the tests inside of a TestCase to run in a certain order? For example, I want to separate the life cycle of an object from creation to use to destruction but I need to make sure that the object is set up first before I run the other tests.