how to compare time with 4:00:AM
How might I schedule a C# Windows Service to perform a task daily?
I made something like this:    I did this with the Ellipse Tool and the Line Tool.  Now the circle is accurate, but the lines inside are very inaccurate. Is there another tool that does the same thing but with a lot more accuracy? Why are memory statistics in top and htop different? Whenever I use top and htop commands to see memory stats, they are always different as shown in figures. Which should I trust? Schema for a multilanguage database I'm developing a multilanguage software. As far as the application code goes, localizability is not an issue. We can use language specific resources and have all kinds of tools that work well with them.  But what is the best approach in defining a multilanguage database schema? Let's say we have a lot of tables (100 or more), and each table can have multiple columns that can be localized (most of nvarchar columns should be localizable). For instance one of the tables might hold product information:  CREATE TABLE T_PRODUCT (   NAME        NVARCHAR(50),   DESCRIPTION NTEXT,   PRICE       NUMBER(18, 2) )   I can think of three approaches to support multilingual text in NAME and DESCRIPTION columns:   Separate column for each language  When we add a new language to the system, we must create additional columns to store the translated text, like this:  CREATE TABLE T_PRODUCT (   NAME_EN        NVARCHAR(50),   NAME_DE        NVARCHAR(50),   NAME_SP        NVARCHAR(50),   DESCRIPTION_EN NTEXT,   DESCRIPTION_DE NTEXT,   DESCRIPTION_SP NTEXT,   PRICE          NUMBER(18,2) )  Translation table with columns for each language  Instead of storing translated text, only a foreign key to the translations table is stored. The translations table contains a column for each language.  CREATE TABLE T_PRODUCT (   NAME_FK        int,   DESCRIPTION_FK int,   PRICE          NUMBER(18, 2) )  CREATE TABLE T_TRANSLATION (   TRANSLATION_ID,   TEXT_EN NTEXT,   TEXT_DE NTEXT,   TEXT_SP NTEXT )  Translation tables with rows for each language  Instead of storing translated text, only a foreign key to the translations table is stored. The translations table contains only a key, and a separate table contains a row for each translation to a language.  CREATE TABLE T_PRODUCT (   NAME_FK        int,   DESCRIPTION_FK int,   PRICE          NUMBER(18, 2) )  CREATE TABLE T_TRANSLATION (   TRANSLATION_ID )  CREATE TABLE T_TRANSLATION_ENTRY (   TRANSLATION_FK,   LANGUAGE_FK,   TRANSLATED_TEXT NTEXT )  CREATE TABLE T_TRANSLATION_LANGUAGE (   LANGUAGE_ID,   LANGUAGE_CODE CHAR(2) )    There are pros and cons to each solution, and I would like to know what are your experiences with these approaches, what do you recommend and how would you go about designing a multilanguage database schema. O-Rings vs. Washers for Garden Hoses? I am trying to identify the general case algorithm for counting the different ways dice can add to a given number.  For instance, there are  with two 6-dice.  I've spent quite a bit of time working on this (for a while my friend and I were using Figurate numbers, as the early items in the series match up) but at this point I'm tired and stumped, and would love some assistance.  So far we've got something to this effect (apologies for the feeble attempt at mathematical notation - I usually reside on StackOverflow):  count(x):    x = min(x,n*m-x+n)    if x = n       1    else       some sort of (recursive?) operation   The first line simplifies the problem to just the lower numbers - where the count is increasing.  Then, if we're looking for the count of the minimum possible (which is also now the max because of the previous line) there is only one way to do that so it is 1, no matter the n or m. I know a lot of female programmers, and I know there are a good number of them out there.  But I don't recall ever having one of my questions answered by, nor have I ever answered a question by a female programmer here at Stack&nbsp;Overflow.  Now I mostly deal in the Delphi tag, and that may make a difference. But I've got the feeling there is something about the programming social network that Stack&nbsp;Overflow is, along with its form of mini-competition (via reputation) that turns most ladies off.  When I go down the first few pages of top users by rep, there is nary a lady to be found.  Go over to Quantcast and . Go down to the Demographics, and you'll see that a full 20% of the visits are by females. So they are here, lurking and using the wonderful info that Stack&nbsp;Overflow provides.  Then why aren't there more of them participating, both with questions and answers?  What can Stack&nbsp;Overflow do to persuade female programmers to participate more?    So after a dozen downvotes offset by a dozen upvotes, and accusations by many that I am a bigot, the bottom line seems to be that Stack&nbsp;Overflow appeals to males more than females.  This is my observation and I believe a proper analysis would support the hypotheses that a much higher percentage of male programmers use Stack&nbsp;Overflow than the percentage of female programmers.    Assuming that is the case, then Stack&nbsp;Overflow is geared more towards the male psyche than the female. If so, I again ask, what can they do about that?      This question was asked in StackOverflow Meta on November 20, 2009. It was made Community Wiki. It was asked in a constructive manner and should be considered an appropriate question for Meta.   Yet it was closed over two years after it was asked as "not constructive" after more than 40 upvotes and 10 favorites and 16 answers.   Now it resides here on Meta StackExchange, still closed. I just shake my head. SharePoint Current User View using JavaScript Simplify a combinatorial sum Why is $\sum_{k=0}^n (_k^n) 2^k$ simplified as $3^n$ and not just $2^n$ ? The answer uses the binomial theorem as a solution: let $a=1$ and let $b=2$. So $1+2 = 3$. But since $1+2 = 3$ why do we not use $1+1 = 2$? How general is the Lagrangian quantization approach to field theory? It is an usual practice that any quantum field theory starts with a suitable Lagrangian density. It has been proved enormously successful. I understand, it automatically ensures valuable symmetries of physics to be preserved. But nevertheless the question about the generality of this approach keeps coming to my mind. My question is how one can be sure that this approach has to be always right and fruitful. Isn't it possible, at least from the mathematical point of view that a future theory of physics does not subscribe to this approach? Prove $4(x + y + z)^3 > 27(x^2y + y^2z + z^2x)$ Prove that, for all positive real numbers $x$, $y$ and $z$, $$4(x + y + z)^3 &gt; 27(x^2y + y^2z + z^2x)$$  I've tried expressing it as a sum of squares, but haven't got anywhere.   Hints are also welcome. Understanding UNIX permissions and file types How to disable captive portal detection? How to remove exclamation mark on Wi-Fi or signal icon in Lollipop? Very simply put:  I have a class that consists mostly of static public members, so I can group similar functions together that still have to be called from other classes/functions.  Anyway, I have defined two static unsigned char variables in my class public scope, when I try to modify these values in the same class' constructor, I am getting an "unresolved external symbol" error at compilation.  class test  { public:     static unsigned char X;     static unsigned char Y;      ...      test(); };  test::test()  {     X = 1;     Y = 2; }   I'm new to C++ so go easy on me. Why can't I do this? I'm trying to get images in my document in two different ways:   On top of the entire page, centered On top of a single column   I tried it with both twocols and multicols. I ruled out twocols because it forces a new page every time you turn it on, because I need the abstract to be wide and the rest of the cover page to be two columns.  Here are some examples of both points (screenshot from a downloaded PDF):   I want to achieve both, but somehow I can only solve the first point with:  \end{multicols}  \begin{figure}   \centering     \includegraphics[width=0.5\textwidth]{figure}   \caption{Dataflow pipeline of the edge detector}   \label{fig:workflowedge} \end{figure}  \begin{multicols}{2}   Is it awkward to turn off multicols, then turn it back on again?  For my second point, I've tried everything, but almost always, the image doesn't show up at all! The only way I can get it to show at all is by specifying the H placement specifier, but that places the image inside the text where I defined it, not on top of the column.  This is my best try, but it hides the image and breaks all references to ??:  \begin{figure}[t!]   \centering     \includegraphics[width=0.25\textwidth]{figure}   \caption{Dataflow pipeline of the edge detector}   \label{fig:workflowedge} \end{figure}   and I'm getting the warning:  Package multicol Warning: Floats and marginpars not allowed inside `multicols' environment!.   How can I make a figure a non-float?  I also tried the figure* environment, but that just creates an image centered on top of the page, like my first point. Why don't elves have more babies? What happens when a black hole dies? Does it just vanish into space leaving nothing behind or does it expel some material?    Also, talking more about black holes, as far as I understand the term "temperature", it is defined by the amount of kinetic energy of the particles of a body and from what I have read, there are no particles inside a black hole, I know that you can find the temperature of a black hole by analyzing its Hawking radiation but I cant really understand how the term "temperature" can be applied to a black hole. Does it mean that whatever is that it is inside a black hole has kinetic energy? Have physicist already experienced the death of any regular black hole (by regular I mean space-sized black holes not micro ones created in labs)? Also, where is the Hawking radiation form? Because if it is released by the black hole I bet it must have formed outside the event horizon, but how exactly? Is there Ubuntu's analogue of snapshot.debian.org? Entropy increases when two substances mix with each other.  For example, the entropy of mixing of two different gases are given by $$\Delta S= 2Nk\ln\frac{V_f}{V_i}\;.$$  But, the entropy doesn't increase when the two gases mixing are same.  This is pointed by Daniel V Schroeder:     It's important to note that this result applies only if the two gases are different like helium and argon. If you start with the same gas on both sides, the entropy doesn't increase at all when you remove the partition.   Now, why is this so? Both the gases, though the same, increase their individual entropies when they expand, don't they?  So, why did Schroeder say there is no entropy of mixing? What actually happens such that there is no change in entropy when the gases are the same? Strangely low reputation How is this possible that the user with  question only has that little reputation? I've checked his site and he doesn't have a lot of downvotes or bounties. If the sum of $n$ cubes is zero, then the sum must be no larger than $\frac n3$. Assume that $a_1,...a_n$ are real numbers and $-1 \leq a_i\leq 1$ for $1\leq i\leq  n$. If $$a_1^3+\ldots +a_n^3=0$$ Then show that $$a_1+a_2+\ldots+a_n\le n/3$$   I just came cross this problem the other day. I totally have no idea how to prove it. Are there any hints about which theorem, principle or method to apply?