I have just installed Ubuntu for the first time  I cant get my bluetooth to turn on.  I ran a couple of commands and these are the results:  $ sudo rfkill list   0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 1: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   $ sudo rfkill unblock bluetooth $ sudo rfkill list  0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 1: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   $ dmesg | grep Blue  [   16.575002] Bluetooth: Core ver 2.21 [   16.575014] Bluetooth: HCI device and connection manager initialized [   16.575016] Bluetooth: HCI socket layer initialized [   16.575018] Bluetooth: L2CAP socket layer initialized [   16.575021] Bluetooth: SCO socket layer initialized [   19.060274] Bluetooth: hci0 command 0x1001 tx timeout [   27.056612] Bluetooth: hci0: BCM: Reading local version info failed (-110) [   27.061648] Bluetooth: hci0: BCM: chip id 70 [   27.077663] Bluetooth: hci0: BCM43142A [   27.077667] Bluetooth: hci0: BCM (001.001.011) build 0000 [   27.535077] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found [   34.933334] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   34.933337] Bluetooth: BNEP filters: protocol multicast [   34.933341] Bluetooth: BNEP socket layer initialized   $ lspci -knn | grep Net -A2; lsusb  04:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]     Kernel driver in use: wl Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 138a:0050 Validity Sensors, Inc. Swipe Fingerprint Sensor Bus 001 Device 003: ID 064e:930a Suyin Corp.  Bus 001 Device 002: ID 0a5c:216d Broadcom Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bluetooth is on but can't find or be found by any other devices.  Output of sudo service bluetooth status:  ● bluetooth.service - Bluetooth service    Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)    Active: active (running) since ხუთ 2015-06-04 22:33:18 GET; 13min ago  Main PID: 26678 (bluetoothd)    CGroup: /system.slice/bluetooth.service            └─26678 /usr/sbin/bluetoothd -n  ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPAG ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPHS ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSource ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSink ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPAG ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPHS ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSource ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSink ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Adapter /org/bluez/26678/hci0 has been enabled ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Adapter /org/bluez/26678/hci0 has been enabled   Output of lsusb:  Bus 003 Device 005: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0   How can I fix it?
In the review page, it shows stats of recent reviewers. But it is showing wrong stats. Because today (on Monday) it shows week count 53 (on Meta Stack Overflow) which is impossible as there is a limit of 20 reviews per day.    PS: This bug   and . But the bug has occurred again. How to Convert Persian Digits in variable to English Digits Using Culture? Encode multi-class response variable In a classification problem when the response variable has multi-class, e.g., "sunny","rainy","cloudy", how should we encode it? I know that for predictors like this, usually we do , and if a predictors have too many classes, then we might just use the .   When this multi-class issue occurs in the response variable, I guess we can just use LabelEncode() rather use using One Hot encoding right? Because if we use One Hot encoding, then we will have 2 variables as the response variable, and the machine learning algorithm in sklearn usually expects the response variable not to be a vector right? (I mean it expects a long 1D vector with length equal to the number of observations but not a 2D matrix). But on the other hand, if we just map "sunny", "rainy","cloudy" to {1,2,3} or {0,1,2}, or whatever 3 numbers, that will create a less than or greater than relationship among "sunny", "rainy","cloudy", which is not inherited in the original problem. A question about the higher-order Weyl variation for the geodesic distance I have a question in deriving Eqs. (3.6.15b) and (3.6.15c) in Polchinski's string theory vol I p. 105.   Given      $$\Delta (\sigma,\sigma') = \frac{ \alpha'}{2} \ln d^2 (\sigma, \sigma') \tag{3.6.6}$$   where $d(\sigma,\sigma')$ is the geodesic distance between points $\sigma$ and $\sigma'$.   It is said for the Weyl variation $\delta_W$,     $$\partial_a \delta_W \Delta(\sigma,\sigma')|_{\sigma'=\sigma}= \frac{ 1}{2} \alpha' \partial_a \delta \omega(\sigma) \tag{3.6.15a} $$   $$ \partial_a \partial_b' \delta_W \Delta(\sigma,\sigma')|_{\sigma'=\sigma}= \frac{ 1+ \gamma}{2} \alpha' \nabla_a \partial_b \delta \omega(\sigma) \tag{3.6.15b} $$   $$ \nabla_a \partial_b \delta_W \Delta(\sigma,\sigma')|_{\sigma'=\sigma}= - \frac{  \gamma}{2} \alpha' \nabla_a \partial_b \delta \omega(\sigma) \tag{3.6.15c} $$   Here $\gamma=-\frac{2}{3}$.   I know the reason for the factor of $1/2$ in the RHS of Eq. (3.6.15a) and I can derive it. But, putting $\nabla$ on LHS and RHS of Eq. (3.6.15a) will not lead to (3.6.15c). I guess it is because there is some higher-order terms in the geodesic distance where the treatment of (3.6.9)-(3.6.11) omitted. But I don't know how to get it. I tried $ds^2= g_{ab} dx^a dx^b= (\eta_{ab} + h_{ab})dx^a dx^b $ to separate the deviation of Minkowski metric, but I cannot get the factor $\gamma$   My question is, how to derive Eqs. (3.6.15b) and (3.6.15c) (especially there is a prime, $'$, namely $\partial'_b$ in the LHS of (3.6.15b) but not in the RHS) I've recently set up the compiz cube again, and I was very happy to find that that flickering window glitch is gone! However, the cube reflection and deformation plugins are also gone.  I am running a fresh 12.10 install, and I have every compiz plugin package installed (including compiz-plugins-extra, which supposedly contains everything that compiz-fusion-plugins-extra package used to have), but those two plugins are still missing. I haven't been able to find anyone with the same problem.   Any ideas? (thanks!) How to use unnumbered chapters with KOMA-script? I am having some issues with the hyperref package. I would like to create a Introduction chapter without a number so I use \chapter*{Introduction} and \addcontentsline{toc}{chapter}{Introduction} because I want it in the table of contents (see example).  But then the link in my PDF viewer gets it wrong and also the automatically created header is no longer correct (see picture). The table of contents shows the right page number (p.1) but the link is also wrong.   What is my mistake here?  \documentclass{scrbook}  \usepackage{hyperref} \usepackage{blindtext} \usepackage{glossaries}   \makeglossaries  \newacronym{eg}{e.g.}{% for example }   \begin{document}   \frontmatter  % abstract before the table of contents \chapter*{Abstract} \addcontentsline{toc}{chapter}{Abstract} \blindtext  \tableofcontents  % chapter with acronyms \cleardoublepage \phantomsection  \printglossary[type=\acronymtype] \addcontentsline{toc}{chapter}{Glossary}  \cleardoublepage \mainmatter   \phantomsection % \chapter{Introduction} % with this everything is correct but I don't want the number \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction}  \blindtext  \pagebreak  \blindtext  % first chapter \chapter{Chapter1}  \gls{eg} \blindtext  \pagebreak  \blindtext   \end{document} When lecturing about conservation of energy in the 1960s, Richard Feynman remarked:     It is important to realize that in physics today, we have no knowledge of what energy is. We do not have a picture that energy comes in little blobs of a definite amount. It is not that way. However, there are formulas for calculating some numerical quantity, and when we add it all together it gives “28” —always the same number. It is an abstract thing in that it does not tell us the mechanism or the reasons for the various formulas.    50 some years later, have we made any progress in terms of understanding the fundamental nature of what energy is? Keyboard shortcut to switch between applications in Mission Control Does Apple have keyboard shortcuts to switch between applications in Mission Control? (Instead of hovering over with the cursor)?  e.g., which key combination cal I press to get me from "preview" to "app store?" What is the purpose of the word 'self'? Login not redirecting back to page where login link was clicked if account created Why does the atmosphere rotate along with the earth? I was reading somewhere about a really cheap way of travelling: using balloons to get ourselves away from the surface of the earth. The idea held that because the earth rotates, we should be able to land in a different place after some time. As we all know, this doesn't happen.  Someone said that the reason why this doesn't happen is because the atmosphere (air, clouds etc.) also revolves around the earth (with the same angular velocity as the earth's rotation). Since we are also part of the atmosphere, our position doesn't change relatively.  Well, I'm not convinced with that answer. Why does the atmosphere rotate along with earth?  Gravitational force is towards the centre of the earth, but I don't see how it's making the atmosphere rotate. I get this error message   NMI watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [plymouthd:305]    on the startup of my system (even with live-cd).  My PC is a dell inspiron 7559 with intel graphic and nvidia.  UPDATE - this issue also happens when attempting to install ubuntu 18.10 using LiveUSB I am writing a small matrix library in C++ for matrix operations. However my compiler complains, where before it did not. This code was left on a shelf for 6 months and in between I upgraded my computer from debian etch to lenny (g++ (Debian 4.3.2-1.1) 4.3.2 ) however I have the same problem on a Ubuntu system with the same g++.  Here is the relevant part of my matrix class:  namespace Math {     class Matrix     {     public:          [...]          friend std::ostream&amp; operator&lt;&lt; (std::ostream&amp; stream, const Matrix&amp; matrix);     } }   And the "implementation":  using namespace Math;  std::ostream&amp; Matrix::operator &lt;&lt;(std::ostream&amp; stream, const Matrix&amp; matrix) {      [...]  }   This is the error given by the compiler:     matrix.cpp:459: error: 'std::ostream&amp;   Math::Matrix::operator&lt;&lt;(std::ostream&amp;,   const Math::Matrix&amp;)' must take   exactly one argument   I'm a bit confused by this error, but then again my C++ has gotten a bit rusty after doing lots of Java those 6 months. :-) In PHP, function parameters can be passed by reference by prepending an ampersand to the parameter in the function declaration, like so:  function foo(&amp;$bar) {     // ... }   Now, I am aware that this is not designed to improve performance, but to allow functions to change variables that are normally out of their scope.  Instead, PHP seems to use Copy On Write to avoid copying objects (and maybe also arrays) until they are changed. So, for functions that do not change their parameters, the effect should be the same as if you had passed them by reference.  However, I was wondering if the Copy On Write logic maybe is shortcircuited on pass-by-reference and whether that has any performance impact.  ETA: To be sure, I assume that it's not faster, and I am well aware that this is not what references are for. So I think my own guesses are quite good, I'm just looking for an answer from someone who really knows what's definitely happening under the hood. In five years of PHP development, I've always found it hard to get quality information on PHP internals short from reading the source. From time to time I come up with ideas of actions I'd like to have available in the context menu of Nautilus. How do I add them there? Is there something like a Thunar UCA plugin for Nautilus? Is stack.imgur currently down? I just wrote a question before this one and had trouble uploading a screenshot. The drop your image dialog throws no warning or error, but after uploading it won't show.  I also noticed that other questions won't load their images. Could this be some issue with imgur or similar?  Example:     When opening the image in a separate tab, Chrome gives a "too many redirects" error:    This might be linked to Sometimes I have asked a question which got no answers, but is answered in the comments to the question.  How should I handle these questions? I can't accept an answer, so it is never an accepted question.  For example this one:   (ok here the answer in the comments is from me, but nevertheless I also have others of them) If $f \in \mathcal{L}^1(\mathbb{R})$ then $\lim_{h\rightarrow 0}\int_{-\infty}^\infty |f(x+h)-f(x)|dx\rightarrow 0$ I am working on some past prelim problems and one of them is the following: If $f \in \mathcal{L}^1(\mathbb{R})$ then $\lim_{h\rightarrow 0}\int_{-\infty}^\infty |f(x+h)-f(x)|dx\rightarrow 0$   Update: Following Jackie Chong's advice, I am attempting this problem with the dominated convergence theorem. Since $f\in L^1(\mathbb{R})$, $f$ can be approximated from below by a sequence of continuous functions $f_n$. Then, I believe I can say that, for all $n$ sufficiently large, $|f_n(x+\frac{1}{n})-f_n(x)|\le 2|f(x)|$. (I'm not sure of this part thought). Then $2|f(x)|$ is integrable and hence a dominating function for $|f_n(x+\frac{1}{n})-f_n(x)|$. So by the dominated convergence theorem we can take the limit inside $\lim_{n\rightarrow \infty}\int|f_n(x+\frac{1}{n})-f(x)|dx=\int \lim_{n\rightarrow \infty}|f_n(x+\frac{1}{n})-f(x)|dx=0$ Is this on the right track?  Another approach that I thought may work, but which I'm less certain of is the following: If $f$ can be approximated by $C^1$ functions (I have no real justification for this, so please correct me if its wrong), then for each $n$ and each $x$ there is some $y(x,n)\in B_{1/n}(x)$ such that $|f(x+\frac{1}{n}-f(x)|=\frac{1}{n}|f'(y(x,n)|$ but from here I don't see how to proceed, because just because $|f|$ is integrable, I can't justify $|f'|$ being integrable, but if there is some way to fix this approach, hints would be appreciated.   Another thing I was thinking was to first approximate $f$ from below by continuous functions $f_n$ then to define $g_{m,n}=|f_n(x+\frac{1}{m})-f_n(x)| \chi_{[-m,m]}$. Then, for each $n$, the function $g_{m,n}$ is continuous on its support, and since it support is compact, it is uniformly continuous there. Can this be used to justify bringing the limit $\lim_{n\rightarrow \infty}$ inside the integral? Then apply the monotone convergence theorem? I know this idea is probably even more sketchy than my previous one, but if it can be fixed please let me know :)  Thanks! Am I eligible for hats if I join a Stack Exchange site after the start of Winter-Bash? Seems that I just proved $2=4$. Solving $x^{x^{x^{.^{.^.}}}}=2\Rightarrow x^2=2\Rightarrow x=\sqrt 2$.  Solving $x^{x^{x^{.^{.^.}}}}=4\Rightarrow x^4=4\Rightarrow x=\sqrt 2$.  Therefore, $\sqrt 2^{\sqrt 2^{\sqrt 2^{.^{.^.}}}}=2$ and $\sqrt 2^{\sqrt 2^{\sqrt 2^{.^{.^.}}}}=4\Rightarrow\bf{2=4}$.  What's happening!?