I have VF page with renderAs = PDF.  I want to display a chart on that PDF?  I have tried  and   but these only works on HTML, not in renderAs = PDF.  Thanks in advance.
I'm working on a custom report (Visual Force) to generate specific charts(using apex:radar chart) to our client. The problem is that we have to export the information to PDF format. Using the technique of include "renderAs" property on APEX tag, the PDF is generated but the chart isn't included on the PDF and the apex tags, used to show detailed information in a table, seem to be unconfigured. Have anyone ever faced this kind of problem?     Thank you!
let's imagine i am at school with an android phone. I have a computer at home and that computer has a virtual machine working on it. here is the scenario, client and virtual client has ssh-client and ssh-server both and they can communicate each other in the local network.  when i want to connect to my virtual client from school by android phone through internet there must be an ip address.  the problem is virtual machine and client has the same public ip. so how do i connect one of the two machines? Create Trigger that updates the same table before (or after ??) the Insert I have just started using triggers and one thing that I would need to do is to create a trigger that updates the same table that's inserting the row.  TABLE:  CREATE TABLE `city` (   `city_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,   `city` varchar(50) NOT NULL,   `country_id` smallint(5) unsigned DEFAULT '0',   `country` varchar(150) DEFAULT NULL,   `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,   PRIMARY KEY (`city_id`),   KEY `idx_fk_country_id` (`country_id`),   CONSTRAINT `city_ibfk_1` FOREIGN KEY (`country_id`) REFERENCES `country` (`country_id`) ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=6009 DEFAULT CHARSET=utf8;   Trigger:  DELIMITER $$ CREATE TRIGGER `populate_country_id` BEFORE INSERT ON `city` FOR EACH ROW BEGIN  IF NEW.country_id = 0  THEN     UPDATE city     INNER JOIN country B ON city.country = B.country     SET NEW.country_id = B.country_id;  END IF;  END $$ DELIMITER ;   MySQL is just returning: Can't update table 'city' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.  Is there any way I can make this work?  Thanks everyone! Mid 2012 MBP shuts down claiming no power with charge at 30% or 40% or more I have two mid 2012 MBPs. Sometime last year they both started randomly shutting down and showing the 'please plug me in to power' image when trying to start them up. That would be fine if the batter was at 1% or less but this happens when the battery is at anywhere from 30% to as high as 48% full. The power cycle info says 500 cycles or so. Both of them do this. They are both patched current, always. I asked Apple they suggested NVRAM PRAM and SMC reset, as expected, which had no effect. Any ideas? Did not receive site association bonus (+100 rep) Determine accuracy of model which estimates probability of event What is this glass bulb with two parallel electrodes on my PCB? More than one optional argument for newcommand The \newcommand macro allows to use an optional argument for the first parameter #1 with:  \newcommand{\mycommand}[3][defaultfor1]{blah blah blah}   Is it possible to have more than one option with \newcommand? Do rogues get sneak attack damage added to attacks made outside their turn? PHB says 'once per turn,' so, it would seem that a Rogue with Sentinel, for example, could "consistently" deal Sneak attack twice per round (whether the enemy triggers an OA or the melee weapon attack provided by the Feat).  So, can rogues deal sneak attack damage with any weapon attack outside their turn? (obv. one that meets the standard requirements--finesse, adv or adj ally) Let $f \in C [a,b]$ such that $\forall x\exists y$ such that $|f(y)| \leq \frac{1}{2}|f(x)|$. Prove that $\exists c\in [a,b]$ such that $f(c) = 0$. Ignore citations in captions in list of figures when numbering How to randomize (shuffle) a JavaScript array? What details should a good cover letter contain to back up a UK Visit Visa application? The help pages in R assume I know what those numbers mean, but I don't. I'm trying to really intuitively understand every number here. I will just post the output and comment on what I found out. There might (will) be mistakes, as I'll just write what I assume. Mainly I'd like to know what the t-value in the coefficients mean, and why they print the residual standard error.   Call: lm(formula = iris$Sepal.Width ~ iris$Petal.Width)  Residuals:      Min       1Q   Median       3Q      Max  -1.09907 -0.23626 -0.01064  0.23345  1.17532    This is a 5-point-summary of the residuals (their mean is always 0, right?). The numbers can be used (I'm guessing here) to quickly see if there are any big outliers. Also you can already see it here if the residuals are far from normally distributed (they should be normally distributed).  Coefficients:                  Estimate Std. Error t value Pr(&gt;|t|)     (Intercept)       3.30843    0.06210  53.278  &lt; 2e-16 *** iris$Petal.Width -0.20936    0.04374  -4.786 4.07e-06 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1    Estimates $\hat{\beta_i}$, computed by least squares regression. Also, the standard error is $\sigma_{\beta_i}$. I'd like to know how this is calculated.  I have no idea where the t-value and the corresponding p-value come from. I know $\hat{\beta}$ should be normal distributed, but how is the t-value calculated?  Residual standard error: 0.407 on 148 degrees of freedom   $\sqrt{ \frac{1}{n-p} \epsilon^T\epsilon }$, I guess. But why do we calculate that, and what does it tell us?  Multiple R-squared: 0.134,  Adjusted R-squared: 0.1282    $ R^2 = \frac{s_\hat{y}^2}{s_y^2} $, which is $ \frac{\sum_{i=1}^n (\hat{y_i}-\bar{y})^2}{\sum_{i=1}^n (y_i-\bar{y})^2} $. The ratio is close to 1 if the points lie on a straight line, and 0 if they are random.  What is the adjusted R-squared?  F-statistic: 22.91 on 1 and 148 DF,  p-value: 4.073e-06    F and p for the whole model, not only for single $\beta_i$s as previous. The F value is $ \frac{s^2_{\hat{y}}}{\sum\epsilon_i} $. The bigger it grows, the more unlikely it is that the $\beta$'s do not have any effect at all. Did the date of Frodo's rescue out of the fire of Mordor have any particular meaning in The Lord of the Rings? Did the date of Frodo's rescue out of the fire of Mordor have any particular meaning in The Lord of the Rings?  We read in The Return of the King (Book 6 Chapter 4) that Gandalf states to Frodo and Sam:     The fourteenth of the New Year, or if you like, the eighth day of April in the Shire reckoning. But in Gondor the New Year will always now begin on the twenty-fifth of March when Sauron fell, and when you were brought out of the fire to the King.   Did Tolkien have any particular reason for choosing this date for Sauron's fall and Frodo's rescue out of the fire of Mordor, either allegorically or otherwise?  We are aware that Tolkien was not a fan of , but preferred the term applicability instead. The extension of smooth function If $U$ is a bounded domain in $\mathbb R^n$ whose boundary is smooth, and $f$ is a smooth function on $U$ whose partial derivatives of all orders have a continuous extensions to $\bar U$. For an arbitrary domain $V \supseteq \bar U$, is there a smooth function $\tilde f$ on $V$ extending $f$? Here's the context       "Her heart leaping into her throat, she tiptoed into the salon. Such was her astonishment at seeing Mike chatting with her boss that she leaned against the wall, incapable of making another move."   Is this a phrase or what? Could it be used in other forms as well? Induced metric on a null hypersurface Consider a metric $g_{\mu\nu}(x)$ and a hyper surface ${\cal H}$ defined by $~f(x) = c$. One (or at least I) usually finds the "induced metric" on ${\cal H}$ by solving$~f(x) = c$ for one of the coordinates and plugging it back into the metric to give us $\gamma_{ij}$. For null hypersurfaces, I seem to be finding that the resultant induced metric is singular.         Is it true in general that the induced metric as defined above is singular on a null hypersurface?   How does one define the induced metric on a null hypersurface? Diagnostics for logistic regression? Removal of statistically significant intercept term increases $R^2$ in linear model In a simple linear model with a single explanatory variable,  $\alpha_i = \beta_0 + \beta_1 \delta_i + \epsilon_i$  I find that removing the intercept term improves the fit greatly (value of $R^2$ goes from 0.3 to 0.9). However, the intercept term appears to be statistically significant.  With intercept:   Call: lm(formula = alpha ~ delta, data = cf)  Residuals:      Min       1Q   Median       3Q      Max  -0.72138 -0.15619 -0.03744  0.14189  0.70305   Coefficients:             Estimate Std. Error t value Pr(&gt;|t|)     (Intercept)  0.48408    0.05397    8.97   &lt;2e-16 *** delta        0.46112    0.04595   10.04   &lt;2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 0.2435 on 218 degrees of freedom Multiple R-squared: 0.316,    Adjusted R-squared: 0.3129  F-statistic: 100.7 on 1 and 218 DF,  p-value: &lt; 2.2e-16    Without intercept:   Call: lm(formula = alpha ~ 0 + delta, data = cf)  Residuals:      Min       1Q   Median       3Q      Max  -0.92474 -0.15021  0.05114  0.21078  0.85480   Coefficients:       Estimate Std. Error t value Pr(&gt;|t|)     delta  0.85374    0.01632   52.33   &lt;2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 0.2842 on 219 degrees of freedom Multiple R-squared: 0.9259,   Adjusted R-squared: 0.9256  F-statistic:  2738 on 1 and 219 DF,  p-value: &lt; 2.2e-16    How would you interpret these results? Should an intercept term be included in the model or not?  Edit  Here's the residual sums of squares:  RSS(with intercept) = 12.92305 RSS(without intercept) = 17.69277 I am having difficulty with this proof. I have previously proved that for an automorphism on the extension field $K$ of $F$ that when restricted to $F$ is the identity automorphism must take roots of $f(x)\in F[x]$ in $E$ to roots of $f(x)$ in $E$. I was thinking of using the minimal polynomial $x^{3}-2\in\mathbb{Q}[x]$ and the result of previous problem I solved, but I suspect there are automorphisms that don't fix the subfield, so the result can't be used or I need to prove that any automorphism of an extension field must fix the subfield that is being extended or always sends roots in $E$ to roots in $E$.  I am not asking for a solution to this, but maybe a hint or pointer in the right direction. This problem is introduced in the text prior to Galois theory, so please keep that in consideration.