Getting a "System.IndexOutOfRangeException"
Check for column name in a SqlDataReader object
Search for a string in all tables, rows and columns of a DB How to retrieve checkboxes values in jQuery How can I get admin access to a Mac without knowing the current password? How can I develop for iPhone using a Windows development machine? Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows?  The only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not too sure how legal this is. Prevent applications from opening browser Is there a free application out there that will intercept requests from applications to open a URL and prompt me as to whether or not I want the URL to be opened? (For instance, after Adobe Reader installs, it opens its website to get feedback about the install process.)  Ideally, it would be lightweight software for just this task, but if a larger firewall/security app provides this feature, that would be acceptable.  I'm using windows 7 32-bit.  As stating in a comment below, the idea is that you don't want the browser to open (assume it's not already running), so an extension (e.g. for Chrome, ffox) wouldn't be relevant. Macroscopic quantum phenomena and tunneling Truncated alternating binomial sum Before today, I would visit Stack Overflow every day and click somewhere in the upper-left corner (I've forgotten what it said, and it's gone now!) and if I didn't have any notifications I would see a list of interesting questions from various sites in the Stack Exchange network which - I believe - were classified as "hot".  Now this new top bar has appeared, and I have no idea how to get this list any more. I'm not really sure what it was called so my searches have been useless as well. How can I modify the size of swap with LVM partitions? I'm trying to add/modify a swap partition on my LVM-formatted hard disk by using GParted from a LiveCD.  I only see one big partition taking up the whole disk.    Is there a hidden swap?    Does an LVM-formatted system even need a swap?  I'm using Ubuntu 12.10. Why haven't I received the "Curious" badge? Do we have to tune the number of trees in a random forest? What's the subject of "There is my biscuit!" ? And how about "There is one biscuit left"? What's the subject, grammatically speaking, of these sentences?   There is my biscuit! My biscuit is there! There is one biscuit left.   I don't really know how to analyze these. The following observations seem to be relevant, though:   The verb to be doesn't take an object. In the first two sentences, there is a demonstrative pronoun. It is therefore potentially a subject, I think. I don't know what part of speech is taken by there in the third sentence. In favour of reading my biscuit and one biscuit as the subjects is that if there were more than one biscuit then, in each case, the verb would become plural (There are my biscuits! etc.) In favour of reading one biscuit as the subject of the third sentence is that if we recast it as (the slightly unidiomatic) There remains one biscuit, it seems that one biscuit would have to be the subject.   All of this leads me tentatively towards thinking that my biscuit and one biscuit are the subjects here, but I'm not totally confident about this.  One other possibility: since to be doesn't take an object, does that mean it can have two subjects? In I am he, presumably both I and he are subjects, if neither is an object? Is it possible to follow a user automatically? I've been looking around and I can't seem to find an automatic (i.e. buzz- or Twitter-like) way to follow users inside Stack Exchange. Why haven't the developers added such a feature? It could help beginner users follow other beginners with the same interests. We would be able to learn from each others' questions and pitfalls. Also, it would reduce double posting. How do I force Postgres to use an index when it would otherwise insist on doing a sequential scan? Shell command for outputting absolute path of binary Is there a shell command for outputing absolute path for specified program? I'd like to know where executable binary file is. How can I really disable the Cmd to Win key mapping in Parallels Desktop 5? Removed it from System Preferences &gt; Keyboard. No go. Remapped ⌘ Cmd to be Ctrl. No go. Ripping out the ⌘ Cmd key shouldn't be the solution. Anyone?... LINQ to SQL Where Clause Optional Criteria I am working with a LINQ to SQL query and have run into an issue where I have 4 optional fields to filter the data result on.  By optional, I mean has the choice to enter a value or not.  Specifically, a few text boxes that could have a value or have an empty string and a few drop down lists that could have had a value selected or maybe not...  For example:      using (TagsModelDataContext db = new TagsModelDataContext())      {         var query = from tags in db.TagsHeaders                     where tags.CST.Equals(this.SelectedCust.CustCode.ToUpper())                      &amp;&amp; Utility.GetDate(DateTime.Parse(this.txtOrderDateFrom.Text)) &lt;= tags.ORDDTE                     &amp;&amp; Utility.GetDate(DateTime.Parse(this.txtOrderDateTo.Text)) &gt;= tags.ORDDTE                     select tags;         this.Results = query.ToADOTable(rec =&gt; new object[] { query });     }   Now I need to add the following fields/filters, but only if they are supplied by the user.   Product Number - Comes from another table that can be joined to TagsHeaders. PO Number - a field within the TagsHeaders table. Order Number - Similar to PO #, just different column. Product Status - If the user selected this from a drop down, need to apply selected value here.   The query I already have is working great, but to complete the function, need to be able to add these 4 other items in the where clause, just don't know how! I'm trying to understand how it's possible to always reduce the degrees of freedom of a system represented by $n$ coordinates $q_{i}$ for which holds $f(q_{1},...,q_{n})=0.$  For example, let's consider the system represented by $x+\cos y=5$. How can i show that this system has only 1 degree of freedom? I know there are some command-line applications like pdflatex that can help me to compile a LaTex document from C#.Net (using the System.Diagnostics.Process class) .   I wanna know that what's the best command-line tool for compiling a TeX document ? Induction proof: n lines in a plane Assume that there are $n$ infinitely long straight lines lying on a plane in such a way that no two lines are parallel, and no three lines intersect at a single point. Prove that these lines divide the plane into $\frac{n^2+n+2}{2}$ regions. (Hint: Any two non-parallel straight lines on a plane must intersect at exactly one point.)  Can someone tell me where to start here? I know to prove the base where $n=0$, but don't know how to proceed.  Any help is greatly appreciated!