In my program, I'm trying to add a comma for a number that's length is more than 3. For example if number is 1000, it should output 1,000. However I can't find out how to add on remaining numbers after I put comma into first one. The code below is what I've got: // if the answer is more than 999 string answerThousand = Convert.ToString(lbl_NumResult.Text);  if (answerThousand.Length &gt; 3)  {     lbl_NumResult.Text = answerThousand[1] + &quot;,&quot; + answerThousand[ /* What must be here to add remaining numbers? */]; }
I want to add a comma in the thousands place for a number.     String.Format()?
Adjective for someone who exaggerates emotions to get sympathy What's the word for someone who tries to get sympathy from others by exaggerating their emotions or constantly reminding them of something tragic that happened to them?  I'm looking for an adjective - no disorders or health related definitions please. Check for column name in a SqlDataReader object How do I remove duplicates from a C# array? I have been working with a string[] array in C# that gets returned from a function call. I could possibly cast to a Generic collection, but I was wondering if there was a better way to do it, possibly by using a temp array.  What is the best way to remove duplicates from a C# array? How to move a window if titlebar is overlapped by Ubuntu menu I have previously saved a copy of /var/lib/mysql/ddms directory ("ddms" is the schema name). Now I installed a new MySQL on a freshly installed Ubuntu 10.04.3 LTS by running apt-get install mysql-server, I believe version 5.1 was installed. After I copy the ddms directory under /var/lib/mysql, some of its tables work fine, these are the tables with an associated set of three files: a .frm file, a .MYD file and a .MYI file.  However, there are two tables with a different set of files: a .frm file and a .ibd file. These two tables didn't show up in the table list in phpMyAdmin. When I look at the error log, it says:  [ERROR] Cannot find or open table ddms/dictionary_item from the internal data dictionary of InnoDB though the .frm file for the table exists. Maybe you have deleted and recreated InnoDB data files but have forgotten to delete the corresponding .frm files of InnoDB tables, or you have moved .frm files to another database? or, the table contains indexes that this version of the engine doesn't support.   Please help with restoring these two tables. Thanks. Joda Time: How to get dates of weekdays on some date interval? I lock my computer a lot, and was wondering if there was a way to get the lock screen when I hit Ctrl + Alt + L. Right now when I use that key combination it turns the screen black, and I have to hit a key or click to bring up the screen where it shows the option to enter your password or switch users, as well as displaying the desktop background behind it.   Is there anyway to avoid having to hit that extra key, to bring up the screen I want? And is there anyway to keep it that way? It's really a matter of personal preference, and I don't see any reason why not to have it stay that way as my monitor eventually is turned off and/or my computer suspended. How to evaluate  $$\det\begin{bmatrix}1+x_1y_1&amp;\cdots &amp; 1+x_1y_n\\ \vdots &amp; \ddots &amp; \vdots \\ 1+x_ny_1 &amp; \cdots &amp; 1+x_ny_n\end{bmatrix}$$?  I tried factorisation but I have no idea. I could not factor anything out... I need a hint to kick off.   Edit: A conjecture due to multilinearity: if we let $v_j=(x_1y_j,\cdots,x_ny_j)^T$, then my guess would be $$\det\begin{bmatrix}1+x_1y_1&amp;\cdots &amp; 1+x_1y_n\\ \vdots &amp; \ddots &amp; \vdots \\ 1+x_ny_1 &amp; \cdots &amp; 1+x_ny_n\end{bmatrix}=\det(1,v_2,\cdots,v_n)+\det(v_1,1,\cdots,v_n)+\cdots+\det(v_1,v_2,\cdots,1)=\color{red}{0}$$ where $1$ denote $(1,\cdots,1)^T\in \Bbb K^n$,$\Bbb K$ the underlying number field. Configuring, compiling and installing a custom Linux kernel $\mathbb{R}P^4$ and $\mathbb{R}P^6$ do not admit fields of tangent $2$-planes See the related question . This is the second part of question 4-C in Milnor and Stasheff's book on characteristic classes. In the solution to the first part, we rely on the fact that having a field of tangent $1$-planes allows us to split the tangent bundle into a direct sum. It doesn't seem like this should be true for a field of tangent $2$-planes (otherwise the question wouldn't just be asking about $P^4$ and $P^6$), so I'm not sure exactly where to start.  edit: actually, since $P^n$ can be given a Riemannian metric, any subbundle should be a Whitney summand; this doesn't answer the question as to why they only ask for $P^4$ and $P^6$ though, so I'm still confused. Datasets constructed for a purpose similar to that of Anscombe's quartet I've just come across  (four datasets that have almost indistinguishable descriptive statistics but look very different when plotted) and I am curious if there are other more or less well-known datasets that have been created to demonstrate the importance of certain aspects of statistical analyses. So in the documentation for the DescribeFieldResult.getDefaultValue , it says:     Returns the default value for this field   There is a related method called getDefaultValueFormula whose description reads:     Returns the default value specified for this field if a formula is not used.   What is the difference between these methods? I have a field with a default value. When I call getDefaultValue, I get null. When I call getDefaultValueFormula, I get back "This is the default value" (with quotes). I don't understand why getDefaultValue returns null. If a matrix has orthonormal columns, they must be linearly independent, so $A^+ = (A^T A)^{−1} A^T$ . Also, the fact that its columns are orthonormal gives $A^T A = I$. Therefore,  $$A^+ = (A^T A)^{−1} A^T = (I)^{-1}A^T = A^T$$  Thus, $A^+ = A^T$. Am I correct? Thank you. Evaluate $\lim_{n\rightarrow\infty} \int_0^1 f(x^n) dx$ What is so called meta-game in StarCraft 2?    What other games have this meta-game? How to evaluate a math expression given in string form? How do I connect to a MySQL Database in Python? How do I connect to a MySQL database using a python program? How to remove Ubuntu and put Windows back on? At the moment I'm working with the . For this I read the following paper: .  But I have some mathematical problems with this formalism. I don't really see why this is a variation principle since it is opartor-valued.   The action principle is defined by: $\delta S  = G_1 -G_2$, where $S$ is the action operator $S = \int_{t_1}^{t_2} dt ~L$ and $G$ the generator operators of the transformations.  What does it mean that the action principle is operator-valued? For the classical action where $S$ is real we search for a stationary point but for operators? I also have a problem that $\delta S \neq 0$. What interpretation has this additional term $G_1 - G_2$? mariadb Unknown system variable 'server_uuid' Im trying to setup replication between mariadb(10.1.31-MariaDB - MASTER) and mysql(5.7.12-log - SLAVE). After executed the start slave, I got the below error.     Fatal error: The slave I/O thread stops because a fatal error is   encountered when it tries to get the value of SERVER_UUID variable   from master.   Then I tried to get the value of master_uuid.  MariaDB [(none)]&gt; show variables like '%server_uuid%'; Empty set (0.00 sec)   Then tried to setup this in mysql prompt.  MariaDB [(none)]&gt; set global  server_uuid = 11123c25-cac0-3523-8089-4c54d9b46f33; ERROR 1193 (HY000): Unknown system variable 'server_uuid'   And also I tried to setup auto.cnf in data directory.  [auto] server_uuid = 11123c25-cac0-3523-8089-4c54d9b46f33  chmod 644 auto.cnf   But still im getting the fatal error is encountered when it tries to get the value of SERVER_UUID variable from master.