I used \newtheorem{definition}{Definition}[section] \newtheorem{proposition}[definition]{Proposition}  so that the numbering goes on as if proposition and definition are &quot;the same object&quot;. But the problem is if I use \cref{...some proposition name...}, then the output is not &quot;proposition 2.7&quot;, but &quot;definition 2.7&quot;. How can I fix this problem?
I am trying to use the  package.  I have the following counters defined (hopefully this is the right way to do it!)  \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary}   This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.)  My problem is \cref always returns Theorem 1.2, Theorem 1.3. I   Perhaps this is not right? (In my preamble)  \crefname{thm}{theorem}{theorem's} \crefname{lemma}{lemma}{lemma's}
Set the Max depth parameter of both the Reflection and Refraction roll-out to 10. I am not sure whether roll-out should be plural or not in this particular case. android - out of memory exception when creating bitmap Idiomatic phrase for small type words at end of a document Is there a phrase in English that that can be used in the following situation:  You read an article and from the title you understand that this is something positive, but if you read it all, very carefully, you will see that "small words" at the end reveal the reality.  The same situation is when signing contracts, when something negative for the customer is indicated in the end with small letters Finding $E(|X_1|\ |\max |X_i| )$ Suppose $X_1,\ldots,X_n$ are a random sample of $U(-\theta,\theta)$ with $\theta&gt;0$. How can find $$ E\left(|X_1|\ \big|\max |X_i| \right) $$ that $1\leq i\leq n$? I have a common scenario in app design, where I need to store an ordered list, and make the ordering easily accessible and adjustable via an application UI.    The ordering operations are simple and operate on only one item at a time - move to top, move to bottom, move up one position, or down one position.  These positioning operations may be interspersed in with typical add / edit / delete list operations.  For discussion, this is a single-user app and db store.  Because the objects can be highly complex, I'd like to avoid caching the entire list client-side, and tracking newly created objects in memory until a big save operation occurs.    I am using MS-SQL almost exclusively on these projects, and I'm wondering if there are db features, SQL features, or design patterns I should be using to better support the management of ordered lists.    My current approach is to use a DECIMAL column to store the list positions, which become fractional during the item move process.  Then I sort the list and re-generate integer positions to normalize list.  Following this operation, it's ready for another item move.   In an example implementation, I create a column named Seq for position tracking.  Once decimal place is enough for the .5 storage.   [Seq] [decimal](10, 1) NOT NULL   When an item is re-positioned in the app UI,    I UPDATE that record with new Seq value I retrieve the full table, sorted ascending by Seq and regenerate all Seq values in the table from a 1-based integer series   The new Seq value is easily calculated-    Move to top = 0 Move to bottom = MAX(Seq) + 1 Move up = subtract 1.5 from the current Seq value Move down = add 1.5 to the current Seq value   As lists get longer, updates get slower, since I'm doing N UPDATE statements, where N is the number of rows in the table, so it seems only suitable for small tables.    Is there some kind of in-built capability for managing an ordered list in SQL or MS-SQL? Is there a means to update multiple rows in one call?    A far more performant approach would be to allow more decimal places, and then position at the median of the two adjacent items, with no re-sequencing on the list.     Move to top = Min(Seq) - 1 Move to bottom = MAX(Seq) + 1 Move up = median of the 2 previous item Seq values Move down = median of the 2 following item Seq values   This approach only requires one SELECT (containing 2 rows max) and one UPDATE.    However with enough re-positions I imagine the field would run out of decimal places. For example, if I start with items at positions 10 and 11, and keep moving items down the list from position 9, they'd be given sequences of 10.5, then 10.25, then 10.125.  After 10 moves, the positions get lengthy... 10.0009765625.    UPDATE #1 - IMPROVED RE-SEQUENCING OF THE LIST  Regarding re-sequencing, I'm more caught up on row_number(), OVER, and WITH capabilities in MS-SQL.  It's nice to find that there's a much smoother way to re-sequence the list in a single UPDATE operation;  with OrderedItems as  (     select         ItemID,         Seq,         row_number() over (order by Seq asc) NewSeq     from          Items ) update OrderedItems set Seq = NewSeq Ignore Pulses Less than a Given Width in a Pulse Train Let's say I have a 5V pulse train that varies between 0 and 75000 pulses per second. Pulse width, let's say, is 5 microseconds. How could I calculate or determine the best way to filter out all pulses less than 4 microseconds in width? "An error occurred when reviewing this item" On approving an edit, I just get this pop up since morning. At first I thought there might be some internet connection issue, but this is now the 3rd to 4th time I got the same error; also, the review is accepted because on refresh I can see my name with approved text beside, but it still throws this error.    I am on a Windows 7 machine, running Firefox 24 (Icognito/Private Mode)    Also, this happens only when edit(1) is written on an question/answer, I don't go to review queue and approve, these reviews were directly loaded from the notification beneath the question/answer.  Martijn Pieters reproduced the problem from the review queue three times; each time the improve option was picked, accepting the suggested edit but editing the post some more. The network console shows that posting to https://stackoverflow.com/review/task-reviewed fails, the server responds with a 404 error:  Request headers: POST /review/task-reviewed HTTP/1.1 Host: stackoverflow.com Connection: keep-alive Content-Length: 137 Accept: application/json, text/javascript, */*; q=0.01 Origin: http://stackoverflow.com X-Requested-With: XMLHttpRequest User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 Content-Type: application/x-www-form-urlencoded DNT: 1 Referer: https://stackoverflow.com/review/suggested-edits/3575396 Accept-Encoding: gzip,deflate,sdch Accept-Language: en,en-US;q=0.8,nl;q=0.6,nb;q=0.4,no;q=0.2,de;q=0.2,fr;q=0.2 Cookie: &lt;redacted&gt;  POST data: taskTypeId=1&amp;reviewTaskId=3575396&amp;taskResultTypeId=5&amp;fkey=f8791a329b445b658876f4d3afe7961e&amp;postCommentId=null&amp;taskResultSubtypeFlags=null  Response headers: HTTP/1.1 404 Not Found Cache-Control: private Pragma: no-cache Content-Type: application/json X-Frame-Options: SAMEORIGIN Date: Fri, 13 Dec 2013 12:04:53 GMT Content-Length: 0   On the  itself, no record is made of the accept; instead the suggested edit is recorded as approved by 3 people not including Martijn Pieters. In this case the improve review arrived too late.  In , improve again resulted in the error, but the Community account is shown rejecting the edit. How to set the font for a \section title (and chapter etc) How do I specify the fonts, and general font size, for the titles, chapters and sections in my document  Update:  I can see how my question is confusing.  I use \section and \chapter etc. to organise my document, and I would like to change the way the section and chapter titles are displayed. Tips for getting really good answers on SO The way the askers write questions is a factor in determining how good the answers we get are. Obviously, if you ask a clear, direct question it is easier for a someone to answer you.  But, sometimes I've done that and my questions have still been overlooked.  I've noticed some question-posting methods that aren't exactly obvious, but do help me get better answers.    Some tricks I've learned...   Even if my question is very complicated, I try to write a short question.  People get turned off by longer questions, probably because they think its not worth their time (relative to other questions with equal reputation potential).  After I get some traffic and votes on my question, and maybe some comments like "Can you post the code?" or "Clarify this..." I might post more, but by then I am already getting attention to my question.  So, in summary, even if I know the answer requires a long question, I don't make it long until I've already gotten people to look at it. I use more generic tags when possible.  People are more likely to have c# and linq as a favorite tag, than MethodCallExpression, and I tend to get more views if I use at least one or two general purpose tags along with my more specific tags. I've noticed that if I give my question the performance tag, then SO heavy-weights like Marc Gravell, Jon Skeet and Eric Lippert are more likely to answer my question (especially if I use it in conjunction with a C# tag).  Since having this realization, if I can think of a way to rephrase my question to sound like it is related to C# performance, I will word it as such and tag it accordingly.   "Be polite. SO Users HATE when people be impatient, rude or impolite." - Benny   So,  Does anyone else have any tips for getting better answers and question-recognition on SO?  I think it would be really helpful if everyone contributed their own observations and techniques here.  P.S. This question is probably too long. What are Ctools plugin (content type, access, etc), and how does one create them? What are Ctools plugins, and how does one create them? I just saw Get Out, and there's one thing I don't understand.  Georgina turns out to be controlled by Rose's grandmother; its grandmothers brain in her body. Why then, is Georgina constantly cleaning and being treated like an actual maid.  During the diner scene, we get a glimpse into the kitchen, and we see Georgina holding up a plate in way that suggested that she was made to work and cook. The pose and the fact that she was already standing there holding the plate before Missy enters the kitchen was also quite strange and suggestive.  Also, at the "party" theres a moment that Chris sees Georgina and Missy. For a moment he thinks that Georgina is being involved in the party, but than it turns out the Georgina is just handed empty glasses to take care of.  So this I don't get. If its really grandma inside Georgina, then why is she treated in this way? The swarms of dead men fighting for the good side always seemed wrong to me. I know they did it to be released from their plight, but.... It's one thing to curse somebody, it's quite another to back it up. How did Isildur back up his curse on the oath breaking men of Dunharrow? Does the verb &quot;provide&quot; always have to be used with &quot;with&quot;? For example,  Can you provide me with some good examples? Can you provide me some good examples? Can you provide some good examples?  I suppose it's a transitive verb, isn't it? Moreover, is the following type of usage correct?  You should provide food for your dog before you go on vacation.  If you could give me some good examples regarding &quot;provide&quot; with different types of usage, I'd appreciate that. On a series involving harmonic numbers Formatting should not count towards the character limit on comments This is a minor frustration, but I have a  that I put italics and bold into (using asterisks.)  Now I know I just just be happy that I could do it at all, but it seems to me that those should not count toward my comment char limit. Using BibTeX/biblatex to make a list of references without having citations in the body of the document? Is there any way to have BibTeX or biblatex insert a bibliography without having citations in the body of the document itself? Maybe a way to hide the in-text citations, so that BibTeX still sees them and includes them in the bibliography, but does not print them in the body? Turning a cipher into a hashing function This is theoretical question. I'd like to know if it's possible (and what are eventually the consequences), not that I'm going to do it in one of my projects. ;)  The first hashing functions created were based on a symmetric cipher (just like the first Unix crypt was based on DES). The idea was simple. Use the password as key to encode a constant.  I'd like to know if it's still possible to convert any modern symmetric cipher into a hashing function (and second question: into a cryptographic hashing function). Is it possible (easier) to guess the key, when you have an encoded and decoded messages? In  they've somehow created "wireless" networks, meaning networks that connect two components but don't have an actual wire in the schematics.  What are these called, and how can I create them in Eagle Cad 6.5? New to both Ruby and Rails but I'm book educated by now (which apparently means nothing, haha).  I've got two models, Event and User joined through a table EventUser  class User &lt; ActiveRecord::Base   has_many :event_users   has_many :events, :through =&gt; :event_users end  class EventUser &lt; ActiveRecord::Base   belongs_to :event   belongs_to :user    #For clarity's sake, EventUser also has a boolean column "active", among others end  class Event &lt; ActiveRecord::Base   has_many :event_users   has_many :users, :through =&gt; :event_users end   This project is a calendar, in which I have to keep track of people signing up and scratching their name out for a given event. I figure the many to many is a good approach, but I can't do something like this:  u = User.find :first active_events = u.events.find_by_active(true)   Because events don't actually HAVE that extra data, the EventUser model does.  And while I could do:  u = User.find :first active_events = [] u.event_users.find_by_active(true).do |eu|   active_events &lt;&lt; eu.event end   This seems to be contrary to "the rails way".  Can anyone enlighten me, this has been bugging me for a long time tonight (this morning)? Can Windows 7 be repaired to run with new motherboard? I have HP computer and it came with Windows Vista. It also had an option to upgrade to Windows 7 via upgrade disc. I have upgraded to Windows 7 via the special upgrade disc (It is special because it will only allow to install Windows 7 if Vista is already installed.  My motherboard recently died. I just replaced it and Windows 7 will not start up. It reboots and sometimes gives a blue screen of death. Very similar problem as described in this post: . Windows will not boot into normal or safe mode. Start up repair from system repair disc does not fix the problem. However, "" post on superuser describes that it should be possible to run Windows 7 on a new motherboard.  Is it hopeless to find a way to repair Windows 7 and I need to do a clean install? Is there a difference for repair options between OEM and retail versions of Windows 7? I remember doing this type of repair just fine in Windows XP days, so why am I unable to do so with Windows 7 - is it Microsoft or HP's fault? Should I stop buying HP computers or should I switch to Ubuntu?