Recently, I've been developing a scheduled apex class to send a csv file to an email. I was using the getContent method from a report page to achieve this. I was doing fine when executing it in anonymous window. But upon scheduling it, I discovered that getContent is considered as callout and cannot be used in scheduled apex. Do someone knows any work around for this without querying the records and putting it in string and converting it to blob? We still want to use the report that was created if possible. Thanks!
i have created a schedulable class which has to trigger a batch job. The run method for the batch class will get list of data to process from a webservice callout. Now, i got the exception below. Any suggestions please.     System.CalloutException: Callout from scheduled Apex not supported.   global class scheduledDeltaBatchable implements Schedulable {    global void execute(SchedulableContext sc) {     ID batchprocessid = BatchUpsertSAPCustomerMasterBPSync.run(SAPServices.GetSAPCustomerMasterBPSync('Delta'));    } }
Find the cardinality of the quotient of $\mathbb R$ in respect to R R is an equivalence relation defined as $xRy \Leftrightarrow a - b$ is an integer.  What is the cardinality of the quotient of $\mathbb R$ in respect to R? How would you prove it?  I thought about a bijection between $[0,1)$ to the quotient of $\mathbb R$ in respect to R, but can't figure out to prove it formally. What is the difference between weight and mass? What is the difference between the weight of an object and the mass of an object? I just heard about the . I'd like to update my firmware, but I don't use Windows/OSX. How can I find out what version of Intel ME I have and how do I update it? Does the  tag position in HTML affects performance of the webpage? How to install HPLIP on my Ubuntu to support my HP printer and/or scanner? Let's assume that one has some HP printer and/or scanner and checked its support status on the corresponding page of HPLIP site - .  So one have the following information: the device Model name, Min. HPLIP Version and Driver Plug-in need.   What should one install to make Ubuntu fully support the HP printer and/or scanner? What is the word for when someone is overly nice and actually isn't nice at all because of the unnecessary added information/comments? For example, they will say things like "Your hair looks so good that wayyyy omg you should do it that way ALL the time! Looks way better than how you usually do it." And the word I'm looking for is not passive aggressive and it is not sarcasm. There is a word for these types of people. What is it? These people think they're being kind but actually blunt and rude. Another example would be for someone to say "hey you're beautiful, but maybe if you didn't wear harsh makeup you would look better" and they intend to sound like they're being nice when you know they don't like you and are saying in out of spite. What is the procedure followed by game programmers for saving and resuming game state? like files/mappings. I want to save it for tower defense game and I am using unity3D game engine. Assume $\{a_n\}$is a sequence which  satisfies the following recursion formula: $$a_{n+1}=a_n+\frac{2a_{n-1}}{n+1}~(n\geqslant 1).$$ and $a_0=\pi,a_1=\pi^2 $. How to compute $\displaystyle\lim_{n\to \infty}\frac{a_n}{n^2}$? SEO regarding using separate  tags for the logo and website name Is is true &lt;h1&gt; tag should not have more than 1 on every page for SEO?   Every pages on the header, it includes and &lt;h1&gt; tag. Website Name which show an image from logo class, like this:  &lt;div id="header"&gt;   &lt;h1 class="logo"&gt;      &lt;a href="#"&gt;Website Name&lt;/a&gt;   &lt;/h1&gt; &lt;/div&gt;   and I also include &lt;h1&gt; on the contact page, help, etc and article page for example:  &lt;h1&gt;Contact Us&lt;/h1&gt; &lt;h1&gt;Name of the Article Title here&lt;/h1&gt;   On the homepage, it just has one &lt;h1&gt; for the logo Site Name... other pages have 2 &lt;h1&gt; tags Entire function problem: translation Libvirt: how to pass qemu command line args? I have the current libvirt 1.2.20 i want to pass to my machine create with virt-manager some qemu flags. I edited the file and add    &lt;/devices&gt;   &lt;qemu:commandline&gt;           &lt;qemu:arg value='-L pc-bios'/&gt;   &lt;/qemu:commandline&gt; &lt;/domain&gt;   But doesn't work i also tried to edit from virsh  virsh edit domain   and put   &lt;qemu:commandline&gt;           &lt;qemu:arg value='-L pc-bios'/&gt;   &lt;/qemu:commandline&gt;   But give me this error  errore: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng Element domain has extra content: qemu:commandline  Failed. Try again? [y,n,i,f,?]:    How to pass correctly qemu command line? Thanks In my device (iPhone 6, iOS v8.0.2, app v1.2.0.138) whenever I receive a notification and I tap it in order to open the application, the screen that is displayed is blank.  I need to quit the app, re-open it, go to my 'inbox' and tap the last notification in order to see the question screen, focused on the comment.  This is not new (for me) in v1.2.0.138; it has been happening for at least the last ~7 updates that I've done. Direct observations of a black hole? I'm not very knowledgeable about physics generally, but know that nothing can escape a black hole's gravitational pull, not even light (making them nearly invisible?).   My question is: What has been obtained from direct observation of a black hole to prove their existence? Please note that I'm not questioning the existence of black holes, but am just curious as to how we have come to realize it. I understand we cannot state with arbitrary precision the position and momentum of a micro-particle as we superpose infinite waves to create a wave packet at the exact position of the particle and hence cannot say which wave is corresponding to its momentum. This is theoretically said. Also some people say that measurement of one disturbs the other and some say it's reality.  Firstly, the theoretical explanation: why should I consider that a wave out of many superposed will give us the momentum or position? We might use another single wave which is not sine in nature and might get the results. Or why won't a single sine wave suffice? This all considers the micro-particle as wave because of de Broglie.  Secondly, the practical thing seems legit.  Thirdly, the electron must have some kinetic energy and position. It is who we are measuring and can't get it exact so why blame the electron as in theoretical concept. How we quantify the uncertainty, it must depend on the measuring device and various other factors.  I might need to edit this post based on your answer so that I can explain more clearly my thinking.  Edit: From here is what gets the measurement problem:        Text: Imagine that you're blind and over time you've developed a technique for determining how far away an object is by throwing a medicine ball at it. If you throw your medicine ball at a nearby stool, the ball will return quickly, and you'll know that it's close. If you throw the ball at something across the street from you, it'll take longer to return, and you'll know that the object is far away.   The problem i­s that when you throw a ball -- especially a heavy one like a medicine ball -- at something like a stool, the ball will knock the stool across the room and may even have enough momentum to bounce back. You can say where the stool was, but not where it is now. What's more, you could calculate the velocity of the stool after you hit it with the ball, but you have no idea what its velocity was before you hit it.   This is the problem revealed by Heisenberg's Uncertainty Principle. To know the velocity of a quark we must measure it, and to measure it, we are forced to affect it. The same goes for observing an object's position. Uncertainty about an object's position and velocity makes it difficult for a physicist to determine much about the object.   Edit: After seeing this answer one of my doubts is very well cleared, the other answers are also written and helpful:        Text: There is a definine velocity and momentum, we just don't know it.   Nope. There is no definite velocity--this was the older interpretation. The particle has all (possible) velocities at once;it is in a wavefunction, a superposition of all of these states. This can actually be verified by stuff like the double-slit experiment with one photon--we cannot explain single-photon-fringes unless we accept the fact that the photon is in "both slits at once".So, it's not a knowledge limit. The particle really has no definite position/whatever. Can someone please let me know the minimum system requirements and GPU requirement to run blender 2.80 and eevee smoothly?   Also please let me know the optimum system requirements for the purpose of    environment modeling Game development charachter modelling and animation   Also if someone can suggest me a good desktop/laptop for personal use that is compatible with blender 2.80 in a low budget.  Any help will be much appreciated.  Thanks in advance! Prove that $\mathrm{Res}[f/g,z_0]=\frac{f(z_0)}{g'(z_0)}$ I need to prove that if $f$ and $g$ are analytic in $D_r(z_0)$ and $g$ has a simple zero at $z_0$, then $$\mathrm{Res}[f/g,z_0]=\frac{f(z_0)}{g'(z_0)}$$   When $f(z_0)\neq 0$ and since $1/g$ has a simple pole at $z_0$ $$\mathrm{Res}[f/g,z_0]=\lim_{z\to z_0}(z-z_0)\frac{f(z)}{g(z)}=\frac{f(z_0)}{g'(z_0)}$$ But what do I need to do when $f(z_0)=0$? Any help will be appreciated thanks How do I get the UI thread's Dispatcher? What is a serialVersionUID and why should I use it? First week of August in Scotland : What kind of clothes to pack? In a couple of weeks I will be going to Edinburgh, Scotland. I've been told that the weather is very unpredictable throughout the year. Can you suggest what I should pack as regards clothes? Integration of $e^{ax}\cos bx$ and $e^{ax}\sin bx$ I am curious about the proof of these two integrations. It would be great if you could point me in the right direction : $ \int{e^{ax}\cos({bx})dx}= \dfrac{e^{ax}}{a^{2}+b^{2}}[a\cos(bx)+b\sin(bx)] + C $ &amp; $ \int{e^{ax}\sin({bx})dx}= \dfrac{e^{ax}}{a^{2}+b^{2}}[a\sin(bx)-b\cos(bx)] + C $