I've seen conflicting answers on other websites about whether or not it is grammatically correct to add a comma after the word "Sometimes" in examples such as:     Sometimes, we are unable to provide assistance.   Is the comma in the above sentence correct?  I looked at . Answers range between commas being for readability to being used to distinguish emphasis. I looked at questions on this site discussing when it is appropriate to use commas, but they did not answer this question. To clarify my question, would the quoted sentence have the same meaning and be grammatically correct regardless of the comma?
I am no native speaker and always confused about the comma in introductory phrases, in particular in prepositional phrases. Is there any hard rule when a comma must be set? If I make a google search for certain phrases, I often find both variants. Typical examples where I am not sure whether a comma must be set are:        First[ly][,] I must phone mother   In this case[,] we must...   For simple problems[,] the algorithm...   From Lemma 1.2[,] we obtain...   For a typical user[,] the algorithm...   In our theory[,] we...   A dark line on the horizon[,] the mountain range we were headed for seemed somehow not as threatening as when we had started out on the trip.   Avidly reading her novel[,] Jane did not notice that her stop was approaching.   To be sure[,] it is not easy to see a solution.   When you get to Rome[,] give me a ring.
What would be the best approach to get the recordtype id I know of two approaches to get the recordtype id of a particular record type   Use SOQL   RecordType RecType = [Select Id From RecordType  Where SobjectType = 'Account' and DeveloperName = 'Business'];    Benifit here is if the admin changes the name of the record type, the code still works as we can use developer name   Using Describe  Map&lt;String,Schema.RecordTypeInfo&gt; rtMapByName = d.getRecordTypeInfosByName(); Schema.RecordTypeInfo rtByName =  rtMapByName.get('Business');    Saves on SOQL limits but uses a describe call.  What would be your choice and why   EDIT : Usage is for setting up recordtype while inserting records in apex or trigger Copying and pasting text between applications without style When pasting text, some applications (Chrome, Microsoft Office, etc.) will do what they can to re-render copied text with style, and some of those applications do not appear to offer an option to paste without style.  This results in spending lots of time removing formatting (where it is even possible) and then cleaning up the mess left behind, just to get clean text.  I want to prevent text styling from attaching itself to text that I copy and paste between applications. Is there an OS-level way to do this, i.e. one that can apply to all applications? Failing that, is there a per-application way to tell Chrome, Safari, Word etc. not to copy and/or paste with style? Bump right-aligned text to next line iff no room Should we have a tag for significant points in time? Is every discrete absolute value non-archimedean? I've been reading Milne's notes on absolute values and local fields (Chapter 7 of the book on algebraic number theory), and a possibly minor point is confusing me.   On page 126, Milne writes, "$K$ is a field complete with respect to a discrete absolute value $|\cdot|$..." and then he talks about things that only make sense for non-archimedean absolute values, like the ring of integers and its maximal ideal.   Is every discrete absolute value on a field $K$ also non-archimedean? This would explain a lot, but I also suspect that it is not true, because I can't find any statement of this fact anywhere.  EDIT: An absolute value is discrete if the value group $|K^\times|$ is a discrete subgroup of the multiplicative group $\mathbb{R}_{&gt;0}$. An absolute value is non-archimedean if it satisfies the stronger triangle inequality $$ |x+y| \le \max (|x|,|y|) $$ or equivalently if the set $\{|1|,|1+1|,|1+1+1|,\ldots\}$ is a bounded subset of $\mathbb{R}$. This was talked about a few podcasts ago. And they referenced some other site that does this.  Currently location is a string but adding a country dropdown (and for the usa a state drop down) could be a great addition to the site.  Then allow for user filtering by country / state. Force.Com Sidebar - Reference Data From Current Screen On URLs? I am being lead to believe this is possible:  A URL on the Force.Com Sidebar Menu which references data from the currently open page.  i.e., /{!recordId}?nooverride=1    However, this does not work.  The brackets simply turn into percent encoded references on the resultant page.  Is it possible to pass information onto a URL on the Force.Com sidebar? How do I get from Terminal 1 to Terminal 5 in Fiumicino Airport? Why do prisms work (why is refraction frequency dependent)? It is well known that a  can "split light" by separating different frequencies of light:    Many sources state that the reason this happens is that the  is different for different frequencies.  This is known as .  My question is about why dispersion exists.  Is frequency dependence for refraction a property fundamental to all waves?  Is the effect the result of some sort of non-linearity in response by the refracting material to electromagnetic fields?  Are there (theoretically) any materials that have an essentially constant, non-unity index of refraction (at least for the visible spectrum)? Find the value of a given integral sequence: $I_n=\int_{0}^{1}(1-x^2)^ndx$ Let $(I_n)_{n \geq 1}$ be a sequence such that: $$I_n = \int_0^1 (1-x^2)^n dx$$  Find the value of $I_n$ (The solution is $\frac{2}{3} \cdot \frac{4}{5} \cdot ... \cdot \frac{2n}{2n+1}$).  I've tried using the binomial expansion of $(1-x^2)^n$ but I couldn't get the proper answer.  Thank you! What are Multi-Zone/Matrix metering, Center-Weighted metering, and Spot metering? What about Partial?  Is there a good rule of thumb, or a few pointers, on when best to use each exposure metering mode? Disable commandButton after first click to prevent double submission I have an apex:commandButton on a visualforce page that invokes a method on the controller. There is currently no rerender value set for the button. Instead the controller method returns a PageReference to redirect the user as required.  E.g.  Visualforce:  &lt;apex:commandButton value="Save" action="{!save}"/&gt;   Controller:  public PageReference save() {     // save body ...      // return the user the a parent opportunity     return new PageReference('/' + opp.Id); }   Users are currently able to click on the resulting save button multiple times before the controller completes and returns the PageReference to redirect the browser to an opportunity.  How can I disable the commandButton after the first click?    I tried wrapping the commandButton in an actionStatus and facet, but the need to define the rerender property prevented the resulting PageReference redirect.  E.g.  This will render nicely in the browser and prevent multiple clicks, but doesn't redirect to the Opportunity on completion.  &lt;apex:actionStatus id="saveStatus"&gt;     &lt;apex:facet name="stop"&gt;         &lt;apex:commandButton value="Save" action="{!save}" status="saveStatus" rerender="saveParentBlock" /&gt;     &lt;/apex:facet&gt;     &lt;apex:facet name="start"&gt;         &lt;apex:commandButton value="Saving..." disabled="true" status="saveStatus"/&gt;     &lt;/apex:facet&gt; &lt;/apex:actionStatus&gt;     There is a similar question . I need to support an existing PageReference redirect, which slightly alters the requirements.  Force.com Discussion Boards:   Ideas: How can you construct the bijection between real numbers and functions over naturals? How do I make sure that a socket bound to a port is properly released on process exit such that the port can be reused without bind() failing with EADDRINUSE? I've written a tiny program which just creates a socket, binds it to a fixed port, waits for a connection and then immediately terminates. When I rerun the program, the bind() call fails with EADDRINUSE, but if I wait a few minutes, it succeeds.  Is there a way I can explicitly "unbind" the socket, thereby freeing the port number? Answering your own question? Accept it. Should flour be thrown out past its expiry date? How to prevent updating of a specific package? I opened terminal windows and I got a message   your screen size %d%d is bogus. Expect trouble   I closed the terminal and the next time I opened terminal, the message didn't show up.   What is this message and why did I receive it? Better than premium Is there something higher (better) than the word premium, or does it mean the best? Also, is there something in between premium and deluxe?  Graphically: Does any word fit here? > Premium > Does any word fit here? > Deluxe Calculate battery life I would like to know how to calculate battery life when using an LED strip. The LED strip is powered by 8 AA batteries in series. LED Current Draw = 260 mA. LED power consumption: 3.1 W. LED Operating Voltage range: 9-14.8 VDC. Please see attached images for battery datasheet.  This is my calculation, but I'm not sure if it's correct:     Battery Life = (Battery Capacity)/(Load Current) = 2000 mAh /260 mA = 7.7 Hours   This is for one battery, and the lights are powered by 8 batteries, so is the total battery life = (7.7)x(8) = 61.6 hours ?