How do I find a function that is proportional to the definite integral of itself and a trigonometric function in a limited space?
If $f(x)=x-\int^{\frac{\pi}{2}}_0f(x)\sin(x)dx$ find the explicit function for $f(x)$ in its simplest form
Session ID from scheduled jobs Here's the scenario.  I have a remote application which is invoked from an HTTP callout.  In this callout, I am passing the session ID.  The application can then do its stuff without needing a username and password.  However, I want to be able to invoke the application from a scheduled job, and getsessionid() returns null in this case.  Is there any way around this?  I am trying very hard to avoid storing sfdc usernames and passwords on my remote server, and I want to avoid the hassle of using oAuth with all the complications of client secrets, etc. I know that it is defined such that there is no more than one y-value output for any given x-value input, but I"m wondering WHY it is defined that way? Why can't we apply everything we know about functions to equations that have more than one y-value output for any given x-value input?   In short, what is the benefit or reason to define a function this way?  At the same time, a little historical context would also be appreciated (i.e., when the concept originated and why).  Thanks,  Moshe jQuery/JavaScript: accessing contents of an iframe Tablet or Phone - Android How do I sudo a command in a script without being asked for a password? I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time:  os.system('sudo sh -c "echo date \'+%s\' -d \'+ \        24 hours\' &gt; /sys/class/rtc/rtc0/wakealarm"')   How can I run this script without sudo asking for the password every time? Internal microphone not working I have an internal microphone in my laptop. I think it uses Intel High Definition Audio. But I can't get it to work with Ubuntu. It doesn't work with either the Sound Recorder or Skype.  On the Input tab in 'Sound Preferences', I just see Internal Analog Input Device... Why do some badges appear white in color and others are dark? Console flashes on launching, then closes (ms-windows) How do i know which wheels will fit my bike? my bike is:  and everything I have came with the bike, only now the axle of the rear wheel bent and the skewer has lost its grooves.  and I would like to replace the rear wheel with the 12 x 142mm version of:   I want to reuse the old casettes and disc break. I was told to buy new rotor bolts, will these do?   Will I be able to migrate all my previous parts onto this new wheel and will the wheel fit onto my bike?  update: A replacement axle would be prefered. What axle would work for my bike? Colors and legend in groupplots/barplot In order to compare three items I use the groupplot command. For each item I have n different criteria to compare.    Is it possible to set the color for each criteria itself? Meaning the first bar in every group goes gray, the second pink etc.. The legend than should contain the n compared criteria.  And... how do I manage to let the whole tikz-picture have a width of 0.9\textwith  \documentclass{standalone} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{pgfplots.groupplots}  \pgfplotstableread{ nr  fii faa foo a   10  15  12 b   12  18  14 c   13  19  15 d   9   13  10 e   7   11  8 f   10  15  12 }\datatable  \begin{document} \begin{tikzpicture} \begin{groupplot}     [group style={columns=3},         ybar,         ymin=0,         ymax=20,         xtick=\empty,         tickpos=both]  \nextgroupplot[xlabel=fii] \addplot [fill=blue] table [x expr=\coordindex, y=fii] {\datatable}; \nextgroupplot[xlabel=faa] \addplot [fill=green] table [x expr=\coordindex, y=faa] {\datatable}; \nextgroupplot[xlabel=foo] \addplot [fill=red] table [x expr=\coordindex, y=foo] {\datatable};  \end{groupplot} \end{tikzpicture} \end{document} I was granted a visa to Australia few months ago. I’d like to travel to Australia in few days. However, I’ve just renewed my passport and I don’t have enough time to inform them about my passport renewal. Can I travel to Australia by carrying both my old and my new passports? Inform new users if they can upvote an answer they accepted I surprisingly often stumble upon answers which were accepted but clearly not upvoted by the asker. For example, the answer has not received any upvotes at all or the asker’s vote count is zero. While I acknowledge that , most such cases happen with new users, who have only recently received the privilege to vote and who upvote after a friendly reminder.  Given the anonymity of votes and that I do not check the asker’s profile for every question with an accepted answer I stumbled upon, I assume that there is a huge dark figure for this phenomenon. Also, I naturally most often spot this on my own answers, which makes reminding the asker of their privileges somewhat awkward.  I thus propose that users which accept an answer are reminded by a pop-up that they can upvote it, if:   They haven’t already upvoted it. They have the reputation required for voting. They have cast less than a handful of votes.   I consider the latter criterion to be better than an upper reputation for which the message is displayed, since I know at least one user with several thousand reputation points, who has cast much less upvotes or votes on answers than he has accepted answers on some sites (not that his acceptance rate or general feedback on answers is spectacular). How does the eye perform the equivalent of white balance? Possible Duplicate:          How does the eye perform the equivalent of white balance? Why is the camera not able to replicate it? How to resolve a Java Rounding Double issue Seems like the subtraction is triggering some kind of issue and the resulting value is wrong.  double tempCommission = targetPremium.doubleValue()*rate.doubleValue()/100d;   78.75 = 787.5 * 10.0/100d  double netToCompany = targetPremium.doubleValue() - tempCommission;   708.75 = 787.5 - 78.75  double dCommission = request.getPremium().doubleValue() - netToCompany;   877.8499999999999 = 1586.6 - 708.75  The resulting expected value would be 877.85.  What should be done to ensure the correct calculation? Add space between headings and body in the home of the iPad app It's a pain in the ass for me to quit the app, draw a red circle in another app and return to the app, so...    If you notice the three questions in the bottom, you will notice that the emboldened headings (New Answer, Comment) are stick to the next character. Imperfect.    App Version: 1.4.0.249 Device: iPad 2 (GSM) OS Version: Version 9.1 (Build 13B143) "It is to be discussed", what is the infinitive doing in this sentence? It is to be discussed.   Is be + infinitive forming the future tense here?      You are to be dressed and ready by 8:00.   I was thinking it's almost commanding (or speaking of a command) but this doesn't seem to be the case, as sentences like this are commanding without this structure:     You will be dressed and ready by 8:00.   or      You are going to be dressed and ready by 8:00.   And there's sentences like this that don't imply commandment in any way:     I am to go home tomorrow!   or     I am to be home tomorrow!   (Slightly different meaning, same general sentiment)  So what's going on with the be + infinitive structure? I am trying to create a low poly face with a face from a .png file. The issue is I already have material placed for hair and skin, as shown in the picture below.   I have created a .png file with a face which I would like to overlay over the skin material on the front of the head.    All examples I searched so far assume I also want the color of the material from the .png texture.  Update:  I added UVMapping, changed view to texture, made sure one face is on the eye but nothing is displayed..... see image... I don't know what is going on. How do I completely remove Ubuntu? Classes and lessons at Hogwarts are presumably scheduled at fixed times of day. The first class might start, for example at nine in the morning.  To be on time for one's lessons, it is therefore crucial to know the current time but we know that electric watches of course do not work at Hogwarts because of all the magical interference. Are there magic watches? Is there maybe a spell to tell the time?  How do people at Hogwarts usually tell the time? Show that $\{\cos\ n:n \in \mathbb{N}\}$ is dense in $[-1,1]$ by using the fact below:      Suppose $x$ is irrational. Then there exists $p_n,q_n \in \mathbb{Z}$   such that $\bigg|x -\frac{p_n}{q_n}\bigg| &lt; \frac{1}{q_n^2}$   I have no idea on how to apply the fact above to show the set is dense in $[-1,1]$. Can anyone help me?