JSF ManagedBeans Accessing CDI Beans on a Tomcat container
How to install and use CDI on Tomcat?
What language should I speak to my daughter? I am a Greek, born, living and working in France, married to an Albanian woman, working all day in English.  I have a 2,5 year old daughter, who lived from:    September 2014 to April 2015 and February 2014 to April 2014   in Albania (11 months, approx. 36% of her lifespan), where people only talked albanian to her.  I speak only French with my child, BUT I only speak Greek with my wife, because she refuses to speak French with me, because she is insecure in French. Yet, my wife speaks Albanian to my child.  These facts lead to the circumstance, that the language development of my child seems a bit delayed, because she doesn't yet make three word sentences.  Though I am a little worried about her language development, I want to know, if there is a problem if I also start speaking English to her on a regular basis, since I heard that children are capable growing up learning different languages.  Is there something like a burnout/depression danger in children? Since I can see it in her eyes that she wants to communicate but is not able to and I can see it bothering her a lot.  Should I cut my communication with my daughter down to only French? Should I cut it down to speaking Greek with her, since this is the language I speak with her mother every day? Or should I just continue mixing everything up? Or can I even start speaking English with her?  I don't want her to struggle to the point of extreme frustration, but if this means that in the end, her language development will catch up to normal kids, I am inclined to let her struggle a bit. So are there any longterm deficits for her, if I introduce English?  Please advice.  George So I have these two wheels parented to the leg of a robot. I wanna make them spin a few times but they're spinning around the wrong axis. With other objects I could just press R, Y, Y to make them spin right when they're already at an angle, but for some reason it doesn't work with these. Would be amazing if someone helped me fixing this! How do I fix my locale issue? I am getting this message every time I do something like starting or stopping a service.  perl: warning: Setting locale failed.    perl: warning: Please check that your locale settings:            LANGUAGE = "en_US:en",            LC_ALL = (unset),            LC_MESSAGES = "en_US.UTF-8",            LANG = "en_US.UTF-8"        are supported and installed on your system.    perl: warning: Falling back to the standard locale ("C").    locale: Cannot set LC_CTYPE to default locale: No such file or directory    locale: Cannot set LC_MESSAGES to default locale: No such file or directory    locale: Cannot set LC_ALL to default locale: No such file or directory    (Reading database ... 21173 files and directories currently installed.)   Removing bind9 ...    * Stopping domain name service... bind9                                        [ OK ] Processing triggers for man-db ...    locale: Cannot set LC_CTYPE to default locale: No such file or directory    locale: Cannot set LC_MESSAGES to default locale: No such file or directory    locale: Cannot set LC_ALL to default locale: No such file or directory      How do I fix this error ? How do I fix this "E: Type '*' is not known on line * in source list ..." update error? Every once in a while I see users having issues to update due to errors like this:  E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'   with varying types/line numbers/source list files (often after removing a PPA).  How can such an error be fixed? How to permanently set environmental variables Can I use a Mac Mini as an Airplay audio receiver? I don't have an AppleTV (yet), but I do have a Mac Mini hooked up to some decent speakers.  Is there something I can run on it, so that it acts like an Airplay audio receiver?  (Video support isn't important to me.) Change Data Type Varchar To Varbinary(max) In SQL Server How do I set a user environment variable? (permanently, not session) This is irritating me. I seen several suggestions (all using different files and syntax) and none of them worked.  How do I set an environment variable for a specific user? I am on debian squeeze. What is the exact syntax I should put in the file to make ABC = "123"? mathpazo + siunitx: π turns into ß When I use mathpazo and siunitx (version 2.3h) together, if I use \pi inside the numerical argument to \SI, it will show up in the output as "ß".  \documentclass{article} \usepackage{mathpazo, siunitx} \begin{document}     $\pi + \SI{\pi}{\ohm}$ \end{document}   Produces:    But when I don't use mathpazo:    Why does this happen and how can I fix it? Why do we say "is it" when asking a question rather than "it is"? What it says on the tin, a foreign friend of mine has asked and I can't tell him; apart from it sounding horrible.  For example:  "Why is it raining today?"   Instead of:  "Why it is raining today?" Least rank of a matrix Let $A$ be a $7\times 7$ matrix such that it has rank $3$ and $a$ be $7\times 1$ column vector.  Then least possible rank of $A+(a a^T)$ is? ($a^T$ is transpose of the vector)  Intuitively I think it's $2$ as $a a^T$ has rank $1$, and the most it could affect is one row of $A$. This is a follow up question to . My reference database contains some DOI codes, but mainly normal URLs and some ISBN/ISSN codes. What I would like to achieve is extending the code from Herbert and hyperlink the title of the entry with the following priority: 1. DOI, 2. URL, 3. ISBN/ISSN. What I mean is, if both DOI and URL is available, use DOI. If URL and ISBN is available use URL. If only ISBN is available use that.  There are two further isses:    The URL field might contain several URLs, which are just seperated by a white space. In that case just the first URL should be used.  Herbert's code just extends to articles. I would like to extend this to all entry types.   The code from Herbert to Hyperlink the Title with DOIs is:   \newbibmacro{string+doi}[1]{%   \iffieldundef{doi}{#1}{\href{http://dx.doi.org/\thefield{doi}}{#1}}} \DeclareFieldFormat{title}{\usebibmacro{string+doi}{\mkbibemph{#1}}} \DeclareFieldFormat[article]{title}{\usebibmacro{string+doi}{\mkbibquote{#1}}}   This far surpasses my skill, so it would be great if someone could give me some guidance how to achieve that. Should we sign-then-encrypt, or encrypt-then-sign? I would like to do two things   Increase the size of inmargin area (i.e., customize inner sidebar so that more contents could fit there) Reduce the empty space between the title of block environment and the slide edge (from the example below, the title of block has too much of wasted space to its left which could be used to create more readable sentences)     MWE  \documentclass[xcolor={x11names}]{beamer}  \usecolortheme{structure} \useinnertheme{rectangles} \useinnertheme{inmargin}  \usecolortheme{crane}  \usefonttheme{structurebold}   \usepackage{fontspec}  \usepackage{calc}  \usepackage[inline]{enumitem} % Description list defaults      % To change font     \newcommand{\descriptionfont}{\fontencoding{T1} \fontfamily{bch} \selectfont}      % Label indentation     \newcommand{\descLabOffset}{\widthof{\hspace{2.6mm}}}      % Left of description aligned with the left margin     \newcommand{\descLeftLabMarInd}{0mm - \descLabOffset}      % Left of description aligned with \parindent     \newcommand{\descLeftLabParInd}{\parindent - \descLabOffset}      % Set the list options     \setlist[description, 1]{font=\descriptionfont, leftmargin=*, labelsep=3mm, labelindent=\descLeftLabMarInd, align=left}  \begin{document}   \begin{frame}{Induction Motors}      \begin{block}{Why is induction motor very common?}          Induction motors are very practical for the following reasons          \begin{description}             \item[Rigid] Rigid             \item[Cheap] Cheap             \item[Low Maintenance] Low Maintenance             \item[Self-Starting] Self-starting             \item[No Excitation Needed] No Excitation Needed         \end{description}      \end{block}  \end{frame}  \end{document} Exercise from Atiyah-Macdonald, Chapter 1, 2.iv) Let $A$ be a ring and let $A[x]$ be the ring of polynomials in an indeterminate $x,$ with coefficients in $A.$ Let $f=a_0 + a_1x+\cdots+a_nx^n \in A[x].$ $f$ is said to be primitive if $(a_0,a_1,\ldots,a_n)=(1).$     Prove that if $f,g\in A[x],$ then $f$ and $g$ are primitive $\Rightarrow$ $fg$ is primitive.   I know Gauss lemma holds true for UFDs, but in this case it isn't required $A$ to be UFD: is it possible to drop the assumption, or is some hypothesis missing here? opengl storing multiple indices into indices buffer How can I block all traffic *except* Tor? I have two sites that were originally migrated from SPS2003.  It worked well in SharePoint 2007 and even on SharePoint 2010,  however when we migrated it to SharePoint 2013,  the home page throws following errors on the ULS Log.     5/24/2013 09:57:46.62  w3wp.exe (0x0D50)   0x1D24  SharePoint Foundation   Files   ak8dj   High   UserAgent not available, file operations may not be optimized.    at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb)     at Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo&amp; fileInfo, SqlSession session, PrefetchResult prefetchResult)        05/24/2013 09:57:46.62 w3wp.exe (0x0D50)   0x1D24  SharePoint Foundation   Cobalt  ajoii   Medium   Mapping Store error to Cobalt error. [Store Error: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocParams(SqlSession session, Guid guidSiteId, Int32 cbContent, Nullable1 parentId, Guid docId, Nullable1 level, SPChunkedArray`1 rgbContent, Byte[] rgbRbsId, Int64 bsn, Byte partition, Int32 pageSize, Boolean bStartFilling)        05/24/2013 09:57:46.62 w3wp.exe (0x0D50)   0x1D24  SharePoint Foundation   Cobalt  aintx   High    Failed in CobaltStream.LockBytes: ErrorException --- Error: Unknown (Win32=0x80004003) --- Error message: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocParams(SqlSession session, Guid guidSiteId, Int32 cbContent, Nullable1 parentId, Guid docId, Nullable1 level, SPChunkedArray`1 rgbContent, Byte[] rgbRbsId, Int64 bsn, Byte partition, Int32 pageSize, Boolean bStartFilling)     at         05/24/2013 09:57:46.64 w3wp.exe (0x0D50)   0x1D24  SharePoint Foundation   Files   ak8dj   High    UserAgent not available, file operations may not be optimized.    at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb)     at Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo&amp; fileInfo, SqlSession session, PrefetchResult prefetchResult)     at         05/24/2013 09:57:46.64 w3wp.exe (0x0D50)   0x1D24  SharePoint Foundation   Database    ab1a9   High    Failed to get document content data. System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocParams(SqlSession session, Guid guidSiteId, Int32 cbContent, Nullable1 parentId, Guid docId, Nullable1 level, SPChunkedArray`1 rgbContent, Byte[] rgbRbsId, Int64 bsn, Byte partition, Int32 pageSize, Boolean bStartFilling)     at   I could not find any materials related to this on the internet,  I am not even sure if it has to do something with SPS2003 compatibility.  Any help pointers? MySQL GUI Tools Transfer game license So the problem is that account 1 and account 2 bought a game together, but account 1 isn't used anymore. Can we transfer the game license from account 1 to account 3?   The game was bought on account 1 and account 2 activated account 1 as primary.