What advantages does using (function(window, document, undefined) { ... })(window, document) confer?
How does this JavaScript/jQuery syntax work: (function( window, undefined ) { })(window)?
Complexity of $T(n) = 2T(n/2) + n$ SPSite.Exists returning true for a just deleted site collection Short story - I have a process that creates some sitecollection, so to test it I keep deleting and recreating the same site over and over. The process includes a check with the istruction SPSite.Exits, done to check if the sitecollection is present or should be created.  Sometime, soon after I delete the site collection, SPSite.Exists will report it as still available. Is this a cache related problem? Assigning values to divergent series I have been looking at divergent series on wikipedia and other sources and it seems people give finite "values" to specific ones. I understand that these values sometimes reflect the algebraic properties of the series in question, but do not actually represent what the series converges to, which is infinity. Why is it usefull to assign values to divergent series?  The only theory I could come up with, is this:  Say you have 2 divergent series, series' A and B, and you assign each a value,   Series ($A= \sum_{n=0}^\infty a_n$), which I assigned the value Q  and series ($B= \sum_{n=0}^\infty b_n$ ), which I assigned the value P  But it just so happens that series $C=A-B= \sum_{n=0}^\infty (a_n-b_n)$ converges. Could that imply that the actual value of series $C$ is the difference of the two assigned values to $A$ and $B$, that is $\sum_{n=0}^\infty (a_n-b_n)=Q-P$ ?  If so, then that would make some sense to me, as to why people sometimes assign values to divergent series. What *is* an Artificial Neural Network? What is the difference between "why are you worried" and "why you are worried"? What is the difference between these two sentences?     Why are you worried?   Why you are worried?   Which one is correct? Sending email in .NET through Gmail What are logic gates? So from what I understand transistors are one of the most important electronic elements for computers because of TTL (Transistors-Transistors Logic).  Is this true? If so, how exactly does this work? I have heard the terms "logic gate" and "logic block" tossed around. When I went to the review overview on Meta on 08.01.2015, 19:16, it listed two open items in the suggested-edits queue, however when I clicked on the queue, I was told that the queue had been cleared. When I went back to the review overview, however, the edits were there again.  Since the icons for recent reviews had not moved, I suppose that these were still the same two items waiting for review, and since phenomenon lasted for half an hour now, I would rule out  or  to be the reason for this.  After a while, the phenomenon ceased, with one new reviewer popping up in the icon list of recent reviewers.  I had not performed or skipped any suggested-edit review from the queue at that point.    A similar phenomenon occurred for several hours up to 11.04.2015, 11:05: The review overview showed two suggested edits and when I went to the suggested-edits queue, it was cleared. Sometimes, edits that I could review appeared, but two phantom edits remained. Where to put the periods when using a parenthetical sentence? I have two complete sentences; the second is in parentheses, essentially a comment on the first.  Where do I place the periods?  I would use this:     They played opera. (I covered my ears.)   Is this punctuation correct? What, precisely, is a confidence interval? I know roughly and informally what a confidence interval is.  However, I can't seem to wrap my head around one rather important detail:  According to Wikipedia:     A confidence interval does not predict that the true value of the parameter has a particular probability of being in the confidence interval given the data actually obtained.     I've also seen similar points made in several places on this site.  A more correct definition, also from Wikipedia, is:     if confidence intervals are constructed across many separate data analyses of repeated (and possibly different) experiments, the proportion of such intervals that contain the true value of the parameter will approximately match the confidence level   Again, I've seen similar points made in several places on this site.  I don't get it.  If, under repeated experiments, the fraction of computed confidence intervals that contain the true parameter $\theta$ is $(1 - \alpha)$, then how can the probability that $\theta$ is in the confidence interval computed for the actual experiment be anything other than $(1 - \alpha)$?  I'm looking for the following in an answer:   Clarification of the distinction between the incorrect and correct definitions above. A formal, precise definition of a confidence interval that clearly shows why the first definition is wrong. A concrete example of a case where the first definition is spectacularly wrong, even if the underlying model is correct. Since one or two months ago, my laptop with ubuntu 12.10x64 hangs during shutdown. There's just a black screen, no harddisk activity, it justs sits there. I feel it happens near the end of a normal shutdown cycle, judging from time elapsed.  Only resolution is hard power-off (holding power key for several seconds) - neither Ctrl-Alt-Backspace (which normally works, I have it switched on in Settings) nor Ctrl-Alt-Del help, nor can I get into a text console with Ctrl-Alt-F1.   How do I diagnose that? It does not happen on every shutdown, but often enough to be annoying (as it forces a diskcheck on reboot, of course).   Which log files can tell me what's going wrong? More or less blindly searching in the sys log viewer reminds me of needles in a haystack.  I imagine I could pinpoint the time it happens via log timestamps, but how do I read timestamps like e.g. in kern.log: [36169.146130]? How do I get this human-readable?  Lastly, a bit of a btw, I've never managed to execute an Alt-Sysrq-REISUB to force a cleaner shutdown, but that's probably because I'm on a laptop, PrintScr is only accessible via an Fn key, and I'm not sure of the exact key sequence I need. Is there a "harmless" but user-visible magic command I could practice this with (during normal operation), so I can find out how to do a REISUB next time?  Thanks all! Comment if you need additional data... I have an app installed on my phone, which I've installed from the Google Play Store.  If I update the app and don't like the upgraded version, is there a way to undo the update and downgrade back to the version of the app that I had previously installed?  I tried searching a bunch on this site, and I found lots of questions about downgrading the OS/ROM/firmware, but nothing about downgrading app versions or reverting an app update. How can one change an entire document to use bold font? Following an online tutorial that uses an object named "icosahedron" from Add > Mesh > Regular Solids > Archimedean > Icosahedron. This object is not available in my version of Blender (2.74). Presenter asks me to include an add-on named "Add Mesh: Regular Solids", which again is not listed in my User Preferences dialog. What can I do about it? I can run faster than _____. (1) him (2) he? If you try to execute a program that is not installed you will get a message  The program 'x' is currently not installed. You can install it by typing:  sudo apt-get install x   and instead of offering you to install the program for you, you have to type the actual command. How can this behavior be changed? In class we are currently covering upper/lower bounds, big Oh and omega and the like. I am pretty good on the "typical" functions one would do, but at a complete loss at "general" statements. This ons function, for example:  $$\forall f\in\mathcal{F}: \lfloor \sqrt{\lfloor f(n)\rfloor }\rfloor \in O(\sqrt{f(n)}).$$  the domain F by the same is all natural numbers that return a real positive number when inputted. My first instinct with something like this is to remove the floors, the general strategy I though to solve this is remove the outer floor, then get rid of the square root, and then the inner floor. But I have no idea how to go about this or if this is even the right way to do it.  Help please? Thanks in advance. I want to assign a class attribute via a string object - but how?  Example:  class test(object):   pass  a = test() test.value = 5 a.value # -&gt; 5 test.__dict__['value'] # -&gt; 5  # BUT: attr_name = 'next_value'  test.__dict__[attr_name] = 10 # -&gt; 'dictproxy' object does not support item assignment I have a large external with many subfolders that I want to move all videos, pictures, and music to another hard-drive, what would be the best way to do this? How to convert from one grading scheme to another?