Lets say I have a really long string that I need to have across multiple lines in the text editor for readability. Should I use StringBuffer or does it not matter? In other words is this:  string my_string = "there are lots of " + "words here";   The same as this as far as performance goes?  string my_string = "there are lots of words here";   In other words, will I be creating multiple string objects in the first example and only one in the second? I want to make sure performance doesn`t suffer for readability purposes.
For instance, does the compiler know to translate  string s = "test " + "this " + "function";   to  string s = "test this function";   and thus avoid the performance hit with the string concatenation?
Background: I am currently employed by a start-up that, so far, is doing really well. As part of my contract, I have stock options that will come available on a typical vesting schedule. A quarter of my options are set to vest later this year. Also, the company is not public yet, and it may be several years before it is public / I could sell my shares of the company.  My question is, is there any reason I should exercise them as soon as they vest? As far as I know they don't expire as long as I work at my company (if I leave for any reason, then I only have 3 months to exercise).  I don't foresee leaving any-time soon, and if I did, I would have 3 months to make a final decision.  Is there any disadvantage to just letting the option stay an option for a while? I would like to know how to unload an assembly that is loaded into the main AppDomain.  I have the following code:  var assembly = Assembly.LoadFrom( FilePathHere );   I need/want to be able to unload this assembly when I am done.  Thanks for your help. Can I convert flat bar to drop bars on a hybrid bike Frequently when EM waves are taught, it is said that the change in electric field causes a change in the magnetic field, which then causes a change in the electric field, and so on and so forth.   But from my understanding of basic electromagnetics, it is not necessarily a changing electric field that creates a change in magnetic field, but instead an accelerating charge. and it is this charge that creates both the electric and magnetic field. Again, from my understanding, a changing magnetic field is not generated by a changing electric field, but instead just happens to always be present perpendicular to a changing electric field due to the laws of electromagnetism.   Am I wrong? Or is the "mutual generation" concept between the electric and magnetic components of an EM wave an actual thing? Use the definition of derivative to prove $\lim_{x\to 0}\ln(x+1)/x =1$ How would I use the definition of derivative to prove  $$\lim_{x\to 0} \frac{\ln(1+x)}{x} = 1$$  I got to $$\frac{\frac{\ln(1+x+h)}{(x+h)} - \frac{\ln(1+x)}{x}}{h}$$ but have no idea where to go from here.   On another site I found someones answer where they stated the following: $$ \lim_{x\to 0} \frac{\ln(1+x) - \ln(1+0)}{x-0}  = [\ln(1+x)]'\rvert_x = 0 $$ but I am unsure why the $x$ in the $x-0$ is removed. Can someone please explain? Is there any way to create multiple insert statements in a ms-access query? How to share an encrypted storage on Windows, Mac OS X and Linux in a secure way I got a 2 TB drive that I have to use with both Windows 8.1 / Windows 10 and Yosemite to OS X / OS X El Capitan and maybe even on Linux.  I need to encrypt the volume. Or rather, I want to create two partitions: a 1.7 TB encrypted and unencrypted the remaining space.  Now I use Windows BitLocker to 512bit. On Mac and Linux nothing, obviously.  What do you recommend?  I saw TrueCrypt (and I read about all the confusion created after May 2014), of VeraCrypt, of GNUPG, Disklocker to read BitLocker on Unix.  But I feel lost and without a good idea.  And if I use TrueCrypt 7.1a waiting for new solutions such as precautions to prevent memory dumps and other potential crack?  And then how should I use TrueCrypt to format the drive? In GPT? MBR? Journaled? FAT? How to ask for "Save Changes?" on Lighthing Component form when user tries to navigate away We have a Lightning Community and would like to prompt the user to "Save Changes" if they try to click one of the community's navigational components (home link, or other menu item) but they have unsaved form changes on a custom Lightning component.  Ideally, we'd have a window.confirm popup asking if they want to leave without saving their changes, and if they click Cancel, the URL navigation would be aborted.  Is this possible via custom Lighting Components and Lighting Communities, and if so, how? If not, are there any patterns to work around this? AJAX call using admin-ajax URL is returning 400 bad request I'm new to Linux (currently running Ubuntu 10.04) and I have just finished setting up SSH access to my Linux Machine.  Currently, I have to use ssh root@x.x.x.x to connect but would much rather be able to swap the IP for the computer name (like in Windows with \\name) or a domain name (like computername.example.com). I don't really know where to start so any help would be most appreciated.  Please go slowly, as mentioned - I am still new to this.  EDIT 1 Completely forgot to mention that I am trying to connect from Windows 7 (via PuTTY) - sorry. Bump and color data in a single brush? Is there any way to paint onto a bump map and diffuse map at the same time, so that the strokes match up? Like a multi-layer brush that uses a greyscale texture for the bump layer and a color texture for the diffuse color?  Here's a rough sculpt to demonstrate what I'm imagining:    The GIF above shows how such a brush could be made. The black and white height map would be the displacement brush, transferring its greyscale data to the bump map texture and the green one would transfer its color data to the diffuse map texture.  The resulting brush images:      Making the brush is one thing, but is it possible to use such a brush? Is there a way to make an Android phone (HTC Desire HD) act as Bluetooth speakers or headset?  I'd like to use the phone as wireless headphones whilst watching a movie on a computer (running Ubuntu). Asymptotic expansion of $u_{n + 1} = \frac12 \arctan(u_n)$ Is “are” a borrowed word? I read somewhere that English is the only language to have borrowed a form of its to be verb from another language. I want to say, if memory serves, that it was are that was borrowed from an early Scandinavian language. Is that so?  I know Old English had sind for one of their pronouns inflections of be, the same as in German.  But did it switch to are naturally from some other gentler evolution, or was it borrowed? I don't see the statistics information that's supposed to be on the status bar running along the bottom of the main window towards the right in version 2.9. Console freezes on auto-complete of /mnt/folder (CIFS) share I have a Ubuntu 14.04 server that will lock up after an undetermined amount of time when you attempt to tab-auto-complete the path of a CIFS share in the /mnt directory. I mount the share and it seems to work fine for a uncertain amount of time. I can do ls or run du on folders within the mounted share. Then I will go to tab out a folder path and my console locks up. I can start a new session but it will lock as soon as I try to mess with the mounted share; this even happens to other users if I have them try as well. I have no idea why this is happening? I've never seen this issue. I just read on wikipedia that the the complex projective line is homeomorphic to the riemann sphere. How do I prove this? But, before that I have an extremely silly doubt that has been eating me. In the complex projective line, antipodal points are identified, but in the Riemann sphere they are clearly distinct. Then how can the two be homeomorphic.   I found out the following map from the complex projective line to $S^2$. But how do I prove this is a homeomorphism? Finding the inverse of this functions seems complicated, and then how do I prove that the inverse map of a open subset is a open subset, and vice versa?  $f:\mathbb{C}\mathbb{P}^1 \to S^2 = [z:w] \to \frac{(2Re(w\bar{z}), 2Im(w\bar{z}),|w|^2-|z|^2)}{(|w|^2+|z|^2)} $ Please add Right To Left text support in Stack Exchange You know, some of us read right to left...  Certain sites like  and  have an obvious need for this, as Arabic and Hebrew are Right To Left (RTL) languages. Many answers on those sites cite the Torah and the Quran respectively. Directly quoting these sources properly requires RTL text. How do I end a Tkinter program? Let's say I have this code:  from Tkinter import *  def quit():     # code to exit  root = Tk() Button(root, text="Quit", command=quit).pack() root.mainloop()   How should I define the quit function to exit my application? Why would parametric statistics ever be preferred over nonparametric?