jsf validate two fields in one time
JSF doesn't support cross-field validation, is there a workaround?
Windows 7 booting fail with error code 0xc0000225 I have an HP laptop Pavilion DV4. Last night, I installed Ubuntu and there was an problem about partitioning the hard disk, and I think I deleted the Windows boot record.  I didn't burn a recovery disc but there is built-in recovery partition on the hard disk.  All I want to do is to perform a Factory Restore but I need recovery disc. I could burn that disc from the recovery partition using HP recovery manager, but can't burn now. I can't also boot HP recovery manager using F11 key, because it has the same boot error.  I want to boot Windows 7 and want to burn recovery disc. How can I boot into my old windows 7. If I can boot it, I can burn Recovery Disc and I will make Factory Restore if it's needed.  I didn't make any changes to windows 7 partition but I did a problem about Boot Record.  There is a system partition on hard disk with the size of about 200 MB.There is BOOT folder too.  Installation of Ubuntu also failed, so I'm booting from Live Ubuntu USB. How to replace one char with another in all filenames of the current directories? Cauchy Problem for inviscid Burgers' equation Consider the Cauchy Problem of finding $u(x,t)$ such that    $$\frac{\partial u}{\partial t}+u\frac{\partial u}{\partial x}=0,x\in\mathbb{R},t&gt;0$$ $$u(x,0) = u_0(x), x\in\mathbb{R}$$ Which choices of the following functions for   $u_{0}$ yield a $C^{1}$ solution $u(x,t)$ for all   $x\in\mathbb{R},t&gt;0$         $u_{0}(x)=\frac{1}{1+x^{2}}$   $u_{0}(x)=x$   $u_{0}(x)=1+x^{2}$   $u_{0}(x)=1+2x$.      If I use the existence and uniqueness theorem for Cauchy problem i get the corresponding determinant is non zero so all are true according to me. But in answer key only option 2nd and 4th is given. Please help me to solve the problem. Thanks a lot. Hello Physics StackExchange!  I will put the TL;DR in the beginning: I need a self contained, relatively hand-holding sequence of textbooks that covers up from the end of Griffith's Intro to QM to relativistic QM/particle physics to QFT.    This will be my first post. I'm a medical physics grad student who majored in biomedical engineering for my undergrad, with serious regrets about not doing math/physics double major in hindsight. Oh well. I've made it my goal to eventually understand QFT.  My background in relevant subjects is Calc 1 to 3 and Diff EQ, 2 part freshman physics, an E&amp;M course that used Griffiths Electrodynamics, a summer of self studying Griffith's QM (got most of the way through). I will also be officially taking a class in QM using Griffith's textbook this next spring. I am aware of the Lagrangian and Hamiltonian approaches to mechanics as well. In addition I have familiarity with special and basic general relativity using tensors and all this. What would be the best way for me to get from where I am now to a strong understanding of QFT autodidactically? I have no aversion to studying pure maths where I need to.  EDIT: My question is much different than simply asking for a handholding explanation of QFT. Generally these textbooks assume a certain amount of physics/math background, and I was asking for a sequence of textbooks leading up to QFT from the end of a specific textbook, Griffith's QM. Did you even read my question? Did you read the thing you linked me to? Mutable or immutable class? Proving a direct product of groups is a group I am trying to prove the following and am looking toward the math.stackexchange community to comment on whether I am on the right track or not. Thank you in advance.    Let $n \geq 1$ be an integer. Suppose $\{G_1,...,G_n\}$ is a finite set of groups. Define the set $G = G_1 \times G_2 \times ... \times G_n$ of ordered n-tuples $(g_1,g_2,...,g_n)$ where $g_i \in G_i$. Show that the operation $\bullet$: $G \times G \rightarrow G$ given by $(g_1,g_2,...,g_n) \bullet (g'_1,g'_2,...,g'_n) = (g_1g'_1,g_2g'_2,...,g_ng'_n)$ makes $G$ into a group.    Proof of associativity: $((g_1,g_2,...,g_n) \bullet (g'_1,g'_2,...g'_n)) \bullet (g''_1,g''_2,...,g''_n)$ = $(g_1g'_1,g_2g'_2,...,g_ng'_n) \bullet (g''_1,g''_2,...,g''_n) $ = $(g_1g'_1g''_1,g_2g'_2g''_2,...,g_ng'_ng''_n)$ = $(g_1,g_2,...,g_n) \bullet (g'_1g''_1,g'_2g''_2,...,g'_ng''_n) = (g_1,g_2,...,g_n) \bullet ((g'_1,g'_2,...,g'_n) \bullet (g''_1,g''_2,...,g''_n))$  \  Proof of the existence of an identity For each $G_i \in G$, take its identity element $e_i$ and multiply it as follows: $(g_1,g_2,...,g_n) \bullet (e_1,e_2,...,e_3)$ = $(g_1,g_2,...,g_n)$.  \  Proof of the existence of an inverse: Since each $G_i \in G$ is a group, simply takes its multiplicative inverse $g_i^{-1}$ and multiply it: $(g_1,g_2,...,g_n) \bullet (g_1^{-1},g_2^{-1},...,g_n^{-1}) = (e_1,e_2,...,e_n)$. I want to use some constants, height and width, when creating an ellipse but it won't work with \newcommand. Here is a minimal example:  \documentclass[12pt, a4paper]{article}  \usepackage{amsthm, tikz} \usetikzlibrary{arrows, shapes, trees, positioning} \begin{document}  \begin{figure} \centering \begin{tikzpicture}       \newcommand*{\width}{2}%     \newcommand*{\height}{0.5*\width}%      \draw[fill=gray!40] (0, 0) ellipse (\width and \height); \node (Y) at (0,0) {\(Y\)};      \end{tikzpicture} \end{figure}  \end{document}    I get the following error:  error: line 14:  Package PGF Math Error: Unknown operator `a' or `an' (in '2and 0.5*2'). ...ay!40] (0,0) ellipse (\width and \height) Java generics super keyword Why is it considered good practice to mark method parameters as final? What lens characteristics are important in star photography? A function such that $f:\mathbb C \to \mathbb C$ such that $f(z)f(iz)=z^2$ satisfies $f(z)+f(-z)=0$.(MADHAVA-2020) Suppose $f$ is a function such that $f:\mathbb C \to \mathbb C$ such that $f(z)f(iz)=z^2$, then we have to show that $\forall z\in \mathbb C f(z)+f(-z)=0 $.   Actually I have solved this problem and have no doubt about it but actually this question came in MADHAVA-2020. So I posted it on this site.   I am not answering the question and inviting all users to answer it.  It is a nice problem.   I will answer it within a week, but I am letting everyone try. Understanding Clip Warning 000117 for Polygons? This error makes little sense because 95% of the time this works without any problem, but here is the situation:  I am clipping polygon A by polygons B-H.  While most of the time this works perfectly, occasionally this happens:   All layers are from the same coordinate system, and the processing extent is the same as polygon A when I setup the clip. Polygons C-H clip just fine without any errors, so it is usually polygon B that has the issue; however, most of the time there are no issues whatsoever. The polygons do overlap each other. I have repaired the geometry, but the results are the same.  Given that it isn't a coordinate problem, a processing extent problem, or even a geometry problem, what else could it be causing this error, and what would I have to do to resolve this problem?  UPDATE:  The error happened again with my largest set of Polygon A; however, I then deleted 75% of the Polygon A set and it worked just fine. So my question now is: how limited is the Clip feature when it comes to large areas, and is there a way around this without having to divide the Polygon A shapefile into several segments? Sensitivity to initial conditions and topological transitivity Forgive the possibly naive question, but I'm returning to a basic undergrad-level study of chaotic dynamical systems and can't quite seem to reconcile the notion that in order for a dynamical system to be considered chaotic, it must have positive global Lyapunov exponents. Such exponents, of course, drive the divergence of trajectories. However, topological transitivity implies that trajectories can get arbitrarily close as well over some finite time. It seems that positive Lyapunov exponents would disallow this mixing. Is there a point at which these positive exponents no longer describe the system, and the mixing behavior begins? Make font size bigger than max limit of 1296 pt in Adobe Illustrator (2015)? For some reason and for many years there's a limit for font size in Illustrator. It is 1296 points max, so you can't go bigger without converting type to outlines first. Converting to outlines means you will not be able to edit type parameters and text it-self. Don't know how about you, but this makes me sad in non-destructive editing era.  What's your workaround? I'm trying to simulate a media key press using a custom shortcut.  So far, I've been able to achieve the simulation I need using the command:  xdotool key XF86AudioPlay   It works perfectly, it pauses or starts the music player every time it is run.  The problem comes when trying to run it as a shortcut.  First I tried to run an alias with a custom shortcut, but it did not work.  As explained on :     The commands run by keyboard bindings are not parsed via a shell. Your best bet is to create a directory bin in your homedir.   Next I created the suggested script and named it simplay:  #!/bin/sh xdotool key XF86AudioPlay   It is located inside a bin folder which is part of the PATH, this works fine and can be run from any location.  When trying to create the Custom Shortcut, I was unable to get it to execute, the configuration is the following:  Name: test Command: simplay  Shortcut: Ctrl+Alt+R   After searching a bit more I found another way to execute the shortcut:  gnome-terminal -e simplay   I tried it on a terminal and noticed that when executing it it would rapidly open a new terminal window, execute the child process, pausing the music and immediately close the window.  I changed the command on the shortcut and when hitting it I noticed the same behavior opening a terminal and immediately being closed but this time the child process did not pause the music, which makes me think that the script has been called on all my previous attempts but it is somehow not being able to execute.  How can I solve this problem according to your knowledge? What is the difference between a HMAC and a hash of data? Is there a word for happiness made possible by a tragic situation? How to download an MP3 track from a YouTube video How to adapt the color of a label using pgfplots I created this style that shifts the labels and put them on the bottom of the ybars.  However, I have a problem with the bars that have too short length (for example, see the 8.7 and 5.1 in the example below). I want to check if the values are less than some threshold, or the length of the bar is shorter than the label (number) then change its color.  How can I overlay another label on top of the one in white when the bar is shorter? or maybe change the color of the label to a gradient color? or just overlay the part that is outside of the bar?    \documentclass{standalone}  \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc}  \begin{document} \makeatletter \begin{tikzpicture} \begin{axis}[ ybar, every node near coord/.style={   check for zero/.code={ % If meta=0, make the node a coordinate (which doesn't have text)     \pgfmathfloatifflags{\pgfplotspointmeta}{0}{         \pgfkeys{/tikz/coordinate}     }{}   },   check for zero, color=white, text opacity=1, font=\footnotesize, inner ysep=0.5pt, },% % Bottom nodes  calculate full offset/.code={     \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}     \pgfmathsetmacro\testmacro{((\pgfplotspointmeta-\pgfkeysvalueof{/pgfplots/ymin})*10^\pgfplots@data@scale@trafo@EXPONENT@y)*\pgfplots@y@veclength}     \pgfkeys{/pgf/fpu=false} },% nodes near coords bottom/.style={     every node near coord/.append style={         /pgfplots/calculate full offset,         yshift=-\testmacro,         rotate=90, anchor=west,%I need the rotate text here and not in the          %general style, as the ybar redefines the style     } },% ymin=0, nodes near coords={\pgfmathprintnumber[fixed zerofill,precision=1]{\pgfplotspointmeta}}, nodes near coords bottom, ] \pgfplotstableread{ % set real imag mag 1 8.7 2 5.1 3 91.8367  }\mydata \addplot table[x index=0,y index=1,header=false] {\mydata}; \end{axis} \end{tikzpicture} \makeatother \end{document}   * EDIT *  I need to create some special gradient on each label that is below the bar height. For example, I need to adapt something like  to each label that is not showing. However, I cannot find a way to put the macro in the style section of the codes. Or is there any equivalent solution? How do I use Linq to obtain a unique list of properties from a list of objects? I'm trying to use Linq to return a list of ids given a list of objects where the id is a property. I'd like to be able to do this without looping through each object and pulling out the unique ids that I find.  I have a list of objects of type MyClass and one of the properties of this class is an ID.  public class MyClass {   public int ID { get; set; } }   What I want to do is write a Linq query to return me a list of those Ids  How do I do that given an IList&lt;MyClass&gt; such that it returns an IEnumerable&lt;int&gt; of the ids?  I'm sure it must be possible to do it in one or two lines using Linq rather than looping through each item in the MyClass list and adding the unique values into a list.  Any help in creating an elegant solution would be much appreciated!