JSF FILE Upload
JSF 2.0 File upload
What can cause "Android OS" process to use high percentage of battery? I am working on a long document in LaTeX with documentclass book. I need the page number to always be in the upper right corner of each page, even if that page is the first page of a chapter (right now on 1st pages of chapters, the page number is bottom-centered, on all other pages it's top-right).  I control the position of the page number with fancyhdr:  \usepackage{fancyhdr} \pagestyle{fancy} \lhead{} \chead{} \rhead{\thepage} \lfoot{} \cfoot{} \rfoot{} \renewcommand{\headrulewidth}{0pt}   Also, I don't know if the problem is related but my chapters do not start from the top of the page. There is a white area, then comes chapter X, then a newline with the chapter line. What I also want is the chapter to start from the top of the page.  The main question here is how I can get the page number to always appear in the upper right corner, I mention the thing with the chapter title position only in case that might be related. Catch Regex too complicated when splitting a string in salesforce I just went to install Java 8 on my ancient laptop that runs Windows XP SP3.  Java pops up a message:     Java 8 requires a newer version of Windows. You may continue with the installation, but for Java to work as specified we recommend upgrading your computer's operating system.   Will Java fail to work properly on Windows XP? Or is this just Oracle trying to be secure? Why is using a wild card with a Java import statement bad? Looking for a scifi novel with advanced pheromone technology I'm looking for a word which describes a task which I think is poorly designed and will lead to either mediocre results or failure, but which I have to do anyway, especially in a work setting.   The word "Dilbertian" comes to mind, however this word is obviously made up and is only meaningful to someone who is familiar with the Dilbert comic strip, so I'm looking for something which captures both the futility and compulsory nature of the task in a way which is meaningful to a broader audience. XPath - Get node with no child of specific type How do I append an object (such as a string or number) to an array in JavaScript? I am setting up a server where there are multiple developers working on multiple applications.  I have figured out how to give certain developers shared access to the necessary application directories using the setgid bit and default ACLs to give anyone in a group access.  Many of these applications run under a terminal while in development for easy access. When I work alone, I set up a user for an application and run screen as that user. This has the downside that every developer to use the screen session needs to know the password and it is harder to keep user and application accounts separate.  One way that could work is using screen multiuser features. They do not work out-of-the-box however, screen complains about needing suid root. Does giving that have any downsides? I am pretty careful about using suid root anything. Maybe there is a reason why it isn't the default?  Should I do it with screen or is there some other intelligent way of doing what I want? Currently using ubuntu 15.10 on azure and installed the gnome and vnc4server latest version on ubuntu. Please find log file below:  Current VNC client screen:    $ cat .vnc/myhost1\:1.log    --cut-- VNCSConnST:  Server default pixel format depth 16 (16bpp) little-endian rgb565 VNCSConnST:  Client pixel format depth 8 (8bpp) colour-map Window manager warning: Invalid WM_TRANSIENT_FOR window 0x20000c specified for    0x20000b (I        nitialization error). Error org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name    'org.gnome.ze        itgeist.Engine': no such name amdxdg-su: no graphical method available for invoking '/usr/bin/amdcccle' as 'root'  $ cat .vnc/xstartup unset SESSION_MANAGER  [ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources  vncconfig -iconic &amp;  gnome-panel &amp; gnome-settings-daemon &amp; metacity &amp; nautilus -n &amp; gnome-terminal &amp;   How to get 24bit color with wide screen (Now I getting square screen in vnc client) Fourier series identity Let $r$ be the smallest positive integer such that $a^r \equiv 1 \bmod{n}$. Prove $r \mid \phi(n)$. Let $a \in \mathbb {Z}$, $n &gt; 1$ a natural number with $\gcd(a, n) = 1$, and let $r$ be the smallest positive integer such that $a^r \equiv 1 \bmod{n}$. Prove that $r \mid \phi(n)$.  Euler's generalization of Fermat's Little Theorem: If $n \in \mathbb {N}$ and $m \in \mathbb{Z}$ such that $\gcd(m, n) = 1$, then $m^{\phi(n)} \equiv 1\bmod(n)$.  By Euler's generalization I would have $a^{\phi(n)} \equiv 1\bmod{n}$.  Then I could say $a^r \equiv a^{\phi(n)} \equiv 1 \bmod{n}$. At this point I can see that $r$ clearly must be some multiple of $\phi(n)$.  If I want to show that $r \mid \phi(n)$, then I can show that $\phi(n) = rk$, for some $k \in \mathbb {Z}$.  However, I am a bit stuck about how to make this last step showing that  $\phi(n) = rk$, where $k \in \mathbb {Z}$. Consider the Fibonacci numbers $F(0) = 0; F(1)=1; F(n) = F(n-1) + F(n-2)$.  Prove by induction that for all $n&gt;0$,  $$F(n-1)\cdot F(n+1)- F(n)^2 = (-1)^n$$  I assume $P(n)$ is true and try to show $P(n+1)$ is true, but I got stuck with the algebra. How do we reach $P(n+1)$ from $P(n)$? Also, strong induction may be used instead. If I've got a file (or files) selected in Windows Explorer, the only way I've found to "unselect" them is click with the mouse on some empty space.  I thought Esc would do this, but it doesn't. Also changing focus with Tab or Shift + Tab doesn't work; the file(s) are still selected even if focus goes to the address bar for instance.  Does anyone know of a keyboard shortcut to do this? Selecting features that do NOT intersect in ArcGIS Desktop? I've seen a lot of games in the LCS and All-Star, and they sometimes changed bot and top lanes.   When is this a good practice? What do you gain from doing this? Should I do this to avoid counters or if my solo laner has more sustain than theirs? extract value between two search patterns on same line Why are disabled apps still running? $\aleph_1$ is the cardinality of the countable ordinals. It is the least cardinal number greater than $\aleph_0$, and assuming the continuum hypothesis it's equal to $\mathfrak{c}$, the cardinality of the the real numbers.    My question is, is it possible for all $\aleph_1$ subsets of $\Bbb{R}$ to have Lebesgue measure $0$?  This is, of course, impossible assuming the continuum hypothesis, because then all sets of real numbers would have measure $0$, which is absurd.  But is $\mathsf{ZFC}$ + $\lnot\mathsf{CH}$ + "all subset of $\Bbb{R}$ of cardinality $\aleph_1$ have Lebesgue measure $0$" consistent?  If not, what if we replaced Lebesgue measure with some other measure?  It may be worth noting that, although there may be subsets of $\Bbb{R}$ with cardinality $\aleph_1$, there are no subsets of $\Bbb{R}$ which have the order-type $\omega_1$ (the order-type of the countable ordinals) under the usual ordering on $\Bbb{R}$.  Any help would be greatly appreciated.  Thank you in Advance.