I am trying to use custom vf component in managed vf email template but it is giving me an error saying unknown component. My vf component is set to global already and all the attributes are also set to global.
I'm  having some trouble editing the content of a Managed Email Template, I can quite easily modify the content of the Email Template, but when I wish to refer to an unmanaged component, like this:  &lt;messaging:attachment renderAs="PDF" filename="invoice.pdf"&gt;     &lt;c:MyComponent/&gt; &lt;/messaging:attachment&gt;   I get the error message:     Error: Unknown component c:mycomponent   Does anyone know if its possible to embed an unmanaged component in a managed Email Template?
Surfing the web anonymously What is the best, fastest, safest way to surf the web anonymously, and how much anonymity can you really achieve? How to test randomness (case in point - Shuffling) First off, this question is ripped out from  question. I did it because I think this part is bigger than a sub-part of a longer question. If it offends, please pardon me.  Assume that you have a algorithm that generates randomness. Now how do you test it? Or to be more direct - Assume you have an algorithm that shuffles a deck of cards, how do you test that it's a perfectly random algorithm?  To add some theory to the problem - A deck of cards can be shuffled in 52! (52 factorial) different ways. Take a deck of cards, shuffle it by hand and write down the order of all cards. What is the probability that you would have gotten exactly that shuffle? Answer: 1 / 52!.  What is the chance that you, after shuffling, will get A, K, Q, J ... of each suit in a sequence? Answer 1 / 52!  So, just shuffling once and looking at the result will give you absolutely no information about your shuffling algorithms randomness. Twice and you have more information, Three even more...  How would you black box test a shuffling algorithm for randomness? Charging Li-ion batteries in parallel I wanted some opinion on my set up here, just to make sure I got the basics right.  I have a Li-ion battery charging circuit based on the MCP73113. This is designed to be a single-cell battery charger.   The battery itself (3.7V, 650mAh) comes with its own PCB with Schottky diode and current regulators as protection. EDIT: Not a Schottky diode. Current limiter and a Protection IC.  By design, they work together just fine.  I have more batteries from the same manufacturer and wanted to make higher capacity packs by putting two cells in parallel. The two cells come with their own PCB, but I only kept one of them, as I soldered their leads together. It seems to work and they are charged and discharged just like regular batteries (3.7V, now 1300 mAh).  However, not all the packs I made work smoothly and I get a failure rate of 2 in every 10 packs. They all start out normally, but occasionally when the batteries are not charged for some time, or are used up, they tend to not work anymore. So far, in only 1 pack I found the voltage to be different (both now below 2V, aka dead).  I assume my method is not the right approach to ensure 100% success rate, so I was wondering how can this be solved. All the controllers I looked into was designed for multiple cells in series, not parallel. Am I fundamentally missing something here? Is there any way other than instanceof operator for object type comparison in java? Can a finite group act freely (as homeomorphisms) on $\mathbb R^n$ I am asking if whether or not a finite group acts freely (as homeomorphisms) on $\mathbb R^n$.  To answer in the negative, it suffices to show: for any homeomorphism $f$ such that $f^d=\text{id}_{\mathbb R^n}$, then $f$ has a fixed point.  I am looking for a complete self-contained answer. To show that $\sum a_nb_n$ is absolutely convergent Assume that $\sum a_n$ is convergent and $\sum b_n$ is absolutely convergent.To show that $\sum a_nb_n$ is  absolutely convergent  My try::Consider the sequence of partial sums of $\sum |a_nb_n|$  $S_n=|a_1b_1|+|a_2b_2|+......+|a_nb_n|$  Now $(a_1b_1+a_2b_2+......+a_nb_n)\leq ( (a_1^2+a_2^2+..+a_n^2))^\frac{1}{2}((b_1^2+b_2^2+..+b_n^2)^\frac{1}{2})$  How to proceed from here? Show that if $g \circ f$ is injective, then so is $f$. The Problem:  Let $X, Y, Z$ be sets and $f: X \to Y, g:Y \to Z$ be functions.  (a) Show that if $g \circ f$ is injective, then so is $f$.  (b) If $g \circ f$ is surjective, must $g$ be surjective?  Where I Am:  So, I really have trouble with these, for some reason. I can draw pictures and make sense of the problems, but writing down proofs is very difficult for me.   Basically, for (a), I ended up with some complicated statement involving an implication implying another implication and then tried to derive a contradiction. It just got so convoluted that I couldn't make sense of it anymore, and I know there's a quick, elegant way to show it.  For (b), I know that $g$ need not be surjective. Once again, though, proving it directly from definitions has given me a bit of a headache.  Any help here would be appreciated. Thanks in advance.  The Proofs!  Ok, I did it. Thanks for the help, everyone! Let me know if there's anything wrong with these proofs, or if they could bet any better.  (a) Suppose $f$ is not injective. Then $$ f(x_1)=f(x_2) \implies x_1 \ne x_2 \text{        }(*).$$ Let $f(x_1)=y_0=f(x_2)$ and let $g(y_0)=z_0$. Then $$ (g \circ f)(x_1) = (g \circ f)(x_2) = g(y_0) = z_0. $$ Since $g \circ f$ is injective, $$ (g \circ f)(x_1) = (g \circ f_2) \implies x_1 = x_2. $$ However, this contradicts $(*)$. Therefore, $f$ must be injective.  (b) Suppose $g$ is not surjective. Then  $$ \forall y \in Y, \exists z \in Z \text{ such that } g(y) \ne z \text{         }(**).$$  Since, $g \circ f$ is surjective,  $$ \forall z \in Z, \exists x \in X \text{ such that } g(f(x)) = z \text{       } (***). $$  Let $f(x) = y$. Then,  $$ g(f(x)) = g(y) = z. $$  Because of $(***)$, this is true for all $z \in Z$, which contradicts $(**)$. Therefore, $g$ must be surjective. Immigration check between Northern Ireland/Republic of Ireland and Great Britain Do immigration checks exist between Northern Ireland and England/Scotland? (not just for flights but also ferry/bus/train) Do immigration checks exist between the Republic of Ireland and England/Scotland? Reduce file size without losing quality I would like to save files in Photoshop but keep them as small as possible.   I use Save for Web (and Devices) and save as a JPEG. Here are the settings I used:     I really do not want to lower the quality settings because I use text and sometimes I see artifacts if the setting is too low.   This produces file sizes of several hundred kilobytes depending on size of image. While this isn't a huge issue these images are used for the web and smaller is better. What are techniques without reducing quality to reduce the file size?   Update:  To add some more information here:   Many of the images I use and create get sent via email. This severally limits what I can do with placing of text using HTML and CSS over the image.   Also I use a variety of fonts. Some I could use for the web using CSS's @font-face but you can run into large file sizes and in some cases you cannot upload the font to the web legally. I could use a service like  but again many fonts I use are not available with Typekit.   Here is an example image: Combine PHP prepared statments with LIKE Proof that $S_3$ isomorphic to $D_3$ Network button missing gone from Nautilus? I'm using Ubuntu 16.04.3 LTS.  I remember having a link in Nautilus that I used to browse network shares with in the past. I don't remember exactly but I think it was "Windows network" or "Browse network".  Now I can't find this on my current installation, there's only "Connect to server", but this is not what I want. Is there a way to put that link there? Under what condition we can interchange order of a limit and a summation? General relativity (gravitation) in time and one spatial dimension I don't have any idea of general relativity but intend to learn. Is it a good idea to study general relativity in two dimensions (time and single spatial dimension) in the begining to get good idea on the subject? If it is, then please give some references for such a treatment. Is there any way I can separate a List&lt;SomeObject&gt; into several separate lists of SomeObject, using the item index as the delimiter of each split?  Let me exemplify:  I have a List&lt;SomeObject&gt; and I need a List&lt;List&lt;SomeObject&gt;&gt; or List&lt;SomeObject&gt;[], so that each of these resulting lists will contain a group of 3 items of the original list (sequentially).  eg.:   Original List: [a, g, e, w, p, s, q, f, x, y, i, m, c] Resulting lists: [a, g, e], [w, p, s], [q, f, x], [y, i, m], [c]   I'd also need the resulting lists size to be a parameter of this function. I created a presentation using the beamer class with texmaker. Right now it looks like this:    Now I would like to include a jpg where the red circle is located, so basically inside a palette. Can anybody help me how to do that?  The code:  \documentclass[t,compress,10pt,xcolor=dvipsnames]{beamer}  \usepackage{lmodern} \usepackage[labelformat=empty,labelsep=none]{subfig} \usepackage{caption} \usepackage{float} \usepackage{wrapfig}  \newcommand*\oldmacro{}% \let\oldmacro\insertshorttitle%  \renewcommand*\insertshorttitle{%   \oldmacro\hfill%  \insertframenumber\,/\,\inserttotalframenumber}  \definecolor{UniDunkel}{RGB}{73,142,137} \definecolor{UniHell}{RGB}{142,184,182}  \setbeamertemplate{blocks}[rounded][shadow=true] \setbeamercolor{structure}{fg=UniDunkel}  \setbeamercolor{block body}{parent=normal text,use=block title, bg=block title.bg!10!bg} \setbeamercolor{block body alerted}{parent=normal text,use=block title  alerted,bg=block title alerted.bg!10!bg} \setbeamercolor{block body example}{parent=normal text,use=block title  example,bg=block title example.bg!10!bg}  \setbeamercolor*{palette primary}{use=structure,fg=white,bg=UniDunkel!115} \setbeamercolor*{palette secondary}{use=structure, fg=UniHell,  bg=UniHell} \setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=UniDunkel!115} \setbeamercolor*{palette quaternary}{fg=Orange}  \setbeamercolor*{sidebar}{use=structure,bg=structure.fg} \setbeamercolor*{palette sidebar primary}{use=structure,fg=structure.fg!10} \setbeamercolor*{palette sidebar secondary}{fg=white} \setbeamercolor*{palette sidebar quaternary}{fg=white} \setbeamercolor*{titlelike}{parent=palette primary}  \setbeamercolor*{fine separation line}{}  \setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!0!red} \setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!0!white} \setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!0!white}  \useoutertheme{miniframes} \useinnertheme{circles} \setbeamertemplate{footline}[frame number]  \beamertemplatenavigationsymbolsempty  \begin{document}  \section{Section1} \subsection{Subsection1} \frame { \frametitle{Frame1} }  \section{Section2} \subsection{Subsection2} \frame { \frametitle{Frame2} }   \end{document} How to find integer solutions to $M^2=5N^2+2N+1$? PHP regex delimiter, what's the point? View my questions with unaccepted answers Possible Duplicate:             What is correct? The jury was divided or The jury were divided? I am told that the latter is accurate because all of the jury do not have the same opinion in the particular case. Then, how does the subject verb agreement fit in 'The jury is still out' ? I mean, 'The jury is out' would allude to a situation were the opinion on a matter is (are?) still divided.