Soft thresholding in CUDA
Soft Thresholding CUDA implementation
Does upvoting a duplicate comment do anything? When a question is initially flagged as a duplicate, there is a comment. If the duplicate flag gets enough votes, the question is closed as a duplicate, and the comment is deleted.  Does upvoting the duplicate comment count as a close vote? Does it do anything at all? To prove Cayley-Hamilton theorem, why can't we substitute $A$ for $\lambda$ in $p(\lambda) = \det(\lambda I - A)$? Cayley Hamilton Theorem states that if $A$ is an $n \times n$ matrix over the field $F$ then $p(A) = 0$.  We note that $p(\lambda) = \det(\lambda I - A)$. Hence, why can't we just substitute $\lambda$ with $A$ and directly prove Cayley-Hamilton Theorem by saying that $p(A) = p(\lambda) = \det(\lambda I - A) = \det(AI - A) = 0$? I want to see you.   I look forward to seeing you.      How can one say "to" in the first sentence is an infinitive marker and in the second sentence a preposition when we are given just the following two sentences and are asked to fill in the blanks?        I want to ____(see/seeing) you.   I look forward to __(see/seeing) you. My WiFi adapter is not working at all, how to troubleshoot? Lualatex and bm package I've updated my latex packages yesterday and have now issues with lualatex. One problem arising for me now is, that lualatex does not print bold characters using the bm package.  When I compile the following MWE with pdflatex everything looks okay, but for lualatex it doesn't:  \documentclass{article} \usepackage{bm} \begin{document} % Bold $\bm{E}$ \\ Normal $E$ % \end{document}   Output using pdflatex    using lualatex    Also trying to fall back to an earlier version of lualatex by using \RequirePackage{luatex85} does not work for me.  When having a look at the log file, there are the suspicious messages   LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 142. LaTeX Info: Redefining \bm on input line 208. [...] Missing character: There is no х (U+0445) in font cmmi10!   Can anyone tell me, what is going on here and what I need to do to solve this problem, since I am quite sure lualatex and bm worked before? How do I unit test code that includes a callout? This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  How do I unit test code that includes a SOAP or REST-based callout, or indirectly calls code that makes a callout? I'm getting an error saying that callouts are not supported. How to change this matrix with respect to standard basis? Given the basis $\beta = \{ (1, 1, 0),\ (1, 0, -1),\ (2, 1, 0)\}$ and the matrix:  $$ A =         \begin{bmatrix}         1 &amp; 1 &amp; 0 \\         1 &amp; 1 &amp; 0 \\         0 &amp; 0 &amp; 1 \\         \end{bmatrix} $$  with respect to  $\beta$.  How to change this matrix with respect to standard basis? How to prove $\cos \frac{2\pi }{5}=\frac{-1+\sqrt{5}}{4}$? I would like to find the apothem of a regular pentagon. It follows from   $$\cos \dfrac{2\pi }{5}=\dfrac{-1+\sqrt{5}}{4}.$$  But how can this be proved (geometrically or trigonometrically)? Making an MFC application international I've got several large MFC applications here, and converting them into any other format is out of the question.  We're expanding into other markets, and would like to make the apps work in other languages and cultures.  So far, I've found occasional references as to what to do with Visual C++ version 6, with one mention that later versions of MFC have additional relevant features.  Searching MSDN gives me instructions on how to convert the apps to Unicode, which we already did.  I found nothing on MSDN on how to make languages multilingual once they're in Unicode, only a few older things using Google, and one book about internationalization using VC++6.  (We're using Visual Studio 2008 now, on XP and Vista.)    I make no claims for the strength of my Google-fu, and would be happy to be directed to things I've missed.  Is it reasonable to use the methods of VC++6, or should I use later features?  If I should use features later than that, where can I find some reference to them?  Is there something I should worry about other than setting the locale, converting all strings to resources, and duplicating resources in different languages?  I can find more things about .NET internationalization, but I'm inexperienced in .NET.  What will I find there that's applicable to VC++ and MFC?  Edit:  I just ran into difficulties trying to put Unicode strings into the String Table resource.  (As far as I can tell, Unicode strings need to be entered into the .rc file with a text editor, in L"0x0034" form.  I haven't found a resource editor way to do that.)  Any tips on that?  Any other resource I can use in VS2008 using VC++ and MFC?  Edit:  Somebody on a Microsoft forum suggested that I open the offending .rc file in Notepad, and save it in Unicode.  Unfortunately, this doesn't seem to fix the dialogs, although the stringtable seems to be working in Japanese. Why does a $1/2$ appear in this simple capacitor equation? The maximum energy stored by a capacitor is when it’s (theoretically) fully charged, or just before it reaches dielectric breakdown, if you will. It seems, then, that the maximum energy ($E$) $=QV$, where $Q$ is the maximum charge attained and $V$ is the maximum ‘voltage’. However, the correct equation for the maximum energy is $E=\frac{1}{2}QV$. Why? I’m looking for a simple, intuitive explanation because my reasoning that $E=QV$ seems sound to me. I know about , but I’m looking for a reason to disprove my specific argument that $E=QV$ and not the “Oh, it comes from integration.” response. After removing any part the rest can be split evenly. Consequences? Nginx installation error in Ubuntu 16.04 :~$ sudo apt-get remove nginx* && sudo apt-get install nginx-full*  Reading package lists... Done Building dependency tree        Reading state information... Done  After this operation, 5,579 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 nginx-full-dbg amd64 1.10.0-0ubuntu0.16.04.1 [3,789 kB] Fetched 3,789 kB in 33s (112 kB/s)                                              Selecting previously unselected package nginx-common. (Reading database ... 189767 files and directories currently installed.) Preparing to unpack .../nginx-common_1.10.0-0ubuntu0.16.04.1_all.deb ... Unpacking nginx-common (1.10.0-0ubuntu0.16.04.1) ... Selecting previously unselected package nginx-full. Preparing to unpack .../nginx-full_1.10.0-0ubuntu0.16.04.1_amd64.deb ... Unpacking nginx-full (1.10.0-0ubuntu0.16.04.1) ... Selecting previously unselected package nginx-full-dbg. Preparing to unpack .../nginx-full-dbg_1.10.0-0ubuntu0.16.04.1_amd64.deb ... Unpacking nginx-full-dbg (1.10.0-0ubuntu0.16.04.1) ... Processing triggers for ufw (0.35-0ubuntu1) ... Rules updated for profile 'Apache Full' Rules updated for profile 'Nginx HTTP'  Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for man-db (2.7.5-1) ... Setting up nginx-common (1.10.0-0ubuntu0.16.04.1) ... Setting up nginx-full (1.10.0-0ubuntu0.16.04.1) ... Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.  invoke-rc.d: initscript nginx, action "start" failed.  dpkg: error processing package nginx-full (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of nginx-full-dbg:  nginx-full-dbg depends on nginx-full (= 1.10.0-0ubuntu0.16.04.1); however:   Package nginx-full is not configured yet.  dpkg: error processing package nginx-full-dbg (--configure):   dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                            Errors were encountered while processing:  nginx-full   nginx-full-dbg  E: Sub-process /usr/bin/dpkg returned an error code (1) Nested regression model Android does not download any files from untrusted CA certificate site I want to change the default placeholder text in my Custom Post Type title field. This isn't possible while registering a new post type.  The following screenshot describes it. How can I tell Google Analytics to not use cookies for my sub domain? I have my web site at example.com, and i have also setup a sub domain for serving static content at static.example.com. On my web pages I'm using Google Analytics, so it will attach its cookies to all page request, even on static.example.com.     I went into the GA settings and added a filter to exclude static.example.com, but I still see cookies (with the __utma.. name) on all web requests to my static domain.  How can i prohibit GA to use cookies on my sub domain? Cooking lore places a lot of importance on air humidity for doughs. When a dough fails, people quickly point that out as a possible factor, .     Is it really true? I don't doubt that the actual flour moisture content changes, but is it noticeable in the dough preparation, or is the difference too small to matter?  If it makes a difference, what can I do about it? Pluralization rule for "five-year-old children", "20 pound note", "10 mile run" Finding solutions to congruence equations Footnote to an item in a description environment It seems like it's not possible to put footnote inside a description list item.  For example in the following code first footnote appears at the bottom of the page, but the second - doesn't:  \documentclass[a4paper,12pt]{article}  \begin{document}     Text text text.\footnote{This footnote is working}     \begin{description}         \item[Label\footnote{This footnote is not working}] Some description     \end{description} \end{document}   Why it's not working this way? And is there any way to put footnote to a list item?