Write a JavaScript function that changes behavior based on optional arguments
Is there a better way to do optional function parameters in JavaScript?
Proof that the irrational numbers are uncountable Using the Limit definition to find the derivative of $e^x$ Granted there are already quite a few badges for community service on this site, I thought, how about some more!  The theme is merging enthusiast/fanatic with suffrage/vox populi. Something like this (names and numbers open to suggestions)  Enthusiastic Voter - Voted 20 times per day consecutively for 30 days ????? - Voted 30 times per day consecutively for 50 days Fanatic Vox - Use the maximum number of 40 votes consecutively for 100 days How to build a custom kernel? Grub not showing on startup for Windows 8.1 Ubuntu 13.10 Dual boot Ok, so I'm such a newbie to Ubuntu and I bought a Windows 8 pre-installed laptop last month.  I updated to Windows 8.1 and then I thought about installing Ubuntu as a dual boot so I could mess around and learn more about it.   So I followed a Youtube tutorial (  ) and I got my stuff working fine.   The first few times I booted I got the GRUB menu instead of my default HP Boot OS Manager, and I was able to select my OS.   So I went to sleep and the next day I turned on my computer and the GRUB menu did not show up. I tried several times and it didn't automatically show up.  In order for me to see the GRUB menu I had to turn on my PC and on start had to press ESC to pause startup and press F9 to get boot options. Then from there I had to pick from OS Boot, Ubuntu, Ubuntu (Yes there were two Ubuntus available) and a default EFI file thingy.   When I click the first Ubuntu I get the GRUB Menu (I was too scared to try the second in case I screwed my laptop up) and I can safely load Ubuntu from there and use it (although I do have to increase my brightness every time I load Ubuntu because it somehow reduces my brightness to complete darkness on boot)  So my problem here is why isn't my GRUB showing on boot, after it worked on the first day?   My laptop is a HP TouchSmart j-078CA.  EDIT 1: FYI I just switched to Ubuntu LiveCD to check my Installation and found out that one of my partition is flagged as msftres. Here is a screenshot of my GParted on a LiveCD: I have a scenario. (Windows Forms, C#, .NET)   There is a main form which hosts some user control. The user control does some heavy data operation, such that if I directly call the UserControl_Load method the UI become nonresponsive for the duration for load method execution. To overcome this I load data on different thread (trying to change existing code as little as I can)   I used a background worker thread which will be loading the data and when done will notify the application that it has done its work.   Now came a real problem. All the UI (main form and its child usercontrols) was created on the primary main thread. In the LOAD method of the usercontrol I'm fetching data based on the values of some control (like textbox) on userControl.    The pseudocode would look like this:  CODE 1  UserContrl1_LoadDataMethod() {     if (textbox1.text == "MyName") // This gives exception     {         //Load data corresponding to "MyName".         //Populate a globale variable List&lt;string&gt; which will be binded to grid at some later stage.     } }   The Exception it gave was     Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on.   To know more about this I did some googling and a suggestion came up like using the following code  CODE 2  UserContrl1_LoadDataMethod() {     if (InvokeRequired) // Line #1     {         this.Invoke(new MethodInvoker(UserContrl1_LoadDataMethod));         return;     }      if (textbox1.text == "MyName") // Now it wont give an exception     {     //Load data correspondin to "MyName"         //Populate a globale variable List&lt;string&gt; which will be binded to grid at some later stage     } }   BUT BUT BUT... it seems I'm back to square one. The Application again  become nonresponsive. It seems to be due to the execution of line #1 if condition. The loading task is again done by the parent thread and not the third that I spawned.  I don't know whether I perceived this right or wrong. I'm new to threading.  How do I resolve this and also what is the effect of execution of Line#1 if block?  The situation is this: I want to load data into a global variable based on the value of a control. I don't want to change the value of a control from the child thread. I'm not going to do it ever from a child thread.   So only accessing the value so that the corresponding data can be fetched from the database. Graphing y=x^2 and y=x My keyboard has no "media" keys; can I control media without them? Quote.class doesn't return the Quote type, but Account.class does. Why? I'm trying a library that acts like an object factory. It works with serialization, so it is possible to specify formula fields without DML, which is pretty handy with tests.  My issue is that I'm trying to write a class that requires the Quote type. The apex compiler throws me the following error when using Quote.class:     Invalid field class for SObject Quote   But Opportunity.class, Account.class and even QuoteLineItem.class work just fine. Any idea why? Is it not possible to get the quote type? Or is there another way of doing it? Which is the easiest way to evaluate $\int \limits_{0}^{\pi/2} (\sqrt{\tan x} +\sqrt{\cot x})$? Example:  A tall(,) green pole.   says that cumulative adjectives don't need comma. In my example, &quot;tall&quot; describes shape, and &quot;green&quot; describes color. So they are cumulative adjectives. But  says that &quot;tall&quot; and &quot;green&quot; are equivalent and coordinate adjectives ... I'm confused. Should there be a comma or not? How do you make clothes move along with model how do you make clothes move along with your model? Do you rig the model first and then parent it to the body of the character then click cloth simulation? I am a little bit confused with the process. Thanks for the help. How to create csv files in controller method from list WPF CommandParameter is NULL first time CanExecute is called How should we handle downvote retaliation? How to SEO a Single-Page website Why high voltage transmission lines? Up my street and down the lane Possible Duplicate:          Except where there is obvious difference in elevation e.g. on a sloping road, how do native speakers decide whether to use up or down in phrases like up the road when referring to a location along the same road? How can I get the output from Image Trace to be Strokes instead of a Fill? I need to trace picture below to vector.  After tracing it with black and white mode I got result below that I don't like. I would like to have all lines to be in the same constant width.  What tracing strategy I should use to get needed result? I am always confused about where to put adverbs in sentences. For example, consider the questions below:        Why did they target us specifically?   Why did they target specifically us?   Why did they specifically target us?      I believe all these sentences mean the same. Am I correct? I am always confused about where to put adverbs such as always and specifically, etc. Is there a particular grammar rule for this?  Funny, you see, I can even form the above sentence in different ways.         I always confuse where to put this kind of adverb   Always I confuse where to put this kind of adverb