Generic type to declare a list
How do I use reflection to call a generic method?
Everybody who is using Lightroom probably has seen this. After importing RAW files, Lightroom shows a preview, but contrast and color of the preview change after a few short seconds to a slightly different view.  For some users the change is small, for others the change is huge. Colors are different (read: wrong), contrast is off.  Rumor says this is happening only (more?) for Nikon users.  What is Lightroom doing here?  I'd guess that for the first preview, LR is showing the JPG preview file, which is embedded in the RAW file. Then after a moment, LR renders the RAW file itself to show it's own interpretation.  But why is this interpretation so different from the embedded JPG? Render an InputText based on Selected Option In my VF page I have an apex:selectList with a List of Vendors (e.g. Alcatel,Cisco ec..), the last option is "Other".   When the user select "Other" an apex:inputText should be rendered  where he can writes the Vendor. I'm not able to render the inputText Field   My VF page:  &lt;apex:outputPanel id="vendor2"&gt; &lt;p&gt;&lt;b&gt; Vendor: &lt;/b&gt;&lt;/p&gt; &lt;apex:selectList value="{!vendor}" multiselect="False" size="1"&gt;     &lt;apex:actionSupport event="onchange" action="{!specifyVendor}" rerender="otherPanel"/&gt;     &lt;apex:selectOptions value="{!vendors}"/&gt; &lt;/apex:selectList&gt;&lt;p/&gt; &lt;/apex:outputPanel&gt; &lt;br/&gt; &lt;apex:outputPanel id="otherPanel"&gt;     &lt;apex:inputText value="{!otherVendor}" rendered="{!vendor=='Other'}"&gt; Other: &lt;/apex:inputText&gt; &lt;/apex:outputPanel&gt;     &lt;br/&gt;&lt;br/&gt;    The custom controller:      public with sharing class ExcelPageController {          public String vendor {get; set;}//Vendor Name         public String otherVendor {get; set;}//Vendor Name          public List&lt;SelectOption&gt; getVendors(){             System.debug('getVendors');                 List&lt;SelectOption&gt; options = new List&lt;SelectOption&gt;();             options.add(new SelectOption('Cisco','Cisco'));             options.add(new SelectOption('Alcatel','Alcatel'));             options.add(new SelectOption('Tibco','Tibco'));             options.add(new SelectOption('Other','Other'));             return options;         }     public PageReference specifyVendor(){         System.debug(vendor);         return null;     } } Early 80s anthology book about human kind being feared by other races in space I always thought the book was Manifest Destiny but its not. The story that sticks in my head was a human in a cage over a pit? Aliens walk in and discuss how dangerous humans were. He eventually escapes. Man I miss this book. wish I wouldve written down every book I ever read. Ugh Consider the blow-up of the plane in one point. Let $E$ the exceptional divisor. We know that $(E,E)=-1$. What is the geometrical reason for which the auto-intersection of $E$ is $-1$? In general, what does it mean, geometrically, that a divisor has a negative self-intersection or that the "right" number of divisors gives rise to a negative intersection?  Thanks. Javascript to set cookie Omission of definite article with musical instruments What is the rule for omitting/including the definite article in the following sentences:     I used to play piano.   I used to play the piano.   I would pick the first sentence, but I've heard people say the second sentence even when they are not referring to a specific piano. Which one is correct? linear dependence proof using subsets Where does de Broglie wavelength $\lambda=h/p$ for massive particles come from? I'm curious where the  $p=\frac{h}{\lambda}$ comes from?   I know that for light (which has no rest mass), the following is true:  $E=pc$ and $E=hf$  so,  $$pc=hf \Rightarrow p=\frac{hf}{c}=\frac{h}{\lambda}$$  But how is the expression $p=\frac{h}{\lambda}$ obtained for a massive particle where $E\neq pc$? I've read some people claim that the expression can be derived, and others saying it's an experimentally verified relationship. Every time I open a folder from the desktop, a prompt is shown that the said folder is opened. How do I stop that? If Steve Rogers wasn't so weak, could Cap be even stronger? Is it possible to print a variable's type in standard C++? For example:  int a = 12; cout &lt;&lt; typeof(a) &lt;&lt; endl;   Expected output:  int Is there a way to see the history of questions protected by me or another user? Having a record of all actions taken on a site, as is provided by the &quot;activity&quot; and &quot;votes&quot; tabs of our profile, comes in handy very often. Perhaps the most common case is being able to find a question I've interacted with in the past, to see if anything has changed about it. This applies to questions a user has protected as much as anything else. Users are theoretically encouraged to unprotect questions when it's no longer necessary, as emphasized , but in practice they often do not. In many cases it's hard to blame them: unless they specifically marked it as a favourite, the site doesn't keep any record of the question to allow them to find it again. We should help users more easily review their own protections in the future.    For personal review, the votes tab is adequate, but there may also be value in displaying this publicly in the activity tab. There may be users with a history of repeatedly protecting questions over-eagerly. It would be useful to be able to review other users' protection histories to see if this is the case. Even if this is not available to regular users, it may be helpful to moderators, unless their user activity views already allow them to filter down to see this. Where to put my code: plugin or functions.php? What is the best way to find out a researcher's current affiliation? Let's say I know a name and a field, but not much more.   A google search seems like the most obvious approach, but unfortunately university personnel or research group pages often seem to be quite poorly maintained, and it is not uncommon that someone is listed even if they left more than a year ago.  Early-career researchers are particularly difficult to track down since they often have less of a "presence" on institution webpages and are likely to be moving relatively frequently. Unable to start Oracle database We have an Oracle database, one data file (users tablespace) of the instance got corrupt and another data file (containing application data) was deleted due to some issue.  The database is in ARCHIVELOG mode, but we neither have data file backup of both data files nor the pertaining archive logs. Hence, I guess we cannot go ahead with the recovery of data files. I am unable to open the database as the data files are not available and face.   ORA-01589: must use RESETLOGS or NORESETLOGS option for database open    I am just able to STARTUP MOUNT the database  I wanted to ask if we can somehow we can open the database by taking both the tablespaces offline after STARTUP MOUNT the database instance. Or if there is any other way I can start the database.   There was a power issue and the  server got abruptly shutdown. When we tried to restart the database and found that we were facing ORA-01589: must use RESETLOGS or NORESETLOGS option for database open. On further analysis we found that 2 of datafiles were creating problem as one got corrupt other deleted as mentioned. As of now if I try to restart the database it says one datafile which belongs to users tablespace need recovery. I wanted to confirm as if we can start the instance by bringing the tablespace offline.  I tried:  SQL&gt; select open_mode from v$database;  OPEN_MODE ---------- MOUNTED  SQL&gt; alter database open resetlogs; alter database open resetlogs * ERROR at line 1: ORA-01194: file 1 needs more recovery to be consistent ORA-01110: data file 1: '/flowsystems/oradata02/flsta02/system01.dbf'   I don't have any archive logs. I have a media server (Windows 8) located in a very inconvenient part of my house. Occasionally I will have to reset my router or it will reset itself. The issue is the PC loses connectivity for some reason, and I am forced to walk outside, around the house, into the basement, over a bunch of toys and weights and boxes, to push a button to reboot it.  I would love to have it check itself every 5-10 minutes and auto reboot if it is unable to ping a given address/IP.  Any ideas how to accomplish this? Why constructors will always have same name as of class and how they are invoked implicitly? Irfanview nearest equivalent for linux Increasing sequence of step functions and diverging Lebesgue Integrals Let $\{s_n\}$ be an increasing sequence of step functions which converges pointwise on an interval $I$ to a limit function $f$.  If $I$ is unbounded and if $f(x) \geq 1$ everywhere on $I$ except on a set of measure zero, prove that the sequence $\{\int_I s_n\}$ diverges.  (Here $\int_I s_n$ refers to the Lebesgue Integral.)  Conceptually, this makes sense.  Clearly, if $f(x) \geq 1$ almost everywhere on an unbounded interval, then the sequence of Lebesgue integrals should diverge.  However, in proving this, I am running into issues with the convergence of $\{s_n\}$ being pointwise.  If it were uniform, I could easily show this.  How do I show that (even for pointwise convergence) I can choose $n$ large enough to make $\int_I s_n$ as big as I want? Apex compile error : variable does not exist I'm having issues with creating a pretty simple test Utility Class. I want to create two records: an account and a related child contact. The error I see in the developer console is:     Variable does not exist: a.ID   My code, based on the Salesforce Apex Workbook, is as follows. I've played around with various things, but it's not working. Where am I going wrong? Thanks in advance.  @isTest public class AccountSaveTestSuite {      public static Account createOneAccount(){           Account testAccount = createAcct('ABC Computing inc.');              Contact testContact = createContact();          return testAccount;             }      // Helper methods //     //        private static Account createAcct(string accountName) {          Account a = new Account(             Name=accountName);         insert a;         return a;     }      private static Contact createContact(){         Contact c = new Contact (             FirstName = 'Jane'              , LastName = 'Smith'             , Account = a.ID); // *** Error is here ***         insert c;         return c;      }  }