changing properties of div element from javascript
How to change css property using javascript
I have a .net client application which is connected to a remote database. Is it safe to keep a single connection open for the lifetime of the client (hours)? Does the answer hold if I have multiple (10 or 100) clients running? What is the difference between ANSI/ISO C++ and C++/CLI? mysqldump, preserve update_time and modify_time attributes as listed by show table status from Does mysqldump preserve the create_time and update_time attributes that are output by show table status from?  If not, is there an option that does this?   it looks like mysqldump preserves this data if you export to XML. EDIT: Well the data is included in the export. Whether it's read in at the other end I'm not sure.  Is there a way to do this with a normal .sql dump? So, to explain the title, I'm referring to the necessity of the axiom of choice in the existence of a well ordering on reals, or any uncountable set.  Now, while tweaking some sets, I came across this :  We start with the natural numbers, $N$. We take the power set of the naturals, $P(N)$.  Then we remove all the finite subsets of $N$ from $P(N)$. Let us call this new set $S$. This set is the set of all infinite subsets of $N$.  It is easy to show that $S$ has uncountable cardinality, same as that of real numbers. This is because the removal of finite subsets only removes a countable number of elements. (Haven't posted this deduction, for it is very easy, but I may post it if it is not so evident)  Now, we seek to find an ordering on the set $S$. Every set in this set is an infinite subset of natural numbers, so each of these sets are well ordered by the natural ordering of $N$.  Taking any two sets in $S$, say $A$, and $B$, we seek to order them by checking their elements lexicographically. We compare the first two elements in $A$, and $B$. Let them be $a_1$, and $b_1$ respectively. If $a_1 = b_1$, then we move on to the second elements in the sets, $a_2$, and $b_2$, and so on. If, at any point, $a_n &lt; b_n$, then $A &lt; B$, or if $b_n &lt; a_n$, then $B &lt; A$.  This order seems to be a well ordering of the uncountable infinity of reals. I don't seem to have invoked the axiom of choice anywhere in the construction of this set $S$.  So, why isn't this a well ordering on the uncountable of reals? I'd like to install a  client for Xubuntu (12.04).  I'm getting non-English Google results, and I didn't find  in the Xubuntu repositories.   Does anyone know of a client that works well for Ubuntu or it's supported derivates (or installation instructions for grive?) Is better healthcare a bane to the long-term survival of the human race? The theory of natural selection has it that individuals with better genes tend to survive and reproduce, passing their genes to their offspring. This gradual process results in a population more adapted at survival. However, due to the advancement in medical science, humans with poorer genes tend to survive and reproduce just as well.  For example, in the past, many people, excluding those with natural immunity due to some genetic mutations, would have succumbed to illnesses such as malaria and typhoid. But with better hygiene and medical treatment, these patients tend to survive.  Now, imagine a future where all illnesses including cancer can be treated. How would it impact the survival of the human race? Would we become more and more vulnerable such that our survival hinges heavily on medical technology, analogous to how an astronaut's survival is dependent on his spacesuit? If I push or hit an object in space will it rotate or move along a straight line? Every time I think I have the curve modifier mastered, it throws me a another curve ball (no pun intended).  Why in  can I not get the lights to follow the spiral curve? When the modifier is activated, the lights are stretched and distorted along the curve.  I created the curve by converting it from a mesh (string of verts). Why does it not display like a normal Bezier? Is that related to my problem?  I am following all the "rules" that I am aware of, as detailed here: . The curve seems to run in the correct direction. The origin point is at the first point of the curve. The curve modifier on the lights is set to -Y which is the local orientation of the curve's direction.  What am I missing? How to make child process die after parent exits? Suppose I have a process which spawns exactly one child process. Now when the parent process exits for whatever reason (normally or abnormally, by kill, ^C, assert failure or anything else) I want the child process to die. How to do that correctly?    Some similar question on stackoverflow:   (asked earlier)  (asked later)      Some similar question on stackoverflow for Windows: Connecting multiple grounds As I'm relatively new to the electronics world, I was wondering if you can connect multiple  ground terminals (corresponding to several different voltage outputs) to the same ground. Or do they each need their own?  In my case I have 5 lines, one 12V, one 3.3V, two 5V and one variable from a 12V in using a  voltage regulator that already has its own ground. So I'm guessing that each would need its own ground, but it is never bad to ask. Inequality with Binomial distribution Let $n$ and $1\leq k \leq n$ be natural numbers. Prove the inequality     $$\sum_{i=k}^n \binom{n}{i}\bigg(\frac{k}{n+1}\bigg)^i\bigg(1-\frac{k}{n+1}\bigg)^{n-i} \leq 1 - \frac{1}{e} $$  Equivalently, if $X\sim$ Bin($n$,$\frac{k}{n+1}$), prove that $\mathbb{P}[X\geq k] \leq 1 - \frac{1}{e}$.   My attempt: It may be helpful to show that the LHS tends to $1-\frac{1}{e}$ as $n \to \infty$ (already did that) and that the LHS is an increasing function on $n$ (have not done that). Uk Visa Refused need guidelines etc,,, I am from Pakistan I applied for 4x Weeks UK family visit visa with my 6x years daughter and they refused, my refusal issue is same. I am going to quote my refusal letter.     You stated they you are employed with A----- company and Earning Rs. ____ per month in support of your application you have provided a latter from your employer. However  I am not satisfied that one document alone demonstrates that you have the employment status and earning claimed. You also state that your spouse is employer with ___ Company and Earning Rs. ____ per month in support of your application you have provided a latter from your employer However  I am not satisfied that one document alone demonstrates that you have the employment status and earning claimed with out further corroborating evidence. I note that you have declared no other personnel income, savings or assets. Based on the information provided i am not satisfied that your circumstances are as claimed and that you have demonstrated strong economic financial ties to Pakistan.  It is your responsibility to satisfy me that your circumstance in Pakistan are such that if granted leave to enter you will abide by all the conditions attached to any such leave and that you will leave the uk on completion of the proposed visit  but you have failed to do so. therefore I am not satisfied that  you are seeking a genuine visit or that you intend to leave the uk at the end of your visit  your application for visit visa has been refused  paragraph V4.2(a) and (c) I am not satisfied that you have sufficient funds to cover all reasonable costs in relation to your visit including the cost of your journey. any cost relating to dependents and the cost of any planned activities. your application for visit visa has been refused under paragraph V4.2(e).  ,,,   These objections and reasons are not as like they thinking I have my bank statement and transactions including Rs. 4 lac balance I have transactions of my salary in statement and my husband recently employed he is also have his salary transaction in the same statement because we both using our joint account.  I just want to go Uk and meet my family for 4x weeks and I am with my 6 years daughter my husband is not going with us due to his job.  Now please guide me should I go for Administration review and provide them my bank statement because my visa rejected on 26 July 2016 I still have time period for administration review OR I should reapply immediately to remove all these objections and give them more evidences I mean bank statement and our pay slips etc? Kindly guide me what to do which way will work.. Your quick help and guidelines will help me. Disabling SSLv3 but still supporting SSLv2Hello in Apache Many SSL clients, notably JDK 6, use the SSLv2Hello protocol to handshake with the server.  Using this protocol does not mean you are using SSL 2.0 or 3.0 for that matter; it is merely a handshake to determine which protocol to use.  [  However, in Apache, if you disable SSLv3 support, this apparently removes support for the SSLv2Hello protocol.  Apache Tomcat has explicit support for SSLv2Hello; that is, you can enable that, but not enable SSLv3.    Is there any way to do this in Apache?    [Update]   This is my protocol config:    SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2 -SSLv3 How can I make a time delay in Python? I would like to know how to put a time delay in a Python script. How do I use RSolve to solve a system of recurrence relations? Find the value of $P(1)$ Let $P (x) = x^2 + bx + c$, where $b$ and $c$ are integer.       If $P(x)$ is a factor of both $x^4 + 6x^2 + 25$ and $3x^4 + 4x^2 + 28x  + 5$, find the value of $P(1)$.   I am not being able to solve this.Some hints/suggestions?  Tell me if I can edit to improve this question.I could'nt try much.Got stuck. Aliens abduct mathematician, astronomer, woman Bits I remember about this SF movie which probably originated in late 50s / early 60s:   Humans are flying in a light, general aviation, high winged, single engine aircraft. An alien in a flying saucer abducts the whole kit &amp; kaboodle (plane &amp; passengers). Takes them to a secret terrestrial base Eventually tells them that his computer is damaged and he needs their help to get back to his planet. He needs an astronomer for planetary masses &amp; other information. He needs a mathematician to calculate trajectories and perform other calculations. He needs the woman as eye candy, lol They eventually make it back to the alien home planet which is under attack by its enemy. The attacking aliens are bombarding the original alien's home planet with meteors / asteroids.   That's about all I remember. Suppose the mean noon-time temperature for September days in San Diego is 24∘ and the standard deviation is 4.9. (Temperature in this problem is measured in degrees celsius)  On September 26, 1963, the all-time record of noon-time temperature in San Diego of 44∘ was hit. Assume the temperature distribution is symmetric around the mean, what is the Chebyshev bound for the probability of breaking (or tieing) this record?  I am having a hard time understanding this. Could someone explain to me how to do this? How many passes do you need to wipe/shred your files to make them not undeletable? What is a plain English explanation of "Big O" notation?