When part of an object becomes the name for the whole
What is the difference between metonymy and synecdoche?
extended stars-and-bars problem(where the upper limit of the variable is bounded) The problem of counting the solutions $(a_1,a_2,\ldots,a_n)$ with integer $a_i\geq0$ for $i\in\{1,2,\ldots,n\}$ such that $$a_1+a_2+a_3+....a_n=N$$ can be solved with a stars-and-bars argument. What is the solution if one adds the constraint that $a_i\leq r_i$ for certain integers $r_1,\ldots,r_n$?  e.g. for $n=3$, $N=6$ and $(r_1,r_2,r_3)=(3,3,2)$, the tuple $(a_1,a_2,a_3)=(2,3,1)$ is a solution, but $(2,1,3)$ is not a solution because $a_3=3&gt;2=r_3$. What is the difference between String and string in C#? Example (note the case):  string s = "Hello world!"; String s = "Hello world!";   What are the guidelines for the use of each? And what are the differences? My two main questions:  Are all URLs that include your User Id tracked?  Can the visitors who use the tracked URLs have Stack Exchange accounts?   Specifically: Recently the ability to earn badges for sharing links to posts on Stack Exchange sites . I'd like to know when and how this tracking works. It's clear that if you go to a question, and make use of the link button, you will get a URL with your User ID that will be tracked if a visitor uses it to get to SO. For example, let's use  as an example. It's regular URL is:  https://stackoverflow.com/questions/309300/defend-php-convince-me-it-isnt-horrible  If you go to that page and use &quot;save link as&quot; in the link section of the question you will be given a tracked url with your User ID:  https://stackoverflow.com/q/309300/[USER ID]  My question is, are there other URLs that would be tracked? All of the following URLs take you to the Question / Answer, but are they tracked? For example what if I just tack my User ID onto the long url?  https://stackoverflow.com/questions/309300/defend-php-convince-me-it-isnt-horrible/[USER ID]  What if I add my User ID to an answer URL?  https://stackoverflow.com/questions/309300/defend-php-convince-me-it-isnt-horrible/309622#309622/[USER ID]  or even  https://stackoverflow.com/q/309622/[USER ID]   Is there a way to know that a URL is being tracked? Is there some sort of format to follow? Are the only tracked URLs the ones provided in the Question links? Finally, does this sentence from the blog post mean that visitors cannot have an account?  Also, the tracked IPs must originate from outside our existing network. How do I concatenate const/literal strings in C? Let $G$ be a group and $c\in G$. Define $*$ on $G$ by: $x*y=xdy$ for all $x,y\in G$, where $d$ is the inverse of $c$. Prove $(G,*)$ is a group. Let $G$ be a group and $c$ be a fixed element of $G$. Define a new operation $*$ on G by:   $$x*y=xdy$$   for all $x$ and $y$ in $G$, where $d$ is the inverse of $c$. Prove that $G$ is a group under the operation $*$.    If you want to check, this problem is in the book “A Course In Group Theory”, by John F. Humphreys (problem $3$, page $28$)   I know what are the axioms that $(G,*)$ must obey in order to be a group and I did show that all the axioms where obeyed except the inverse axiom.  My problem is that, whenever I try to verify what would the inverse be for some element $x$, I get an equation where the $x$ is cancelled in both sides.  Can please someone guide me?  Thank you!  (P.S.: This is NOT a homework assignment, I’m studying Group Theory by this book and got problems solving this question) I have a Python function that takes a numeric argument that must be an integer in order for it behave correctly. What is the preferred way of verifying this in Python?  My first reaction is to do something like this:  def isInteger(n):     return int(n) == n   But I can't help thinking that this is 1) expensive 2) ugly and 3) subject to the tender mercies of machine epsilon.   Does Python provide any native means of type checking variables? Or is this considered to be a violation of the language's dynamically typed design?  EDIT: since a number of people have asked - the application in question works with IPv4 prefixes, sourcing data from flat text files. If any input is parsed into a float, that record should be viewed as malformed and ignored. Why are these numbers not equal? Sources missing in /etc/apt/sources.list, how do I get them back? Probability of sampling with and without replacement In sampling without replacement the probability of any fixed element in the population to be included in a random sample of size $r$ is $\frac{r}{n}$. In sampling with replacement the corresponding probability is $\left[1- \left(\frac{1}{1-n}\right)^r\right]$.  Please help me show how this is proved. I want to be able to  write the following in LaTeX      We make the further assumption that \begin{equation} \label{eqn:assumption} There is a bounded linear operator     $B:X\to X^*$ such that $B^*=B$ and the operator $JB$ is an extension of $T'(0)$\end{equation}   and get a nice output, in such a way that this whole chunk of text along with the math can be referenced later. Of course I can write text inside the equation environment using \text{}, but when I tried this the spacing was all wrong. Can anyone suggest a solution to this? GroupBy a list of associations with their keys If I use a program such as SpeedFan to keep my fans at 100% power 24/7, will it harm my computer? I don't care about my power bill but if the excess power could harm my computer I would worry. I have a 350 watt power supply so I don't think the excess power usage will harm it. Here's what I think:  Pros   Things it cools off are kept cooler Cooler parts = faster computer Cooler parts = slower fail rate   Cons   It just sounds wrong. I know this sounds dumb but still Most fans are designed to do their job already I'm either gaming or just browsing the web. Obviously gaming while keeping the fans on can be beneficial but my computer doesn't get very hot while browsing the internet. How to run batch file without admin privillege? Using PyQGIS to transform layer of polygons into layer of holes inside bbox? I seem to be having issues when I try and save the output file as a .png, or .jpeg for that matter. I've set up my user preferences, File, Render Output to my desktop as well as render output in the editor window. What am I missing here? I'm obviously very new to this program and your help would be appreciated. Thanks for your time geometry package - paperwidth and paperheight aren't accurate recognize this simple example:  \documentclass[]{article} \usepackage[paperwidth=612.0pt, paperheight=792.0pt]{geometry}  \begin{document} Hello World \end{document}   I compiled it with pdflatex. Additionally I wrote this small Java-Programm (using the iText library):  PdfReader reader = new PdfReader("example.pdf"); Rectangle psize = reader.getPageSize(1); System.out.println(psize.getHeight()); System.out.println(psize.getWidth());   The result:  Height: 789.041 Width: 609.714   Why is the paperwidth and paperheight different to the tex? Once a lead is converted it automatically creates an account, contact and one opportunity. But in my case i want to display the result without creating an Account. Please provide me with a sample code.  Any help will be appreciated... When two accounts are merged, all the posts/votes are moved over to the "master" account, and the other account ("slave"?) is deleted. The merge is propagated network-wide, so a similar thing happens on each site.  But, this does not happen to the chat user. The "slave" chat user is kept, with a 404 parent profile link. I feel that the chat user should be merged as well, re attributing all the chat messages.  Thoughts? General trigger bulkification - best practices A general question asked from time to time on stack exchange is question of trigger bulkification.  Therefore I have 2 questions:   Which best practices are you using? What is the best way to handle updates of more than 200 records? (In case of more than 200 records the trigger is executed more than once.) I have the following code:  Using cmd As SqlCommand = Connection.CreateCommand     cmd.CommandText = "UPDATE someTable SET Value = @Value"     cmd.CommandText &amp;= " WHERE Id = @Id"     cmd.Parameters.AddWithValue("@Id", 1234)     cmd.Parameters.AddWithValue("@Value", "myValue")     cmd.ExecuteNonQuery End Using   I wonder if there is any way to get the final SQL statment as a String, which should look like this:  UPDATE someTable SET Value = "myValue" WHERE Id = 1234   If anyone wonders why I would do this:   for logging (failed) statements for having the possibility to copy &amp; paste it to the Enterprise Manager for testing purposes