I know that every OS has a specific directory, where a program can store data. For example in macOS there is a directory called /Applications.  Where can I store program data from a java program (multi-user) on Windows, Linux and macOS? Is there a System.property?
The difficulty is that it should be cross platform. Windows 2000, XP, Vista, OSX, Linux, other unix variants. I am looking for a snippet of code that can accomplish this for all platforms, and a way to detect the platform.  Now, you should be aware of  that user.home does not work correctly, so please do not provide me of textbook answers, I can find these myself in the manuals.
Is there an image editor like Windows' Paint for OS X? I tried out several image editors mentioned on  but some of them (like  and ) were very disappointing. These apps were too simple and low level.  What do you suggest for a (preferably free) image editor on OS X?  P.S: I was using  on Linux and also know that it was released for OS X too, but I want to find new good applications. Need to understand why my Schengen visa was refused Does a sorcerer's metamagic work for non-sorcerer spells? Can a multiclass sorcerer/cleric use the Metamagic class ability with non-sorcerer spells? For example, using Twinned Spell when casting cure wounds to heal two creatures instead of just one? I installed vsFTPd for running an FTP server on  (Wheezy). I checked the vsFTPd version was 2.3.5, and I configured it like so:  listen=YES local_enable=YES write_enable=YES chroot_local_user=YES pasv_min_port=15000 pasv_max_port=15200 allow_writeable_chroot=YES   I followed these articles for solving this problem:       And many others on Google and forums, but my problem was not solved.  NOTE: I have solved this problem on  (Precise Pangolin), but that solution does not work on Debian 7.3.  I really mixed up on it?! I'm working on a WordPress site for my band and I'd like to mark every 3rd post on our blog page to have a special class applied to it, anybody have any pointers on how to achieve this? Any help is very very appreciated, thanks! rock n roll. I am looking for a quick way to sleep without closing the lid, or using the mouse.  If it matters, I have Lion version OS and a MacBook Air. I have a bit of code where I've written a SOQL query that returns a list of SObject records, however I need a Set&lt;Id&gt; structure to pass to another method that I don't have control of (and thus can't change the method signature of).  How can I turn my returned List&lt;SObject&gt; into a Set&lt;Id&gt;? Is the best option just a for loop? Do spice containers need to be hermetic? Spice containers purchase  I'm planning on upgrading my spice storage. Reading some advice online (e.g. , and ) I came to the conclusion that spice containers should:   Not be exposed to direct sunlight and high temperatures Be airtight   Which means that either you store it inside of some closed cupboard/wardrobe/room or you have containers which do block light and are in a relatively shady place. And the containers need to be airtight.  Available solutions  I've been browsing for some containers available online in my country and the 2 most sensible options I've seen are these:       The problem  The first one is hermetic (it has some rubber around the lid) but it's clear glass. The other one does not have the rubber, just a regular twist-off lid, but it's amber glass.  It'll be hard for me to find any space inside of cupboards to store all of my spices (I need at least 30), so I'd rather buy amber glass container, which I believe will effectively block the sunlight, even when kept on the counter. But I can't find any hermetic amber-glass containers, only ones with regular lid.  The question  Is that regular twist-off lid enough to keep spices airtight and fresh? Or should I focus on buying a hermetic container (like the one in clear glass). I could then for example paint them black to block the sunlight. There are various articles on Hearthstone opening strategy which suggest it's a bad idea to use early-game spells and summons to damage your opponent directly, and that you should instead save them for minion removal.  An example: your starting hand contains an Elven Archer, a 1-cost 1/1 minion that does a point of damage when summoned. I've seen it advised that if going first, with that card in your hand, you should not play it, but save it for minion removal.  Another example:  Going second against a Rogue with a 2-cost 2/1 Loot Hoarder, Deathrattle: draw a card in your hand. The advice was not to play it and save the coin, because on her second turn, the Rogue can generate a dagger and kill the Hoarder.   I understand why, in most circumstances, it's better to remove a minion than damage the enemy. What's bugging me about these particular opening examples is why they're a better idea than doing nothing and ending the turn.  In both cases, you've wasted a point of mana, and the chance to take the initiatve. By having a minion on the board first, you can use the following turn to attack with that minion, possibly removing an enemy summon and leaving you clear to summon onto an empty board.   The Loot Hoarder one I find particularly puzzling. If the Rogue gets a dagger and kills it, you still have the initative, you've forced the Rogue to make what's possibly a suboptimal turn-2 play, you've done 2 damage to the Rogue and you got a card into the bargain. Sounds like a pretty good use of the coin to me.  What am I missing here? I want to build a personal portfolio so my questions related are as follows:   What should I include in the portfolio apart from Home, About, Work, Contact? I have never worked on any real life examples so what to display in the work/portfolio page? What kind of design samples do I need to include? Ex: Website, Logo, Banner etc   Any help is appreciated.  Thanks! My question is whether $x/x$ is always equal to $1$. I am mostly intersted in real numbers and particularly wonder whether $x/x$ is defined at $x=0$.  On one hand the division should simplify to $1$, on the other hand you should not be allowed to divide by zero.   I have been trying to find whether the simplification 'goes first' or whether the division causes trouble first, but it has proven impossible for me to find usefull search terms.     Note that this question arose after reading  and its first comment. How does the Schengen 90/180 rule work? How do you associate the .exe file extension with a program in Windows? Distribution of range of Uniform $(0,1)$ distribution Let $X_1,...,X_n$ be iid as $U \sim [0,1]$ with pdf $f(x) = 1(0 &lt;x&lt; 1)$. Determine the range distribution.   I have managed to determine the distribution of the minimum and the maximum, however I cannot/do not know how to determine the distribution of range.   Minimum:  $f_N = n(1-x)^{n-1}$ and maximum $f_M= nx^{n-1}$   I am aware that the calculation of range distribution is based on convolution: $f_R=\int f_{N,M}(x,x-r)dx$, However I cannot get the correct result, which according to my lecture slides is : $f_R= n(n-1)r^{n-2}(1-r)$  Could someone break this down for me ? My math background is not great I am trying to prove some theorem, and in the proof of it I have to check the fact that if the sequence $\{a_n\}_{n\in \mathbb{N}}$ converges, then $$\lim_{n\to \infty} n(a_n - a_{n-1}) = 0. $$ I think that this is true because I have tried with many different sequences and it holds, but I do not know how to prove it.  If this is not true, what is a counterexample for it? "Member for: today" Very new members will have this text displayed in their profile:    Should this not be changed to say "1 day" or "3 hours", etc? Especially as the "last seen" also works in this way.  Note that members who joined 24 hours ago have been members for "2 days", etc.  You'd say "x has been a member for 1 day" over "x has been a member for today"; saying "member for today" just doesn't feel right to me. Prove by induction that $n! > 2^n$ Suppose that when $n=k$  $(k\geq4)$, we have that $k!&gt;2^k$.  Now, we have to prove that $(k+1)!\geq2^{k+1}$ when $n=(k+1)$ $(k\geq4)$.  $$(k+1)! = (k+1)k! &gt; (k+1)2^k  \text{ (since }k!&gt;2^k)$$  That implies $(k+1)!&gt;2^k2$, since $(k+1)&gt;2$ because of $k$ is greater than or equal to 4.  Therefore $(k+1)!&gt;2^{k+1}$  Finally  we may conclude that $n!&gt;2^n$ for all integers $n\geq4$    Solved, thank you! If $n^c\in\mathbb N$ for every $n\in\mathbb N$, then $c$ is a non-negative integer? Supposing that a real number $c$ is given, is the following true?  "If $n^c$ is a natural number for every natural number $n$, then $c$ is a non-negative integer."  Though this seems true, I can't prove that. Can anyone help? Do I have to create vector files at the correct print size? Can I dump my non-Retina Images for a iOS7 only app?