What happens to photons, electrons, etc
How do we see? Where do the photons disappear?
meaning of -h in ls command List has no row exception: Queryerror I have below line placed in controller that fires list has no row exception. I just need to show a custom message instead when the query returns no value.   Apex code:  Id CI=[select Compliance_Incident_abv__c from Compliance_Incident_Transaction_abv__c where Name=:selectedCIT].Compliance_Incident_abv__c ;  //**This line throws error**     system.debug('CI@@'+CI);         if(cond != '')             cond += ' and';           else             cond += ' where ';                                        if(CI!=null)          cond += ' Id = \'' + CI+ '\''; How do i renable connecting a network drive using SMB1 since Windows 1709 I find today that I can no longer mount my Netgear ReadyNas drive because apparently it is using SMB1 and Windows 10 have disabled since release 1709. This is very problemaic because I need to access these files and because I have lost the admin password for the ReadyNas itself so I cannot login in order to update/reconfigure it to use SMB2 instead.  Microsoft refers me  to  which in turn refers me to  if I really want re-enable SMB1  And I successfully did re-enable SMB1 by running  Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol   from Powershell as Adminstrator.  However even after reboot I still cannot re-establish connection to my Netgear from Windows Explorer, it gives the same error  What else do I need to do ?  PS C:\WINDOWS\system32&gt; Get-WindowsOptionalFeature –Online –FeatureName SMB1Protocol   FeatureName      : SMB1Protocol DisplayName      : SMB 1.0/CIFS File Sharing Support Description      : Support for the SMB 1.0/CIFS file sharing protocol and the Computer Browser protocol. RestartRequired  : Possible State            : Enabled CustomProperties :                    ServerComponent\Description : Support for the SMB 1.0/CIFS file sharing protocol and the Computer                    Browser protocol.                    ServerComponent\DisplayName : SMB 1.0/CIFS File Sharing Support                    ServerComponent\Id : 487                    ServerComponent\Type : Feature                    ServerComponent\UniqueName : FS-SMB1                    ServerComponent\Deploys\Update\Name : SMB1Protocol   Solution  Thanks Bob, SMB 1.0/CIFS File Sharing Support was enabled but within it SMB 1.0 Client was not enabled, checking that box and rebooting fixed the issue. I'm trying to understand at a deeper level the ubiquity of log-likelihood (and perhaps more generally log-probability) in statistics and probability theory.  Log-probabilities show up all over the place: we usually work with the log-likelihood for analysis (e.g. for maximization), the Fisher information is defined in terms of the second derivative of the log-likelihood, entropy is an expected log-probability, Kullback-Liebler divergence involves log-probabilities, the expected diviance is an expected log-likelihood, etc.    Now I appreciate the many practical and convenient reasons.  Many common and useful pdfs are from exponential families, which leads to elegantly simplified terms when log-transformed.  Sums are easier to work with than products (esp for differentiating).  Log-probs have a great floating point advantage over straight probs.  Log-transforming a pdf often converts a non-concave function into a concave function.  But what is the theoretical reason/justification/motivation for log-probs?  As an example of my perplexity, consider the Fisher information (FI).  The usual explanation for intuiting the FI is that the second derivative of the log-likelihood tells us how "peaked" the log-likehood is:  a highly peaked log-likelihood means the MLE is well-specified and we are relatively sure of its value, while a nearly flat log-likehood (low curvature) means many different parameter values are nearly as good (in terms of the log-likelihood) as the MLE, so our MLE is more uncertain.   This is all well-and-good, but isn't it more natural to just find the curvature of the likelihood function itself (NOT log-transformed)?  At first glance the emphasis on the log-transform seems arbitrary and wrong.  Surely we are more interested in the curvature of the actual likelihood function.  What was Fisher's motivation for working with the score function and the Hessian of the log-likelihood instead?  Is the answer simply that, in the end, we have nice results from the log-likelihood asymptotically? E.g., Cramer-Rao and normality of the MLE/posterior.  Or is there a deeper reason? Good review audit has "possible spam" warning? I was looking through someone's edit history and I was looking at :    Why does it give this notice, while at the same time saying that it's a high-quality post? Why, oh why, don't the Weasleys "conjure" up some diamonds/gold/etc, sell 'em to Muggles, and get rich? They could buy a mansion (like the Malfoys), and live there happily ever after.  I know there's  that prohibits one from conjuring food (which doesn't make much sense to me, either). Even if it applied to gold, what about all the other elements/compounds/materials? Could the law really be 'don't let a wizard conjure something if it'll make them richer'? That's totally nonsensical.  Why does Wizard society still have poor people, especially if they're talented? For PhD applications, I have mentioned that I am interested in some research areas. Besides, I am thinking about mentioning some professors' names, so that it shows I have read their websites and I am not just sending out generic statements applicable to many schools.  But is it good to mention some professors' names in the statement of purpose, if I don't know them personally? In what cases is it good, and in what cases it isn't?  For example, is it good to only mention    those whose research directions are aligned with my research interests, or/and those whose books or notes I have heard of, or better, might have read some parts of, or/and those who are already established and famous (such as having certain titles), or/and those that are directing the PhD graduate programs, or/and those that are heads of the departments?    What will other professors who are not mentioned think? How will you do, if it were you? Divisor function asymptotics Define $\tau_{r}(n) = \sum_{d_1...d_r = n}1$.   One exercise in a book on sieve theory asked for an elementary proof by induction of the fact that   $$\sum_{n\le x}\tau_r(n) = \frac{1}{(r - 1)!}x(\ln x)^{r - 1} + O\left(x(\ln x)^{r - 2}\right)$$  The base case $r = 2$ is easy with reversing the order of summation.  The only other progress that I made was the fact that $\sum_{n\le x}\tau_{r}(n) = \sum_{d\le x}\left\lfloor\frac{x}{d}\right\rfloor\tau_{r- 1}(d)$, but I don't know how to proceed. different font while using url I'm having troubles while using the url command in my bibliography.  I mean:  1) \bibitem{[8]} {\url{http://projects.webappsec.org/w/page/13246989/Web20Application20Security20Statistics\#Tableofcontent}}  2) \bibitem{[5]} Justin~Clarke ``SQL Injection Attacks and Defense'', Syngress Publishing, Inc.2009   Unfortunately font 1) is different from 2).  What should I do in oder to get the same font for both items?   I'd like the font used in 1)  to be identical to the one displayed in 2) Cannot change backlight brightness Ubuntu 14.04 Why do physicists believe that there exist magnetic monopoles? How do you redirect to a page using the POST verb? When you call RedirectToAction within a controller, it automatically redirects using an HTTP GET.  How do I explicitly tell it to use an HTTP POST?  I have an action that accepts both GET and POST requests, and I want to be able to RedirectToAction using  POST and send it some values.  Like this:  this.RedirectToAction(     "actionname",     new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }) );   I want the someValue and anotherValue values to be sent using an HTTP POST instead of a GET. Does anyone know how to do this? Regular expression: match start or whitespace Can a regular expression match whitespace or the start of a string?  I'm trying to replace currency the abbreviation GBP with a £ symbol. I could just match anything starting GBP, but I'd like to be a bit more conservative, and look for certain delimiters around it.  &gt;&gt;&gt; import re &gt;&gt;&gt; text = u'GBP 5 Off when you spend GBP75.00'  &gt;&gt;&gt; re.sub(ur'GBP([\W\d])', ur'£\g&lt;1&gt;', text) # matches GBP with any prefix u'\xa3 5 Off when you spend \xa375.00'  &gt;&gt;&gt; re.sub(ur'^GBP([\W\d])', ur'£\g&lt;1&gt;', text) # matches at start only u'\xa3 5 Off when you spend GBP75.00'  &gt;&gt;&gt; re.sub(ur'(\W)GBP([\W\d])', ur'\g&lt;1&gt;£\g&lt;2&gt;', text) # matches whitespace prefix only u'GBP 5 Off when you spend \xa375.00'   Can I do both of the latter examples at the same time? Mid 2012 MBP shuts down claiming no power with charge at 30% or 40% or more hierarchical retreival of records in postgresql How can I merge properties of two JavaScript objects dynamically? In Nginx, how can I rewrite all http requests to https while maintaining sub-domain? Low-res texture blurry I unwrapped a simple plane and applied the following 80x80 pixel picture:    Yes, it's quite small. The problem is, the result is all blurry, like so:    How do I make it accurate to the pixel? How can I transition height: 0; to height: auto; using CSS? Solve Euler Project #9 only mathematically - Pythagorean triplet The "Euler Project" problem 9 () asks to solve:  $a^2$ + $b^2$ = $c^2$ a + b + c = 1000  I find answers solving it with brute-force and programmatically, but is there a way to solve the problem ONLY mathematically? Can someone help, please?  Problem as explained in Project Euler website:  A Pythagorean triplet is a set of three natural numbers, a &lt; b &lt; c, for which,  a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 = 25 = 52.  There exists exactly one Pythagorean triplet for which a + b + c = 1000.  Find the product abc.