How to use Hibernate @Index annotation properly?
Creating Indexes on DB with Hibernate @Index Annotation
iOS: How to change app language programmatically WITHOUT restarting the app? How many ways can $r$ nonconsecutive integers be chosen from the first $n$ integers? Does "std::size_t" make sense in C++? In some code I've inherited, I see frequent use of size_t with the std namespace qualifier.  For example:  std::size_t n = sizeof( long );   It compiles and runs fine, of course.  But it seems like bad practice to me (perhaps carried over from C?).  Isn't it true that size_t is built into C++ and therefore in the global namespace?  Is a header file include needed to use size_t in C++?  Another way to ask this question is, would the following program (with no includes) be expected to compile on all C++ compilers?  size_t foo() {     return sizeof( long ); } The  (click on your number of helpful flags in your profile) is cool, however some posts have a gray background, some don't. What does it mean?  example: URLs: Should I use hyphens, underscores or plus symbols? Which is better for search engines?   example.com/my_cool_page.html example.com/my-cool-page.html  example.com/my+cool+page.html Via command line, I have a log file I'd like to keep track of.  What I want is to have, basically, a tail that refreshes when the log is updated making the text scroll upwards as new lines are appended to the log file.  Is there anything out there that does that without having to write some code? Why do some people use $+\infty$ instead of $\infty$? Why do some people use $+\infty$ instead of $\infty$? Because we usually denote minus infinity as $-\infty$, I think it is sufficient to denote plus infinity as $\infty$. Are there any reasons for this notation? I saw that many people majoring analysis use like $\int_0^{+\infty}$ or $\sum_{j=1}^{+\infty}$ or $\bigcup_{j=1}^{+\infty}$ which is not related to the unsigned infinity. Unicode applies the convention of using a  as signature at the beginning of a text stream, identifying the encoding used within it. The following three bytes at the beginning of a file: EF BB BF, identifies this file as a UTF8 file. Vi and most text editors gracefully ignore this signature. Open office does that as well, but it adds this signature at the beginning.  Now, if I open a TeX file with OpenOffic.org, and I do that quite a lot (for mixed directionality editing), the signature is added, and baffles LaTeX, which produces an error message such as:   ! LaTeX Error: Missing \begin{document}.   See the LaTeX manual or LaTeX Companion for explanation.  Type  H &lt;return&gt;  for immediate help.  ...                                                l.1   ��\documentclass{article}   whereas a simple dump of the file does not show the problem. Is there a way to eliminate this problem, while staying in the realm of latex? I am developing a game with a Minecraft-like terrain made out of blocks. Since basic rendering and chunk loading is done now, I want to implement block selecting.  Therefore I need to find out what block the first person camera is facing. I already heard of unprojecting the whole scene but I decided against that because it sounds hacky and isn't accurate. Maybe I could somehow cast a ray in view direction but I do not know how to check the collision with a block in my voxel data. Of course this calculations must be done on the CPU since I need the results to perform game logic operations.  So how could I find out which block is in front of the camera? If it is preferable, how could I cast a ray and check collisions? Standard Visitor visa refusal (Deception, V3.6(b)) and procedure for reapplying My mother acquired a criminal record in UK in 2010 when she was given a conditional discharge for 12 months and charged £85. This time while applying the on-line applications for her, I accidentally missed the criminal records column and replied "NO". The visa was refused with appeal and administrative review not allowed.  Can someone please suggest my next course of action for reapplying for a visa  It is an extremely urgent family matter, and I want the visa as early as possible. While researching I found in a blog some mention of a forwarding letter while reapplying.  Can someone please enlighten me on the entire issue? Are there other governments in The Hunger Games world? We know that Panem exists in a post-apocalyptic North America but are there other established governments on other continents? How are release codenames chosen? How to know if Google Sheets IMPORTDATA, IMPORTFEED, IMPORTHTML or IMPORTXML functions are able to get data from a resource hosted on a website? Google Sheets has several import functions   IMPORTDATA IMPORTFEED IMPORTHTML IMPORTXML   Sometimes the above functions returns errors like #N/A Imported content is empty and would like to be sure that there isn't a problem with the resource content to be imported.  How do I know if these functions are able to get the content that I looking to import?  I know that there also exist IMPORTRANGE but that function only is able to import content from Google Sheets spreadsheets Low output volume Can a university revoke one's degree for his minor misconduct? Unicode char {U+200B} When I try to cite more than two authors, I got this: ! Package inputenc Error: Unicode char ​ (U+200B) (inputenc)                not set up for use with LaTeX.   \documentclass[a4paper,oneside,BCOR=10mm,12pt,titlepage]{scrreprt}  \usepackage[polutonikogreek,ngerman,english]{babel} \usepackage[maxlevel=4,autostyle,german=guillemets]{csquotes} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[style=mla]{biblatex} \DeclareMultiCiteCommand{\parencites}[\mkbibparens]{\parencite}{\multicitedelim‌​}  \begin{document}  \parencites[cf.][]{key1}{key2}{key3}  \end{document} How should we cope with 12 month old waking in the night? We are trying to get our 12 month olds sleep routine improved now that both of us will be returning to work.  We've been working on getting the settling routine sorted out each night, and haven't quite yet got to him falling asleep on his own, but he does now settle quickly at the end of the routine in our arms.  We will be moving to trying to get him to settle in his cot soon.  Once settled he will tend to do about 3-4 hours in his cot before waking screaming.  When cuddled he will settle down in about 10 minutes and can generally be put back in his cot.  However often he will wake several times.  Last night he went down at 8, woke at 10, woke at 12, woke at 1am.  Each time putting him back in his cot.   At that point we gave up and brought him into our bed where he slept through to 6am.  When waking up he is often on either all fours or standing in the cot whilst screaming.  The main problem is that he's no longer sleeping "solidly" and will often poke and prod his mum in his sleep, and she therefore doesn't get a great nights sleep.  And with us both back to work we both need our sleep as much as possible. Question: If $(1+x)^n=\binom{n}{0}+\binom{n}{1}x+\binom{n}{2}x^2+\dotsm+\binom{n}{n}x^n$, prove that $\binom{n}{1}-2\binom{n}{2}+3\binom{n}{3}-\dotsm+(-1)^{n-1}n\binom{n}{n}=0$  My attempt:  I wrote the expression for $\binom{n}{k}$ for each term in the L.H.S and then tried to simplify but could not reach the R.H.S.  Please help. I have no idea on how to begin. I am not allowed to use calculus. A characterisation of quadratic extensions contained in cyclic extensions of degree 4 If you're interested in grammar, as I am, I am sure you have delved into a thought process about infinitive to, and like me, you have probably questioned what it is, or what it could be defined as. My mind always wants to place it in the Eight Parts of Speech, and I know this is foolish of me to some regard, so I stray from it, but I still wish to designate it under something that can be explain it. So, this is the motivation for this post, this question: What is the infinitive to, and why?  Here are my thoughts: There are three real possibilities, going back through the times. First, we can say that it is part of the verb that comes after it (to go, to run, etc.). This could be supported by the claim that you are not supposed to "split" infinitives ("To boldly go"), but only that.   Secondly, we could consider it a subordinator. I came across this designation most recently in my studies of modern and transformational grammar. As of right now, it is still the one I accept, especially as a result of the trend of designating more phrases as clauses. It works, except it's weird. Do we call this a unique subordinator as a result of how it operates? For example, to-infinitive clauses call for non-finite verb forms, which typically have an implied subject as a part of their clause. For example, "I want to go to the store." In the infinitive clause, "I" is the implied subject, as a understand. So, again, this works. However, things get a little weird when other subordinators come into play. For example, "I'm excited for you to win the competition." Now, if I'm right, those of you will say that "for" is a preposition here, as a result of the new-grammar stuff, but I'm going to count it as a subordinator, as defined by my own beliefs and that of a lot of other grammars. So, how do the clauses work in such a sentence? According to transformational grammar, "for you to win the competition" is defined as an ordinary clause. So, does that mean that it also contains a secondary clause within itself (the infinitive clause part)? If so, how do those two clauses work in conjunction to each other when one is so integrated? "For you to win the competition" looks to just be one clause, but if that's the case, doesn't "to" have to represent something else?  This moves us on to the third way to look at things, which is to consider "to" as auxiliary verb, a defective one at that. There are a lot of things to support this, and it even allows for the split infinitive. Furthermore, it calls for a non-finite verb form to follow, like an auxiliary. But, as I said before, it's defective in the way that is all it can function as.  As I said, I still accept to as a subordinator, but I want to be proven wrong or right. Wrong by showing evidence of it being something else, or right by showing how clauses operate when it seems to be layered up.