if statement calling functions and improper result
Brackets in if condition: why am I getting syntax errors without whitespace?
I cannot submit my answer to    I am aware that my reputation is low. Also, spam posting is discouraged.  My answer includes a compilation of Android graphing libraries, with links, so fellow hackers do not have to Google each and every one of them.  I believe this answer is superior to the current answers, because it is updated to 03/2012 and covers more than 90% of all Android charting libraries.  How can I post the answer, or how can I increase my reputation without being able to post quality answers? The old school websites included just a bunch of links to other places, I am an old man!  Alternative solution would be to blog it, and just post a link to my blog, which is not optimal. Installation of latest version R for linux First I typed  sudo gedit /etc/apt/sources.list   after that I got one sources list then I typed  deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/   then I get the error like this  No command 'deb' found, did you mean:  Command 'derb' from package 'icu-devtools' (main)  Command 'deb3' from package 'quilt' (main)  Command 'debc' from package 'devscripts' (main)  Command 'dwb' from package 'dwb' (universe)  Command 'xdeb' from package 'xdeb' (universe)  Command 'debi' from package 'devscripts' (main)  Command 'dab' from package 'bsdgames' (universe) deb: command not found   How should I proceed? How do I move a line in a text file up or down by one line? Rice with worm and possibly their eggs I bought a bag of brown rice from a store. After having opened and used for a while, I found there were moths flying in the house. At the same time, I found worms in the rice. I suspect that the moths are from the worms(rice-size, white body, dark head). I guess but am not sure if they are called rice moths. There were also many little sand-like things in the rice bag, are they the eggs of the rice moths?  Will eating this infested rice pose a health risk? I am trying to find duplicate accounts in the system and trying to merge them based on our filter criteria using apex. The issue is I am hitting the governor limit of 150 DML statements while doing this.  We will have to put the merge statement inside the loop as we need the parent and child as the parameters in the merge statement. I don't think we can bulkify Merge like other DML statements due to the above reason. I am not sure if there is any better way to do it and avoid hitting governor limits.  Any help in this regard would be greatly appreciated.  Code that I have tried is included below  global class LoyaltyAccountBatch implements Database.batchable&lt;sObject&gt;{        global Database.QueryLocator start(Database.batchableContext info){           String query;         query = ('SELECT  Id FROM  LoginHistory LIMIT 1');          return Database.getQueryLocator(query);    }       global void execute(Database.batchableContext info, List&lt;LoginHistory&gt; scope){             // Get those records based on the IDs         List&lt;Account&gt; templst1 = [SELECT Id,UniqID from account where createddate = LAST_N_DAYS:4 and UniqID &lt;&gt; ''];             system.debug('templist is '+templst1);               Set&lt;String&gt; insertedRecords = new Set&lt;String&gt;() ;         for (Account a : templst1)  {         insertedRecords.add(a.UniqID);     }                 List&lt;Account&gt; templst = [SELECT Id,UniqID from account where NewUniqID IN : insertedRecords                                   order by NewUniqID,UniqID asc];         // Process records          for(integer i=0;i+1&lt;templst.size();i++)          {             if(templst[i].UniqID &lt;  templst[i+1].UniqID)                     {                 system.debug('ids are '+templst[i].UniqID+'--&gt;'+templst[i+1].UniqID);                 String str = '1'+templst[i].UniqID.substring(1,templst[i].UniqID.length());                 String str1 = '1'+templst[i+1].UniqID.substring(1,templst[i+1].UniqID.length());                 system.debug('str is'+str);                 system.debug('str1 is'+str1);                 if(str.equals(str1))                 {                     Merge templst[i+1] templst[i];                     system.debug('value of i is'+i);                 }              }         }        }          global void finish(Database.batchableContext info){         }   } What is NDSolve`FEM`*? I've noticed the following happen a few times:   A user posts a question. The question is closed as a duplicate and the usual "Possible Duplicate" links are added at the top. The user promptly removes the duplicate links, even though the question is still closed as a duplicate. (excessive use of list items =P)   Now, I could understand this behavior if there was some dispute about whether or not the question was a duplicate, and the OP were to remove the links and post reasons why they disagree with the closing. However, I've noticed this happening without any attempt to defend the question (such as ).  In my opinion, no one should be allowed to remove the "Possible Duplicate" links as long as the question is still closed as a duplicate. The links should remain for the benefit of the community, so they can navigate to the duplicate questions and either post answers there or read them over and judge if the closing was actually fair. Once/if the question is reopened the links could be edited out if one so chooses.  I guess this is part discussion, part feature request:  Could the "Possible Duplicate" links remain un-editable for as long as the question is still closed? How do I escape a backtick ` within in-line code in Markdown? How do I escape a backtick ` within a code block?  This is probably a duplicate, since I'm sure it's a common concern, but I can't find a question that addresses this specifically.  How do I write List'1 with the "1" character still in the code-text format? I am studying statistics and I am wondering when it comes to standard error or a sampling if the calculation changes when there are weights added.   I have a weighted mean:  $$\mu_{w} = \dfrac{\sum_{i=1}^Nw_ix_i}{\sum_{i=1}^Nw_i}$$ and a weighted variance calculated by:  $$s^2_{w}=\dfrac{\sum_{i=1}^Nw_i}{(\sum_{i=1}^Nw_i)^2-\sum_{i=1}^Nw_i^2}\cdot \sum_{i=1}^N(x_i-\mu)^2$$  is the sampling error still calculated as  $$\text{SE}=\sqrt{\dfrac{s^2_{w}}{n}}$$ Compare classifiers based on AUROC or accuracy? I have a binary classification problem and I experiment different classifiers on it: I want to compare the classifiers. which one is a better measure AUC or accuracy? And why?  Raondom Forest: AUC: 0.828  Accuracy: 79.6667 %            SVM: AUC: 0.542  Accuracy: 85.6667 % I think the term "back and forth" gets thrown around a lot without much thought.  From Dictionary.com:         [fawrth, fohrth]      adverb    1.  onward or outward in place or space; forward: to come forth; go forth.   Wouldn't the term be more meaningful if "forth" was used first since you have to have a starting place before you can go "back"?  Examples:        I've been going back and forth from Houston to New York.   I've been going forth and back from Houston to New York.      Which is more correct? I need to get a nice picture about how electron moves around nucleus? I find concept of probability and orbitals quite difficult to understand? Guarding against cryptanalytic breakthroughs: combining multiple hash functions Is space expanding equally in every direction? Does space expand equally in every direction, so that it draws a perfect sphere or is expansion asymmetric, so it creates "bubbles" (when seen from the outside)? How to prevent search engines from indexing a single page of my website? This option seems to have gone away after upgrading from Ubuntu 16.04. I tried installing nautilus-open-terminal but it is unable to locate the package for 18.04. Also trying to install nautilus-actions gives:  Package nautilus-actions 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     How to fix this? Why are so many forces explainable using inverse squares when space is three dimensional? Resizing an Image without losing any quality I am looking for a novel that I'd love to re-read it with my wife (my 13-year old self must be proud of me I guess). Key Plot points The plot was about humanity finding an alien station on an orbit of Earth. (I'm not sure if it wasn't Moon itself). On this station there were thousands of ships ready to travel so there rose a company that paid people to get on those ships and explore the galaxy. The problem was humans didn't understand how to steer those ships so they had to rely on preset targets. Of course there was no telling where particular ship was to go and fair amount of them never returned. Chronology and other relevant information I read it as an early teenager back in early 2000s. It was Polish translation of a foreign (possibly English) story. I think (not sure) that the book wasn't new at the time. It was just one of those books you dig out in a library and take to see if it's good. I don't recall cover either and even if I did it'd be of the Polish version. Additional information could be that the narration was led along the psychoanalytics of the main protagonists where he relives his memories from inside the station and his journeys. I am a bit financially strapped and received a Gateway GT5056 tower. The tower has an AMD dual core 64-bit processor in it. Will Ubuntu 12.04 run on this machine? I will not have any other application other than LibreOffice installed.