Which is the better way of initializing elements in a page object?
How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?
load a file and read the information I want to open an Excel file through an Apex dialog box, then browse the information in my file line and display it with visualforce. I show you my code  public class ImportExcel {       public String fileName{get; set;}     public Blob contentFile{get;set;}     public String[] csvFileLines{get;set;}     public List&lt;String&gt; acclist{get;set;}     public String[] data{get;set;}     public ImportExcel(){         csvFileLines = new String[]{};         acclist = New List&lt;String&gt;();      } public void readFile(){         try         {             fileName=contentFile.toString();         }catch(Exception e){         ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'Please upload a valid CSV document');         ApexPages.addMessage(myMsg);              return ;          }         csvFileLines=fileName.split('\n');          system.debug(csvFileLines);         for(Integer i=0;i&lt;csvFileLines.size();i++){             data=csvFileLines[i].split(',');             acclist.add(data[i]);         }     } }   Once I execute my code, it puts me this error:     13:52:13:012 VARIABLE_ASSIGNMENT   [15]|e|"common.apex.runtime.impl.ExecutionException: BLOB is not a   valid UTF-8 string"|0x4e4728 Find & Delete duplicated files on multiple harddisks at once I have 4 hard disks and want to find out which files on this four harddisks (including sub directories) are duplicates. It should be checked not only within a harddisk but against all the others as well.  The hard disks are large (3TB) therefor it has to be efficient (first filename than checksum checks or so) Single word to denote date and time I want one word that means Date and Time. For example in "the date and time of the event will be announced later" I want to use single word instead of "date and time" Let $X$ be a metric space. Prove that if every continuous function $f: X \rightarrow \mathbb{R}$ is bounded, then $X$ is compact.  This has been asked before, but all the answers I have seen prove the contrapositive. Realistically, this may be the way to go, but is there way to exhibit an unbounded continuous function (under the assumption $X$ is not compact) without appealing to results beyond introductory real analysis (e.g., the solution I've seen involves the Tietze Extension theorem)?  Because we're working with metric spaces, it's clear that the assumption that $X$ is noncompact (towards proving contrapositive) will lead us to extract a sequence of points in the space with no convergent subsequences. But how can we infer the existence of an unbounded continuous on the space knowing only about some sequence of points in this space (without using anything too advanced)? I'm listing some items for sale online, and have taken a bunch of pictures with my iPhone.  About half-way through the process, iPhoto '11 stopped downloading new photos into its local Photo Stream.  I've quit iPhoto and re-opened it.  I've gone into the Photos app on my iPhone and confirmed all the pictures are there.   Is this normal behavior? Is there any way to tell iPhoto to download my pictures? Is your MAC address revealed when you hit up a website? How to prove $\lim\limits_{n \to \infty} (1+\frac1n)^n = e$? Lightning Change Event Is there a way to catch the change event of a particular field/component? I saw on the AuraDocs that there is a valueChange event but trying to handle it makes the app throw an error on load. I was wondering if I could build some automatic field validation / search suggestions without relying on other js libraries. Longest line using awk Batch fit images into ratio with blurred background I need to resize a lot of images into a 4:3 ratio with the desired effect.  Is there a way to do this using photoshop actions? (the background can be scaled or two copies moved to the sides, either way works)     image credits: Each time I open any application, it zooms to fill-up the entire desktop and so I am always forced to use "Unmaximize" using Alt+Space menu. What is sudo apt-get -f install? what is the usage of apt-get -f install . when I run sudo apt-get update I got some errors at the end It says try apt-get -f install. What is this command?  the last part of my error is :   . . .   going to be installed   E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). How do I install Adobe Acrobat Reader from the repository? How do I install Adobe Acrobat Reader in Ubuntu 14.04 using a Trusty apt repository?  This is NOT a duplicate of . In Synaptic &gt; Repositories &gt; Other software I enabled "Canonical Partners", but I still cannot install acroread as it is not available on my 64-bit system.  Here's the output from the console:   root@liv-inspiron:/home/liv# apt-get install acroread Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package acroread root@liv-inspiron:/home/liv# apt-get install acroread:i386 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package acroread One of the mysteries that my numerics class left me with are "stiff systems". Our prof didn't really manage to explain what they are. Now that the class (and the test) are over, I'm still curious.   The most concise definition about "stiff systems" I've found so far is: "There is no universally accepted definition of stiffness". So, if there is none, I don't expect one.   I'd be thankful about information on both of the following points:   From what kind of (real-world) problems do stiff systems arise? What's so "stiff" about them? What's the good thing - or the bad thing - that I'd worry about when I have to numerically solve such a real-world problem? How do I keep both the background and foreground in the image in focus at the same time? How do you have both the background and foreground in the image in focus at the same time?  Last week I was attempting a shot where I had the back of a hat in focus and in the distance you could see a mountain. I wanted both in focus, but could either focus on the mountain or the hat. I ended up taking the in-focus shots of both and merging them in Photoshop. While that isn't difficult I would prefer to shoot the shot as accurate as possible. From what I have read aperture is important in the depth of field but what are the techniques for keeping both the background and foreground in focus?  I am using a Nikon D5100 with a 18-55mm f/3.5-5.6 (standard kit lens) and a 55-200mm  f/4.5-5.6.    almost answers my question, but I am a bit confused. Can someone explain this a bit differently? Thanks! How can I insert a newline in a framebox? Difference between "@id/" and "@+id/" in Android When should you use a class vs a struct in C++? Closure of $\{\frac{1}{n}\}:=M$ In $\mathbb{R}$ with standard topology the closure of the above set $M$ is $M \cup 0$. I fail showing this by purely topological means. I.e. not using the fact that this holds in the reals as a metric space and deduce it for the induced topology.  I assumed that there exist a closed subset $A$ containing $M$ but not 0. Hence, the complement of $A$ is an open subset containing 0. Does this already yield a contradiction or do I need a different approach?  Could you help me on this? Prove by mathematical induction that $2^{3^n}+1$ is divisible by $3^{n+1}$