I am refreshing the primary tab after clicking on the update button.i am using the oncomplete function. on the command button oncomplete action is not working.  i have tried in the following way:   &lt;apex:commandButton action="{!calculateMilestone}" title="Submit" value="Update"       reRender="id1" status="loadStatus"  rendered="{!controls}"       oncomplete="testRefreshPrimaryTabById()"/&gt;
I want to refresh the entire service console on clicking of the save button on the visual force page. The button is an inline visual force page. Any ideas?  &lt;apex:includeScript value="/soap/ajax/26.0/connection.js"/&gt; &lt;apex:includeScript value="/support/console/26.0/integration.js"/&gt; &lt;script type="text/javascript"&gt; function focusAndSave() {     document.getElementById('focusMe').click(); }     &lt;/script&gt;     &lt;apex:form &gt;     &lt;apex:pageBlock id="pb"&gt;         &lt;apex:pageMessages id="errMsgsId"&gt;&lt;/apex:pageMessages&gt;         &lt;input type="text" id="focusMe" style="display:none" /&gt;         &lt;apex:pageBlockTable id="table" value="{!candidateMap}" var="c"&gt;             &lt;apex:column value="{!candidateMap[c].Contact__r.Name}"/&gt;             &lt;apex:column value="{!candidateMap[c].Submitted_at__c}"/&gt;             &lt;apex:column value="{!candidateMap[c].Interview_Availability__c}"/&gt;             &lt;apex:column value="{!candidateMap[c].Notice_Available__c}"/&gt;             &lt;apex:column headervalue="Stage"&gt;                 &lt;apex:outputfield value="{!candidateMap[c].Stage__c}"&gt;                     &lt;apex:inlineEditSupport event="ondblclick"/&gt;                 &lt;/apex:outputfield&gt;             &lt;/apex:column&gt;             &lt;apex:column headervalue="Ideally looking for"&gt;                 &lt;apex:outputfield value="{!candidateMap[c].Ideally_looking_for__c}"&gt;                     &lt;apex:inlineEditSupport event="ondblclick"/&gt;                 &lt;/apex:outputfield&gt;             &lt;/apex:column&gt;             &lt;apex:column headervalue="Action"&gt;                 &lt;apex:commandLink value="Save" action="{!saveCandidate}" rerender="errMsgsId,table" onclick="focusAndSave()" oncomplete="testGetFocusedPrimaryTabId()"&gt;                     &lt;apex:param name="candidateId" value="{!candidateMap[c].Id}" assignTo="{!candidateId}"/&gt;                 &lt;/apex:commandLink&gt;             &lt;/apex:column&gt;         &lt;/apex:pageBlockTable&gt;         &lt;apex:panelGrid columns="7" style="margin: 0 auto;"&gt;             &lt;apex:outputLabel value="{!noOfRecords} records found"&gt;&lt;/apex:outputLabel&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="|&lt;" action="{!first}" disabled="{!!hasPrevious}" title="First Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&lt;" action="{!previous}" disabled="{!!hasPrevious}" title="Previous Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&gt;" action="{!next}" disabled="{!!hasNext}" title="Next Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&gt;|" action="{!last}" disabled="{!!hasNext}" title="Last Page"/&gt;             &lt;apex:outputLabel value="Page {!pageNumber} of {!pagecount}"&gt;&lt;/apex:outputLabel&gt;         &lt;/apex:panelGrid&gt;     &lt;/apex:pageBlock&gt; &lt;/apex:form&gt;
Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.) Why is ${x^{\frac{1}{2}}}$ the same as $\sqrt x $?   I'm currently studying indices/exponents, and this is a law that I was told to accept without much proof or explanation, could someone explain the reasoning behind this.  Thank you. Proof that the One-Dimensional Simple Harmonic Oscillator is Non-Degenerate? The standard treatment of the one-dimensional  (SHO) using the raising and lowering operators arrives at the countable basis of eigenstates $\{\vert n \rangle\}_{n = 0}^{\infty}$ each with corresponding eigenvalue $E_n = \omega \left(n + \frac{1}{2}\right)$. Refer to this construction as the abstract solution.  How does the abstract solution also prove uniqueness? Why is there only one unique sequence of countable eigenstates? In particular, can one prove the state $\vert 0\rangle$ is the unique ground state without resorting to coordinate representation? (It would then follow that the set $\{\vert n \rangle\}_{n = 0}^{\infty}$ is also unique.)  The uniqueness condition is obvious if one solves the problem in coordinate representation since then one works in the realm of differential equations where uniqueness theorems abound. Most textbooks ignore this detail (especially since they often solve the problem both in coordinate representation and abstractly), however I have found two exceptions:   Shankar appeals to a theorem which proves one-dimensional systems are non-degenerate, however this is unsatisfactory for two reasons:   Not every one-dimensional system is non-degenerate, however a general result can be proven for a large class of potentials (the SHO potential is in such a class). The proof requires a departure from the abstract solution since it classifies the potentials according to their functional properties.  Griffiths addresses this concern in a footnote stating that the equation $a \vert 0\rangle = 0$ uniquely determines the state $\vert 0\rangle$. Perhaps this follows from the abstract solution, however I do not see how. How can I use an array modifier to create individually manipulatable objects? How do I log all input and output in a terminal session? How do I keep logs of all the work done via terminal? For example, I want a record of all the work done on database via terminal. Indicate How Trustworthy the UpVotes Are Text Distortion Effect (like it is written on a page) I want to display a text like it is written on some surface like notebook page or wall via Photoshop CS6. I added two example.   This image seems like image distortion:    And this image looks like text distortion:    I tried this with distort and skew transformation but I'm unable to get this much clear &amp; real effect. In Russian we have idiom/saying "To shoot out of cannon into sparrows" (literal translation) which is used to convey an idea of applying too drastic measures to small problems. I believe there should be some native-English equivalents to this saying. Can you share if there are any? Why should we typedef a struct so often in C? Is FFmpeg missing from the official repositories in 14.04? I tried to install ffmpeg in trusty/Ubuntu 14.04 and got the following message:  $sudo apt-get install ffmpeg  Reading package lists... Done Building dependency tree        Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'ffmpeg' has no installation candidate   Why isn't the package available? How can I automatically save screen shots by the press on the Prt Scr button? I want a screen shot to be saved automatically to a location I specify, as soon as I press the Prt Scr button on my keyboard, or the Alt+Prt Scr combo. I also want the date and time to be used as file name for each new screen shot. And I want the files to be saved as PNG images.  Is there a Windows program that would allow me to do just this? I don't want any other fancy features like editing and making notes, etc. just a plain simple program that will either automatically save the screen shots to a pre-set location or prompt me where I want to save it. I don't want to go through MS Paint to save the shots.  I guess what I'm after is a little bit of Linux behavior of Print Screen, but only for Windows. And I additionally want the files to be named by the date and time they were taken.  Update:  Meanwhile, I have found one called Greenshot. But I don't know how to get the file name pattern right.  This is the default pattern.  ${capturetime:d"yyyy-MM-dd HH_mm_ss"}-${title}   Can someone explain this? Why do they have the title capturetime and the quotation marks? It produces file names like this.  2013-01-26 15_24_28-Greenshot.png   And this is what it says about the file patterns in the program description.  ${YYYY} year, 4 digits ${MM} month, 2 digits ${DD} day, 2 digits ${hh} hour, 2 digits ${mm} minute, 2 digits ${ss} second, 2 digits ${NUM} incremental number, 6 digits ${title} Window title ${user} Windows user ${domain} Windows domain ${hostname} PC name   How do I get files that include year, month and day, separated by a dash, followed by hour, minute and second? I want to include a time for uniqueness of the file name. Prove convergence of the sequence $(z_1+z_2+\cdots + z_n)/n$ of Cesaro means Prove that if $\lim_{n \to \infty}z_{n}=A$ then:  $$\lim_{n \to \infty}\frac{z_{1}+z_{2}+\cdots + z_{n}}{n}=A$$ I was thinking spliting it in: $$(z_{1}+z_{2}+\cdots+z_{N-1})+(z_{N}+z_{N+1}+\cdots+z_{n})$$ where $N$ is value of $n$ for which $|A-z_{n}|&lt;\epsilon$ then taking the limit of this sum devided by $n$ , and noting that the second sum is as close as you wish to $nA$ while the first is as close as you wish to $0$. Not sure if this helps.... How can I figure out what's slowly eating my HD space? Every few days I get notices on my MacBook that it's running or run out of hard drive space. Curiously, restarting the computer will enable me to recover gigabytes of space (this past time, it was able to recover about 2.2GB). However, I can't identify anything in my personal activity that consumed that space.  It's possible that it's a rogue iTunes podcast or a huge software update that my Mac is automatically downloading - would either of these reclaim the space upon a restart?  One possibility that I can think of is that FileVault has some sort of disk leak, allocating but not freeing files. Does this make sense? Is there a tool that I can run to determine where this space is going? Assuming it is FileVault, should I try to disable it? What's the best way to turn of FileVault on a nearly full computer? Is it acceptable to change the vid column of a term programmatically in the database? I need to move some terms from one vocabulary to another by retaining all their data: translations, aliases, and node references.  Is it acceptable to change its vid column value directly in the database? The terms don't have hierarchy relationships which needs to be handled. Batch processing LiDAR files (.las to raster) with PyQGIS? for layers in glob.glob("*.las"):         processing.runalg("grass7:r.in.lidar", "input_las",5,1,"",1,100,"","",5,"","",False,True,True,"331289.57265,337990.42735,4558790.0,4560890.0",0,layers+"E:/las_new/.tif")      {'output': 'PNOA_2016_CAT_huso31_346-4560.lasE:/las_new/.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4562.lasE:/las_new/.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4564.lasE:/las_new/.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4566.lasE:/las_new/.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4568.lasE:/las_new/.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4570.lasE:/las_new/.tif'}   output_ras=("E:/las_Ras")   for layers in glob.glob("*.las"):     processing.runalg("grass7:r.in.lidar", "input_las",5,1,"",1,100,"","",5,"","",False,True,True,"331289.57265,337990.42735,4558790.0,4560890.0",0,layers+"output_ras.tif")      {'output': 'PNOA_2016_CAT_huso31_346-4560.lasoutput_ras.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4562.lasoutput_ras.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4564.lasoutput_ras.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4566.lasoutput_ras.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4568.lasoutput_ras.tif'}   {'output': 'PNOA_2016_CAT_huso31_346-4570.lasoutput_ras.tif'}     for layers in glob.glob("*.las"):     processing.runalg("grass7:r.in.lidar", "input_las",5,1,"",1,100,"","",5,"","",False,True,True,"331289.57265,337990.42735,4558790.0,4560890.0",0,"output_ras.tif")      {'output': 'output_ras.tif'}   {'output': 'output_ras.tif'}   {'output': 'output_ras.tif'}   {'output': 'output_ras.tif'}   {'output': 'output_ras.tif'}   {'output': 'output_ras.tif'}   I would like to batch process many LAS files to rasters using the PyQGIS algorithm. As you can see in the code, I think the final problem is with the output. It does not write the files out to my defined output pathway as tif files. Also how can I make sure the naming of output rasters are according to the original LAS they are generated from? What am I doing wrong here? Not a pro at Python. Started 3 days ago. Unable to install "": snap "" has "install-snap" change in progress If I recall it correctly, this book has two main characters, both male, one of them big and well muscled. During the novel, they found evidence that the current human race descends from ancient Martian astronauts who traveled to Earth in prehistory, causing the extinction of prehistoric Earth humans, (which explains the Missing Link in human evolution).  Later in the novel the big guy travels back in time (no idea of how or why) to Prehistory.  And near the end of the book, the other main character, during an archaeological field research, finds remains of a human being who lived thousand of years ago, a human with large bones, and who holds an item that could not be made in that era (a gold plaque? A metal rod?)  That's all I can remember. I know it is not from the ABC, Asimov, Bradbury or Clarke.  Thanks in advance. $X$ and $Y$ i.i.d., $X+Y$ and $X-Y$ independent, $\mathbb{E}(X)=0 $ and $\mathbb{E}(X^2)=1$. Show $X \sim N(0,1)$ $X$ and $Y$ are independent and identically distribued (i.i.d.), $X+Y$ and $X-Y$ are independent, $\mathbb{E}(X)=0$ and $\mathbb{E}(X^2)=1$. Show that $X\sim N(0,1)$.  We should use characteristic functions to prove this. Any ideas? Which is correct: I'll be moving next month or I'll be shifting next month? What exactly are censored data? I have read different descriptions of censored data:  A) As explained in  thread, unquantified data below or above a certain threshold is censored. Unquantified means data is above or below a certain threshold but we do not know the exact value. Data is then marked at the low or high threshold value in the regression model. It matches the description in this , which I've found very clear (2nd slide on first page). In other words $Y$ is capped to either a minimum, a maximum value or both because we do not know the true value outside of that range.   B) A friend told me that we can apply a censored data model to partially unknown $Y$ observations, provided we have at least some limit information about the unknown $Y_i$ outcomes. For example, we want to estimate the final price for a mix of silent and open auctions based on some qualitative criteria (type of goods, country, bidders wealth, etc.). While for the open auctions we know all final prices $Y_i$, for the silent auctions we only know the first bid (say, $1,000) but not the final price. I was told that in this case data is censored from above and a censored regression model should be applied.  C) Finally there is the definition given by the  where $Y$ is missing altogether but the predictors are available. I'm not sure how this example is different from truncated data.  So what exactly are censored data?