My function to clear the results of search, works in Chrome, IE, ME, but, in Firefox doesn't works.    My action function:  &lt;apex:actionFunction name="callClean" action="{!cleanResults}" reRender="pageblockid" /&gt;`   My class:  public void cleanResults(){         integer deleteRegistros = registro.size();         if(deleteRegistros != 0){             for(integer i=0; i &lt; deleteRegistros; i++){                 registro.remove(0);             }         }     }`
I want to clear the inputtext used to search, and clear all search results using a commandbutton. I tried the following on the 'Reset' button I added but it only clears the inputtext and the search results are not clearing.  &lt;apex:pageBlockSectionItem &gt;                     &lt;apex:outputPanel layout="block" Rendered="true"&gt;                     &lt;apex:inputText value="{!ReportSearchString}" /&gt;                     &lt;apex:commandButton value="Search" action="{!searchReports}" reRender="ReportSearchResults, "/&gt; &amp;nbsp;&amp;nbsp;                      &lt;apex:commandButton value="Back" action="{!BackToCreateFeedPage}"/&gt;&amp;nbsp;                     &lt;apex:commandButton value="Reset" onclick="this.form.reset();return false;"/&gt;                     &lt;/apex:outputPanel&gt;                 &lt;/apex:pageBlockSectionItem&gt;                             &lt;/apex:pageBlockSection&gt;                         &lt;apex:pageBlockSection id="ReportSearchResults"&gt;                 &lt;apex:outputText value="{!warningMessage}" rendered="{!!showTable}" /&gt;                 &lt;apex:pageBlockTable value="{!reportList}" var="item" rendered="{!showTable}"&gt;                     &lt;apex:column headerValue="Report Name" &gt;                         &lt;apex:commandLink value="{!item.Name}" action="{!BackToCreateFeedPage}"&gt;                             &lt;apex:param value="{!item.Id}" name="SelectedReport" assignTo="{!selectedReportId}" /&gt;                         &lt;/apex:commandLink&gt;   This is my search function, it works fine. I need to clear the results of this search on clicking 'Reset' button.   public void searchReports()     {         showTable = false;               reportList = new List&lt;Report&gt;();          reportSearchResult = new Map&lt;Id, Report&gt;();          selectedReport = new Report();         if((ReportSearchString != null &amp;&amp; ReportSearchString != '') &amp;&amp; ReportSearchString.length() &gt;= 3)         {             reportSearchResult = new Map&lt;Id, Report&gt;([Select Id, Name From Report Where Name Like :'%'+ReportSearchString+'%' limit 2000]);              warningMessage = 'No Result Found';         }         else         {             warningMessage = 'Search text should have atleast 3 characters';         }     }
How to resolve Google "Indexed, though blocked by robots.txt" So I need to find the Convergence Radius and Convergence Domain of the complex power series: $\sum\limits_{n=0}^\infty \frac{1}{2^{n}} z^{2^n}$  I've tried looking at the individual parts of the series and rewriting it somehow but couldn't find a way.  It can probably be solved, after a step or two, by the formula $R=\frac{1}{\displaystyle\limsup_{n\rightarrow \infty}\sqrt[n]{|a_n|}}$ .  Thanks. iCloud Drive is stuck uploading items and no longer syncs I got the macOS Sierra update when it went into public beta, and I've been trying to use the automatic .  I've enabled the feature, however since September 7 no files have been uploaded. By this point, the bottom of my Finder windows say:     15.78 GB available on iCloud, uploading 156,106 items (543.2 MB of 543.2 MB)   However the files are never actually uploaded. I keep my screenshots folder on my desktop and I take a lot of screenshots, so I can see that September 7 was the last date any file was actually uploaded.  What should I do? Is there a way I can disable and re-enable the feature without risking loss of data? Are there any solutions to this problem? What should I try? So far I've tried rebooting, and tried software update to macOS 10.12.2 public beta. Prove that $ n^3 + 5n$ is divisible by 6 for all $n\in \textbf{N}$ Prove that $ n^3 + 5n  $ is divisible by 6 for all $ n \in \textbf{N} $.  I provide my proof below. When creating presentations in , those little symbols that you can click on and will take you to different parts of your presentation are automatically included on your slides.  I don't like that, but decided not to try and change it for now. The problem is that when I gave my presentation to my supervisor to revise, the first thing he did was cross the symbols out in red, meaning: take this out!  What should I do? Is there an easy command to get rid of those symbols or do I have to change the theme of my presentation to get rid of the symbols? "Didn't use to get" or "Didn't used to get"? I just made a minor , and  the grammar correction was unnecessary.  The original text was     Another factor--sometimes life happens and you can't fly. In the old days you could simply sell your ticket to someone else, now you either have to eat a hefty change fee or lose it outright. That's money in their pockets that they didn't used to get.   It was corrected to:     Another factor--sometimes life happens and you can't fly. In the old days you could simply sell your ticket to someone else, now you either have to eat a hefty change fee or lose it outright. That's money in their pockets that they didn't use to get.    Was this grammatical correction an improvement? Was the original text grammatically correct? Is the edited text grammatically correct? Right-click on Touchpad not working after update to 18.04 LTS I have a Lenovo Yoga 910-13IKB. I was running Ubuntu 17.10 with no issues. I upgraded to 18.04 LTS and now my right-click on my touchpad does not register. I can only left-click.  I already tried the steps listed , but they did not fix the issue.  Does anyone know how to fix this?  Thanks. How to remove enamel from wire? I have QGIS 1.8.0 installed via OSGeo Installer and work on win 7. All I need is to upload the shapefile to the database via this plugin. Unfortunately I am receiving an error:  Something's wrong: ["'shp2pgsql' is not recognized as an internal or external command,\n", 'operable program or batch file.\n']   How to install and configure shp2pgsql to make this plugin work fine? Performance differences between pipelines and process substitution I tend to use pipelines in my bash scripts over process substitution in most situations, especially in cases of using multiple sets of commands as it seems more readable to do ... | ... | ... over ... &lt; &lt;(... &lt; &lt;(...)).  I'm wondering though why using process substitution is much faster in some situations than using a pipeline.  To test this, I timed two scripts using 10000 iterations of the same attached commands with one using a pipeline and another using process substitution.  Scripts:  pipeline.bash:  for i in {1..10000}; do     echo foo bar |     while read; do         echo $REPLY &gt;/dev/null     done done   proc-sub.bash  for i in {1..10000}; do     while read; do         echo $REPLY &gt;/dev/null     done &lt; &lt;(echo foo bar) done   Results:  ~$ time ./pipeline.bash  real    0m17.678s user    0m14.666s sys     0m14.807s  ~$ time ./proc-sub.bash  real    0m8.479s user    0m4.649s sys     0m6.358s   I know that pipelines create a sub process whereas process substitution creates a named pipe or some file in /dev/fd, but am unclear about how those differences impact performance. Why doesn't `sudo cd /var/named` work? Example code required for how to access embedded .Net image resources in C# It's very easy to mark an image file to become an embedded resource however how does one access the image thereafter. Please can I have some example code? Evolutionarily speaking, why do humans have 46 chromosomes Add the ability to lock a question against edits What are sentences like "the longer X, the more Y" called and can they be used in formal written English? What is the type of sentence exemplified below called? Is it appropriate to use it in a scientific paper and formal written English in general?     1. The more pronounced the variation, the   more the waste.      2. The more you give, the more you get.      3. The longer I live, the more I realize the impact of attitude on life. Why does gulp.src not like being passed an array of complete paths to files? Conic in projective plane isomorphic to projective line I've got to show that any irreducible conic in $\mathbb{P^2(\mathbb{K})}$ where $\mathbb{K}$ is algebraically closed is isomorphic as a quasiprojective variety to the projective line. I wrote the conic as equivalent to the zero locus of $ x^2 +y^2+z^2$ in $\mathbb{P^2(\mathbb{K})}$. I tried to use the standard affine charts to cover this simpler variety and parametrize it but i didn't manage to do that. What am i missing? Proof that the irrational numbers are uncountable Can someone point me to a proof that the set of irrational numbers is uncountable? I know how to show that the set $\mathbb{Q}$ of rational numbers is countable, but how would you show that the irrationals are uncountable? How to Map a subset of list elements to a function? Install Java JDK and JRE on Debian 8 I installed Debian 8, I would like to install Java JRE and JDK. I use  and it works.  But, I am afraid because it's a script hosted in a repository. I would like to understand why it doesn't work when I put the extract of  in /usr/java/jre1.8.0_73 directory as . I added the path variable with PATH=/usr/local/jdk1.8.0/bin:$PATH export PATH as explained in  but it doesn't work.  Even if I try to install OpenJDK, the package isn't found. I don't understand why it's so complicated to install Java on Debian; it is very simple on Ubuntu. I would like someone give me step-by-step instructions to install it.