How do I change the submission button text?
How do I change text on the submission button in the node form?
How to assign a function in Lua for a randomly generated numbers Finding what methods a Python object has Given a Python object of any kind, is there an easy way to get the list of all methods that this object has?  Or,  if this is not possible, is there at least an easy way to check if it has a particular method other than simply checking if an error occurs when the method is called? When I tried to connect my Ubuntu 13.10 to my VM Centos 6.5 using ssh appear the message "Connection refused" or "No route to host" even than I change the port, noting change.    I need to use SSH, VPN and Samba, but this IP in my VM Centos do not work.  How Can I resolve this problem? The Cartesian product of a family $(A_i\mid i\in I)$ is defined as $$\prod\limits_{i\in I}A_i=\{f:I\to\bigcup A_i\mid f(i)\in A_i\}$$ Let $I_n=\{i \in \mathbb N \mid i \le n\}$ for $n\in \Bbb N$ and $A_i$ be countable for all $i\in I_n$. Then $\prod\limits_{i\in I_n}A_i$ is countable.   My attempt: Lemma 1: $(\prod\limits_{i\in I_n}A_i) \times A_{n+1}$ and $\prod\limits_{i\in I_{n+1}}A_i$ are equinumerous for all $n \in \mathbb N$. (I presented a proof ) Lemma 2: If $A$ and $B$ are countable, then $A \times B$ is countable. (I presented a proof ) I will prove the theorem by induction on $n$. The theorem is trivially true for $n=0$. Assume that the theorem is true for $n=k$, then $\prod\limits_{i\in I_k}A_i$ is countable. Since $\prod\limits_{i\in I_k}A_i$ is countable (by inductive hypothesis) and $A_{k+1}$ is countable, then by Lemma 2 $(\prod\limits_{i\in I_n}A_i) \times A_{n+1}$ is countable. Furthermore, by Lemma 1 $(\prod\limits_{i\in I_k}A_i) \times A_{k+1}$ and $\prod\limits_{i\in I_{k+1}}A_i$ are equinumerous, then $\prod\limits_{i\in I_{k+1}}A_i$ is countable too. Thus the theorem is true for $n=k+1$. This completes the proof.   Does this proof look fine or contain gaps? Do you have suggestions? Many thanks for your dedicated help! SEO and URL Shorteners How can I remove a key from a Python dictionary? Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on 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. Why are year, pound and mile in the singular form in the phrases below?   five-year-old children  20 pound note 10 mile run   Is that because they're acting as adjectives, which are always invariable in English?  Is it incorrect to say...   five-years-old children? 20 pounds note? 10 miles run? Eigenvalues of the rank one matrix $uv^T$ I have a question about the following problem from a Putnam review:  Let $n\in \mathbb{N}$. Find how many pairs of natural numbers $(x, y)\in \mathbb{N}\times \mathbb{N}$ solve $$ \frac{xy}{x+y}=n. $$  I have found some solutions for all $n$, such as $(2n, 2n)$ and $(n+1, n(n+1))$, but I feel as though this is the wrong approach, as the question is only asking for the number of solutions to the equation.  I don't really want a complete solution, but any hints would be greatly appreciated. Error with square bracket in table \begin{table}[ht] \makebox[\textwidth][c]{     \begin{tabular}{ccccc}         \hline         \hline         [] &amp; [] &amp; [] &amp; [] &amp; []\\         [] &amp; [] &amp; [] &amp; [] &amp; []\\         \hline         \hline     \end{tabular} } \caption{test} \end{table}   I cannot run the above code, latex returned an error about missing number, but I can't see anything I am missing.  And the weirdest thing is that  \begin{table}[ht] \makebox[\textwidth][c]{     \begin{tabular}{ccccc}         \hline         \hline         [] &amp; [] &amp; [] &amp; [] &amp; []\\         \hline         \hline     \end{tabular} } \caption{test} \end{table}   This code works.  Anyone have any idea? How do I enforce a password complexity policy? image of polynomial map is not an algebraic set I am doing an exercise about algebraic geometry, where the exercise  tell us to provide example of the image of polynomial map $f:\mathbb{C}^{m}\rightarrow \mathbb{C}^{n}$ that is not an algebraic set. But I am thinking that the image of every polynomial is $\mathbb{C}$ thus every polynomial map is surjective. What have I misunderstand? How long does it take for a black hole to form for an external observer? Automatic text wrapping in ArcMap layout text element? I'm not asking the diagonal values, but the length and breadth ones of the Nexus 7. And only of the LCD screen, not the entire hardware. Are there any rules on the positioning adverbs should take in a sentence? For example:     Ever wish you could share information broadly   Could it be rewritten to:     Ever wish you could broadly share information   Are there any rules for the position of the adverbs. Why does pluralization of compound words typically occur in the middle as opposed to the end of the word? As I understand, correct plural versions of passerby and attorney general become passersby and attorneys general.  But why?  With passerby, the the preposition "by" has been combined with the noun "passer" to become a one word noun "passerby".  So why shouldn't this be passerbys?  If I am an attorney general, and you are an attorney general, why are we not attorney generals?  As an American I have always heard it as attorneys general, however  suggests British English does use "attorney-generals" (as well as an interesting 2nd paragraph that further probes my question).  Are there hard rules to this topic?  Or merely generally accepted practices based on locale? Calculating the peak voltage of a zener diode output I have a problem with this homework, I have to calculate the peak voltage of the output after stabilizing with a zener diode.  My Input Voltage is Vin = 5V + 0.7Vsin (2pif*t) with f=10kHz  My circuit is a simple regulator with no load resistor. The series resistance is 82 Ohms, Zener voltage is 3V, max. current through the diode is 33.3mA. How can I calculate the peak output ? My problem is the offset created by 5V, wouldnt the Zener voltage be reached immidiately with this configuration ?         &ndash; Schematic created using Shows "unable to locate package unzip" error I have installed Ubuntu 12.04 server , shows    E:unable to locate the package unzip   the above error is also shown, if I try to install packages also. Can any one help me out to get out from this error.