Could any one help me to implement C structure data type in python? I need a similar structure data type in python as below.  struct msgbuf {    long mtype;    char mtext[100]; };
Is there a way to conveniently define a C-like structure in Python? I'm tired of writing stuff like:  class MyStruct():     def __init__(self, field1, field2, field3):         self.field1 = field1         self.field2 = field2         self.field3 = field3
How do you plot time on the X axis in excel? I need to plot the decay of my phone's battery against time over night. My starting time is 23:17:47 and my ending one is 07:05:49. I don't have any issue in changing the time format in the current one, selecting an XY chart and plotting time on the X axis.   The problem arises because Excel doesn't start the X axis at 23:17:47, but instead at 00:00:00, so my first value is drawn from the end of the graph and the goes back at the beginning when time values are over 00:00:00.   In other words, how do I set up the min time value to 23:17:47 and the max to 07:05:49 in excel? "It's cold today" -- what term do linguists use to call "it" when it's used as the subject of a sentence, but has no real antecedent? How come gas molecules don't settle down? If the earth's gravity exerts a net downward gravitational force on all air molecules, how come the molecules don't eventually lose their momentum and all settle down? How is the atmosphere is still miles thick after billions of years? Do you ever need to specify 'javascript:' in an onclick? In linear regression, when is it appropriate to use the log of an independent variable instead of the actual values? Am I looking for a better behaved distribution for the independent variable in question, or to reduce the effect of outliers, or something else? How to analyse 'Element not Found' exceptions when working with Selenium A person that professes discrimination based on race is a racist.  What is the word for defining a person that discriminates based on culture (pretty sure it is not culturist) or social habits?  E.g., Eric Cartman doesn't like hippies, he discriminates against them. But a hippie is not a race, an ethnic, a religion or a nationality. It is a life style not related to any of these. C++ deleting line of text in a file Let $R$ be a commutative ring with identity, and $S$ a multiplicative subset of $R$ not containing $0$. Which step in my reasoning is wrong?   Every element of $S$ is a unit in $S^{-1}R$. Every element of $S$ that's a zero divisor in $R$ is a zero divisor in $S^{-1}R$. But zero divisors can't be units. Therefore it's not possible to localize $R$ at $S$. How does Cycles work and how is it different from Blender Internal?  Which is better? How about a "Vote not to close" option to counter the "Vote to close"? My request is simple: Many times, there will be a question where some people feel like it should be closed. At the same time, I'll feel like it's a perfectly legit question, and it should therefore NOT be closed. Right now, I have to wait till it gets enough close votes (which it always does for some reason, as soon as 1 or 2 people vote to close, e/o else decides to vote as well) and then vote to re-open. How about, as soon as there's one vote to close, there should be an option to counter the close vote, something like "vote not to close" or whatever. This would then bring the "Vote to close" number down by one. Only when the vote to close outnumbers the vote not to close by 5, that's when a question is indeed closed. Any thoughts? If $f:\mathbb R \to \mathbb R$ satisfies $f'(x) <L$ for some $L<1$, then $f$ has a unique fixed point Assume that $f: \mathbb{R} \rightarrow \mathbb{R}$  is differentiable.  If there exists an $L&lt;1$ such that for each $x \in \mathbb{R}$, $f'(x)&lt;L$, prove that there exists a unique point $x$ such that $f(x)=x$.  So far I have that where I fixed $a$ to be zero and came up with three cases to show existence for  $f(0) = 0$, $f(0) &lt; 0$, and $f(0) &gt; 0$  $f(0)=0$ was fairly trivial following from the mean value theorem but the other two cases I was only able to eliminate half of the possible fixed points by contradiction and I need help showing it explicitly.  Edit as to avoid confusion here is the work I have garnished so far:  From the mean value theorem it follows for some arbitrary $a,b \in \mathbb{R}$ and $a\neq b$ that there exists a point $c$ such that $a&lt;c&lt;b$ or $b&lt;c&lt;a$ then implies that $\frac{f(b)-f(a)}{b-a}=f'(c)$ and this is because it is differentiable on $\mathbb{R}$ and, by convention, is also continuous on $\mathbb{R}$ as well.  Then the result of $\dfrac{f(b)-f(a)}{b-a}=f'(c)$ then follows for $L&lt;1$ such that $\forall x \in \mathbb{R}$ means $f'(x)&lt;1$ from our hypothesis. Which then follows  (*) $\dfrac{f(b)-f(a)}{b-a}=f'(c)&lt;L&lt;1 \Rightarrow f(b)-f(a)&lt;L(b-a)&lt;b-a$  Now without loss of generality choose $a=0$ and let $b$ be some arbitrary value in $\mathbb{R}$ then there are three cases that need to be considered for the value of $f(a)$:  (i) $f(0) = 0$, (ii) $f(0) &lt; 0$, (iii) $f(0) &gt; 0$  (i) For $f(0)=0$   Then $0$ is a fixed point of point of $f(x)$ and it follows from (*) that if $f(0)=a=0$ then $f(b)-f(0)=f(b)&lt;Lb&lt;b$ which shows that $f(b)&lt;b$ thus shows that for any arbitrary value $b\in \mathbb{R}$ that no $f(b)=b$ thus shows that $0$ is the only fixed point if $f(0)=0$  (ii) For $f(0)&lt;0$  Suppose there exists a fixed point $d&gt;0$ then:  $\frac{f(d)-f(0)}{d}&lt;L&lt;1 \Rightarrow d-f(0)&lt; dL&lt;d \Rightarrow -f(0)&lt;d(L-1)&lt;0\Rightarrow 0&lt;-d(L-1)&lt;f(0)$ but this contradicts that $f(0)&lt;0$  thus no other fixed point exists if $d&gt;0$ when $f(0)&lt;0$  (iii) For $f(0)&gt;0$ Is there a way in blender or an addon that allows me to select a bunch of faces (or verts) and evenly distributes (or relaxes) them into quads clean quads.  Without screwing up the vert ID/order.  Edit: I would like to have the shapes of my quads to turn into perfect squares while maintaining the volume of the object and the vertex order. JavaScript property access: dot notation vs. brackets? Why does the base of this slinky not fall immediately to gravity? My guess is tension in the springs is a force > mass*gravity but even then it is dumbfounding. I realise it's unlikely that posting the file would cause a problem. However, since I know nothing about what a what's in a minidump file I thought I should check. I had Windows 8 installed on my system, which I screwed up, and now I run Ubuntu 12.04. While installing, Ubuntu used all the 461 GB of HDD space (one partition).   Now I want to make a new partition of maybe 100 GB or so, in order to install Windows 7 alongside Ubuntu (with a dual-boot). But I can't even get a partition done. I can't change the partition in GParted either - the option is disabled. How can I split multiple joined words? I have an array of 1000 or so entries, with examples below:  wickedweather liquidweather driveourtrucks gocompact slimprojector   I would like to be able to split these into their respective words, as:  wicked weather liquid weather drive our trucks go compact slim projector   I was hoping a regular expression my do the trick.  But, since there is no boundary to stop on, nor is there any sort of capitalization that I could possibly key on, I am thinking, that some sort of reference to a dictionary might be necessary?    I suppose it could be done by hand, but why - when it can be done with code! =)  But this has stumped me.  Any ideas? Prove that inequality $\sum _{cyc}\frac{a^2+b^2}{a+b}\le \frac{3\left(a^2+b^2+c^2\right)}{a+b+c}$ Why does everyone's wand still work for them?