Find the sum of all the numbers that can be formed using all the digits $2, 3, 3, 4, 4, 4$.  It is a P&amp;C related problem so the word all means it is a six-digit number. Hence the number of terms is $\frac{6!}{3!2!} = 60$.  How do I calculate the sum?
How to find the sum of all the numbers that can be formed using the digits 2,3,3,4,4,4.. What should be the way of doing this type of problem?? Please guide
Is there a way to disable recovery mode so it won't be possible to factory reset your phone?  Basically what I am trying to do, is that it should be impossible to factory reset the phone as there is no recovery partition.  (Example format the recovery partition, or hide the option of factory reset on the recovery menu, build a custom recovery etc.)  P.S.. I was thinking of maybe removing a system app (example package installer) and making it a user app, and therefore when you factory reset the phone it won't start cause the system app is missing, but when I tried that, the phone wouldn't start even without resetting it, as the system needs the system app to start, ( I thought that maybe even though I removed the app from being a system app, the phone would still start as it's still there as a user app, and only after resetting the phone - that the user apps get deleted, the phone won't start as it's missing the app).  Thanks in advance I'm playing around, trying to write some code to use the  APIs to shorten a URL.  After reading , I tried:     TRIM_API_URL = 'http://api.tr.im/api'    auth_handler = urllib2.HTTPBasicAuthHandler()    auth_handler.add_password(realm='tr.im',                              uri=TRIM_API_URL,                              user=USERNAME,                              passwd=PASSWORD)    opener = urllib2.build_opener(auth_handler)    urllib2.install_opener(opener)    response = urllib2.urlopen('%s/trim_simple?url=%s'                               % (TRIM_API_URL, url_to_trim))    url = response.read().strip()   response.code is 200 (I think it should be 202).  url is valid, but the basic HTTP authentication doesn't seem to have worked, because the shortened URL isn't in my list of URLs (at ).  After reading  I also tried:     TRIM_API_URL = 'api.tr.im/api'    password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()    password_mgr.add_password(None, TRIM_API_URL, USERNAME, PASSWORD)    auth_handler = urllib2.HTTPBasicAuthHandler(password_mgr)    opener = urllib2.build_opener(auth_handler)    urllib2.install_opener(opener)    response = urllib2.urlopen('http://%s/trim_simple?url=%s'                               % (TRIM_API_URL, url_to_trim))    url = response.read().strip()   But I get the same results.  (response.code is 200 and url is valid, but not recorded in my account at .)  If I use query string parameters instead of basic HTTP authentication, like this:     TRIM_API_URL = 'http://api.tr.im/api'    response = urllib2.urlopen('%s/trim_simple?url=%s&amp;username=%s&amp;password=%s'                               % (TRIM_API_URL,                                  url_to_trim,                                  USERNAME,                                  PASSWORD))    url = response.read().strip()   ...then not only is url valid but it's recorded in my tr.im account. (Though response.code is still 200.)  There must be something wrong with my code though (and not tr.im's API), because  $ curl -u yacitus:xxxx http://api.tr.im/api/trim_url.json?url=http://www.google.co.uk   ...returns:  {"trimpath":"hfhb","reference":"nH45bftZDWOX0QpVojeDbOvPDnaRaJ","trimmed":"11\/03\/2009","destination":"http:\/\/www.google.co.uk\/","trim_path":"hfhb","domain":"google.co.uk","url":"http:\/\/tr.im\/hfhb","visits":0,"status":{"result":"OK","code":"200","message":"tr.im URL Added."},"date_time":"2009-03-11T10:15:35-04:00"}   ...and the URL does appear in my list of URLs on .  And if I run:  $ curl -u yacitus:xxxx http://api.tr.im/api/trim_url.json?url=http://www.google.co.uk   ...again, I get:  {"trimpath":"hfhb","reference":"nH45bftZDWOX0QpVojeDbOvPDnaRaJ","trimmed":"11\/03\/2009","destination":"http:\/\/www.google.co.uk\/","trim_path":"hfhb","domain":"google.co.uk","url":"http:\/\/tr.im\/hfhb","visits":0,"status":{"result":"OK","code":"201","message":"tr.im URL Already Created [yacitus]."},"date_time":"2009-03-11T10:15:35-04:00"}   Note code is 201, and message is "tr.im URL Already Created [yacitus]."  I must not be doing the basic HTTP authentication correctly (in either attempt).  Can you spot my problem?  Perhaps I should look and see what's being sent over the wire?  I've never done that before.  Are there Python APIs I can use (perhaps in pdb)?  Or is there another tool (preferably for Mac OS X) I can use? Finding all group homomorphisms of $S_n\to\mathbb{C}^*$ and $A_n\to\mathbb{C}^*$ I need to find all group homomorphisms of $S_n\to\mathbb{C}^*$ (for $n\ge2$), and also all group homomorphisms of $A_n\to\mathbb{C}^*$ (for $n\ge2$).  Someone on this site, two years ago, seems to have already asked the same question (). I understand what the questioner says there, but I don't understand it when he says:     Therefore there is exactly one $g:\mathbb{Z}/2\mathbb{Z}\to\mathbb{C}^*$, so all elements of $a\in\mathbb{C}^*$ give us $\operatorname{ord}(a)\mid g[\mathbb{Z}/2\mathbb{Z}]$, so $a$ can only be $-1$ or $1$. Now we know that $f:S_n\to\{-1,1\}$ &hellip;   What is he saying there? And how to go on from there? (I do not understand the answer given either &hellip;)  I hope that someone here can help me further. (And if I'm not allowed to ask this question because is has already been asked two years ago, please tell me what to do instead).  Thank you in advance! Formula based on picklist I am trying to create a formula that will put a 1 in a hidden field if the value of a picklist is equal to a specific value.  I keep getting stuck here and I can't figure out what I am missing?  IF(ISPICKVAL( Examiner_Type__c ="Pending Examiner Status","1","",)) Updating list definition using features I have a feature that deploys content types, a list definition and template that uses these content types and finally a list instance. This feature is already in production.  Now we have a change request to add new views to this existing list. So I make the changes to schema.xml and upgrade the solution. But alas, the new views don't show up. If I create a new site, the list instance is created with the new views. I tried deactivating/reactivating, iisreset but still no success. Is there anything I'm missing? Electrons have spin 1/2, and as they are charged, they also have an associated magnetic moment, which can be measured by an electron beam splitting up in an inhomogeneous magnetic field or through the interaction of the electrons's magnetic moment with an external magnetic field in spectroscopic measurements.   On the other hand, a photon is neutral - how can one measure its spin if there's no magnetic moment? How do we know it has spin 1? Parental controls with different settings for different users Does anyone know of a good way to set up some sort of parental controls so that one user account is subject to them, but not another?  A couple of friends of mine use Ubuntu and have kids (7 to 10 years old) who use the family computer. They'd like to have some blocking of adult sites. They're not going to supervise all the time, which I know might be ideal, but there we go. And they're not particularly technical, so they don't want to have to run scripts to turn the parental controls on and off regularly, but they can cope with having different accounts for different people. I haven't found a great way of doing this. I am pretty technical, so I'm happy to spend some time at the command line to set it up, but then it needs to just work.  Please don't just link to DansGuardian. If your answer doesn't address the different user account aspect, I will vote it down. If you want to talk about general parental controls that apply to all users then please start a new question - I'm sure that plenty of people would be interested in it, and I'll link to it from this question. What are the fault tolerances on the FDA food handling guidelines? Sometimes I have suggested that food that sat out a little longer than optimal may be safe to eat.    Granted, this is based on my experience, and I always qualify that it shouldn't be served to guests (and by extension, customers) and that one should determine their own tolerance to risk, but I want to know if there is information as to the methodology of the FDA guidelines.  Specifically, what is the contamination rate at n hours, and what are the initial conditions of the food and environment?  How much risk is there REALLY (in incidences per n-population and such) in a standard kitchen for food that has sat out 50%, 100%, 200%, etc. longer than recommended? Display lost/negative reputation in topbar achievements When you get reputation, you get a +X green spot on your reputation feed telling you that you gained reputation and if you drop down the menu, you get more detail.  How about we make it that when you lose more than you got since the last time you checked, you see it red with a little -X.  For example, let's say you've just looked at the reputation bar so any old rep notification is gone and you ask a new question. 3 users downvote your question and 1 upvotes it. You will see it green because you gained 5 rep but you should see it red because you are at -1 rep.   This would help people improve their questions / answer by seeing, as soon as they get on the site, that they got negative feedback and that something needs to be checked / changed.    It shows here so it could very well be applied to the notification count: Infinite group with only two conjugacy classes Does $\frac{n}{\sum\limits_{k=1}^{n}\Big(\frac{k}{k+1}\Big)^k}$ converge? Does the sequence $$\displaystyle \frac{n}{\sum\limits_{k=1}^{n}\Big(\frac{k}{k+1}\Big)^k}$$   converge?   Attempt. Since $\Big(\frac{k}{k+1}\Big)^k \rightarrow 1/e\neq 0$ and the terms are positive, the series $\sum\limits_{k=1}^{\infty}\Big(\frac{k}{k+1}\Big)^k$ diverges to $+\infty$. I find hard to determine if $n$ or the sum goes faster to $+\infty.$   Thanks in advance. In Java, what is the best way to determine the size of an object? I know this subject was discussed for many times, but I still don't get it..  I've read in a book that we can use "I've got" instead of "I have" for possesion and it gave some examples,      I've got an English book.   I've got a red car.   So I understand that it can be used only for possession of physical objects, but I saw it used in sentences like "I've got something to say", is it correct? I hope it's not a stupid question..Thank you very much! How do I sort a list of dictionaries by a value of the dictionary? Doom-style 2.5D Movement Animations I've started working on a demo for my 2.5D game. For a basic scene I figured I would just use the good old fashioned doom sprites textured to a double sided plane. Simple enough. But I've been scratching my head as to how to display the proper sprite animation relative to the player viewing the sprite...if that makes since.  For example suppose I have three players in the scene Players A, B, and C as such:    Player C should see player A as: Here's an example of what I think player A should look like from C's perspective:    While player B would see player A as follows:    My current idea is that for any given player, I will need to know the current direction of each other player, and where they are located/moving to relativly. From this, I could calculate which sprite image is required.  Is this correct? What improvements/optimizations could be made?  ** EDIT ** Total number of directions will be 8 as depicted below:    For each direction there are two sprites (to show walking movement, sprites for the right hand directions are mirrors of the left):    ** EDIT 2 ** Got this working and have a simple javascript/threejs example for anyone interested: Wulfgar won't teach me Unrelenting Force's final word after Arngeir accepts the Horn of Jurgen Windcaller Who were the other two heroes with Superman in the newspaper article who left? In Justice League, we see a newspaper article showing three heroes who died (left to their home planets) but it was too fast that I missed catching the faces.   Who were the other two heroes who are dead? Best Azure Service for Large no of SQLServer Databases How this java code produces deadlock? "This question is not available, it may have been deleted" when submitting a question on the Android app after losing internet connection