Restarting network manager corrupted my network manager, after that I reinstalled fresh ubuntu I also tried , but nothing works for me Wicd is also not robust My Kernel version is (4.10.0-28-generic) Here is my output of network details:     sudo lshw -C network  *-network                   description: Ethernet interface    product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:02:00.0    logical name: enp2s0    version: 10    serial: d0:17:c2:12:1b:d7    size: 10Mbit/s    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s    resources: irq:47 ioport:4000(size=256) memory:b2104000-b2104fff memory:b2100000-b2103fff *-network    description: Wireless interface    product: RTL8821AE 802.11ac PCIe Wireless Network Adapter    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:03:00.0    logical name: wlp3s0    version: 00    serial: b0:c0:90:69:0e:6d    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless    configuration: broadcast=yes driver=rtl8821ae driverversion=4.10.0-28-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11    resources: irq:51 ioport:3000(size=256) memory:b2000000-b2003fff *-network    description: Ethernet interface    physical id: 1    logical name: enp0s20u8    serial: 7e:b3:cd:e0:18:61    capabilities: ethernet physical    configuration: broadcast=yes driver=rndis_host driverversion=22-   Aug-2005 firmware=RNDIS device ip=192.168.42.238 link=yes multicast=yes   Here is the output of lsusb  Bus 001 Device 004: ID 138a:0010 Validity Sensors, Inc. VFS Fingerprint sensor Bus 001 Device 003: ID b49a:04f2   Bus 001 Device 002: ID 8087:8001 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 003: ID 0bda:57bc Realtek Semiconductor Corp.  Bus 002 Device 002: ID 24ae:2000   Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   Output of dkms status  The program 'dkms' is currently not installed. You can install it by typing:   sudo apt install dkms  here is the output of networks when it is not showing in network manager Applet using command    sudo iwlist wlp3s0 scan | grep -i SSID  ESSID:"Error" ESSID:"Sagar_Network"                   ESSID:"USER_5EE147"                     ESSID:"CPH1701" ESSID:"Moto E\xC2\xB3 POWER 4025" ESSID:"AAAAAHz2tmkAQwHVRedmi" ESSID:"Rconsultant"
I have continuous problems of network dropping connections on wifi with ubuntu 16.04, I have an ASUS R510J, this is my network card:  ##### lspci #############################  03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]         Subsystem: AzureWave RTL8821AE 802.11ac PCIe Wireless Network Adapter [1a3b:2161]         Kernel driver in use: rtl8821ae  04:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)         Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:200f]         Kernel driver in use: r8169   sudo service network-manager restart doesnt's help, as I never regain internet connection after it drops, and I have to restart the PC. On Ethernet cable I have no problem.  What do you think is the issue? drivers?  thank you
I think it would be useful if we could join across databases in the data-explorer.  For example, I'd like to query up a list of questions that I had a hand in migrating away from SO, and see what percentage of them were subsequently closed or re-migrated.  I realise I could download the various data dumps and do this on my own machine, but it would be nice if it were allowed on the online version.  Is this possible/practical? How do I read an entire file into a std::string in C++? How do I read a file into a std::string, i.e., read the whole file at once?  Text or binary mode should be specified by the caller. The solution should be standard-compliant, portable and efficient. It should not needlessly copy the string's data, and it should avoid reallocations of memory while reading the string.  One way to do this would be to stat the filesize, resize the std::string and fread() into the std::string's const_cast&lt;char*&gt;()'ed data(). This requires the std::string's data to be contiguous which is not required by the standard, but it appears to be the case for all known implementations. What is worse, if the file is read in text mode, the std::string's size may not equal the file's size.  A fully correct, standard-compliant and portable solutions could be constructed using std::ifstream's rdbuf() into a std::ostringstream and from there into a std::string. However, this could copy the string data and/or needlessly reallocate memory.    Are all relevant standard library implementations smart enough to avoid all unnecessary overhead?  Is there another way to do it?  Did I miss some hidden Boost function that already provides the desired functionality?     void slurp(std::string&amp; data, bool is_binary) The recent discovery by the LIGO made me wonder about this.  We know that there exists a CMBR, Cosmic Microwave Background Radiation, a blanket of electromagnetic energy covering the universe, made by the Big Bang.  But, the big bang was an explosive event. The huge "shockwave" made by it sent ripples in space time. (Primordial gravitational waves)  Wouldn't these ripples flood the universe creating sort of a Cosmic Gravitational Background Radiation (not exactly radiation)?  If such waves do flood the universe, couldn't a much more sensetive version of LIGO be able to detect this and use it as a contrast to create "gravitational telescopes"? When I dock my Windows 7 laptop, I want it to prefer the wired ethernet connection over WiFi.  This is a pretty straightforward thing to do on my Mac - I just reorder my network preferences, and it "does the right thing." I just can't figure out how to achieve the same thing on my Win7 laptop.  So, when I'm docked, it connects to WiFi, and then fails to connect to servers on the local wired network. How do I fix this? How do I insert a nice tilde that is centered in the middle in a lstlisting? I found another thread about  but I can't apply it because the method described there only works outside of lstlisting as lstlisting displays all the text literally. Any ideas?  Here is how the tilde looks in my document at the moment - it's at the very top of the font and I would like it to be in the middle (like ~ this).    Here is the LaTeX for this fragment:  \section{Remove duplicate, consecutive lines (emulate "uniq")}  \begin{lstlisting} awk 'a !~ $0; { a = $0 }' \end{lstlisting}  Variables in Awk don't need to be initialized or declared before they are being used. Catch Regex too complicated when splitting a string in salesforce I have created a function wherein I split a string from the csv filecsvAsString.split('\n') . It is working when the string is not so big. But when I try to split a very large string, an error will occur      regex too complicated   what I want to do is to catch if an error occur during the split process. How will I do it ? I've tried to use try and catch but the problem still occur. Is there any other possible solution? Why does my Mac's list of "Open with" applications start listing the apps twice and sometimes three times? Now that I have Firefox 49 or higher, how do I watch Netflix? I remember reading a sci-fi story where astronauts visit a planet, which is covered in stationary aliens with mile long necks that filter feed from the atmosphere.  It was published between 1960 and 2000.    It was in English and involved a pair of astronauts that went from planet to planet on a tour or something, though I don't know details of any other planets they visited. I have float raster and now I want to convert it to vector. How is it possible with the Python GDAL library?  I have tried with gdal_polygonize.py of GDAL utilities on the command line and it worked excellently. But this utility is based on GDALPolygonize() of C++ library and I want to C++ method GDALFPolygonize() to be used instead, which manipulates float raster data as far as I know. How do I make Thunderbird open links in Chromium? I want to be able to click links in Thunderbird emails and have them open in Chromium (package name chromium-browser). Instead, they open in Firefox.  I have tried the following:   xfce preferred applications (Chromium is not listed, so I had to hunt down the executable) -- next time I run chromium, it complains that it is no longer the default browser. Telling Chromium to set itself as the default browser. Thunderbird opens links in Firefox. update-alternatives. It's already listed as an alternative at the same priority as Firefox. The "open web browser" app menu item opens Chromium. Thunderbird opens links in Firefox.   I have looked through the entire preferences gui in Thunderbird (but not the advanced config editor yet) and seen nothing that mentions what browser to open links in.  Please note that this is not Google Chrome. To env or not to env I thought I remembered hearing the food agency  say that you should never reheat chicken meat after the initial cooking. However, I cannot find the statement of it anymore. Now I'm starting to suspect my memory.  Could this statement be true?  Is it unsafe to reheat chicken? How to detect the presence of URL in a string Unable to Change Apple ID and password I have tried repeatedly to change my Apple ID and password without success. I have followed all of the directions trying both my emails and asked for new passwords----no luck whatsoever. How can I find out what is using the hard disk? Possible Duplicates:             Once or twice a day my computer starts writing significantly hard to the hard drive, the HD led is ON and the performance hit is noticeable. A strange observation is that the Task Viewer does not show I/O activity - even Process Explorer shows no CPU activity and no I/O bytes read or written.  Is there a way to know which application is using the hard drive and how much data is it reading or writing? dpkg: error: dpkg status database is locked by another process I just wondered if somebody could tell me what this means:  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. reidsr@ubuntu:~$ sudo dpkg --configure -a dpkg: error: dpkg status database is locked by another process reidsr@ubuntu:~$    How do I run sudo dpkg --configure -a  manually? ggplot2: facet_wrap strip color based on variable in data set Three side-by-side tables I am using this LaTeX code to generate three tables side by side. However, it showing errors and not giving satisfactory result. Can anyone please help me to short out the problem.  \begin{table} \centering \makebox[0pt][c]{\parbox{1.2\textwidth}{% \begin{minipage}[b]{0.265\hsize}\centering \begin{tabular}{ | c | c |c | } \multicolumn{3}{c} \hline {$q=1/10$} \\ \hline T &amp; $r_h$ &amp; $\omega$ \\  \hline 0.233 &amp; 0.135 &amp; 2.38486-0.34667I  \\  0.256 &amp; 0.140 &amp; 2.38092-0.35837I \\ 0.273 &amp; 0.145 &amp; 2.38049-0.35982I \\  0.278 &amp; 0.146 &amp; 2.38007-0.36130I \\  0.281 &amp; 0.147 &amp; 2.37964-0.36282I \\  \hline 0.284 &amp; 0.761 &amp; 2.54150-2.03209I \\ 0.285 &amp; 0.765 &amp; 2.54515-2.04292I \\ 0.289 &amp; 0.800 &amp; 2.57799-2.13761I \\ 0.302 &amp; 0.900 &amp; 2.67987-2.40712I \\ 0.312 &amp; 1.000 &amp; 2.79214-2.67552I \\ \hline \end{tabular} \end{minipage} \hfill \begin{minipage}[b]{0.265\hsize}\centering \begin{tabular}{ | c | c | c | } \multicolumn{3}{c} \hline {$q=1/9$} \\ \hline T &amp; $r_h$ &amp; $\omega$ \\ \hline 0.227 &amp; 0.150 &amp; 2.34385-0.41094I  \\  0.245 &amp; 0.155 &amp; 2.34215-0.41723I \\ 0.260 &amp; 0.160 &amp; 2.34056-0.42416I \\  0.271 &amp; 0.165 &amp; 2.33908-0.43175I \\  0.276 &amp; 0.167 &amp; 2.33852-0.43497I \\  \hline 0.280 &amp; 0.720 &amp; 2.50248-1.92299I \\ 0.283 &amp; 0.750 &amp; 2.52893-2.00424I \\ 0.286 &amp; 0.780 &amp; 2.55660-2.08533I \\ 0.289 &amp; 0.800 &amp; 2.57568-2.13931I \\ 0.302 &amp; 0.900 &amp; 2.67807-2.40842I \\ \hline \end{tabular} \end{minipage} \hfill \begin{minipage}[b]{0.265\hsize}\centering \begin{tabular}{ | c | c | c |} \multicolumn{3}{c} \hline {$q=1/8$} \\ \hline T &amp; $r_h$ &amp; $\omega$ \\  \hline 0.246 &amp; 0.180 &amp; 2.29733-0.50611I  \\  0.255 &amp; 0.185 &amp; 2.29654-0.51364I \\ 0.263 &amp; 0.190 &amp; 2.29589-0.52172I \\  0.269 &amp; 0.195 &amp; 2.29534-0.53033I \\  0.273 &amp; 0.199 &amp; 2.29496-0.53758I \\  \hline 0.275 &amp; 0.675 &amp; 2.46067-1.80426I \\ 0.277 &amp; 0.700 &amp; 2.48131-1.87194I \\ 0.288 &amp; 0.800 &amp; 2.57245-2.14170I \\ 0.302 &amp; 0.900 &amp; 2.67555-2.41027I \\ 0.317 &amp; 1.000 &amp; 2.78870-2.67796I \\ \hline \end{tabular} \end{minipage}% }} \end{table} I'm learning C#, so I made a little C# program that says Hello, World!, then compiled it with mono-csc and ran it with mono:  $ mono-csc Hello.cs $ mono Hello.exe Hello, World!   I noticed that when I hit TAB in bash, Hello.exe was marked executable. Indeed, it runs by just a shell loading the filename!   Hello.exe is not an ELF file with a funny file extension:  $ readelf -a Hello.exe readelf: Error: Not an ELF file - it has the wrong magic bytes at the start $ xxd Hello.exe | head -n1 00000000: 4d5a 9000 0300 0000 0400 0000 ffff 0000  MZ..............   MZ means it's a Microsoft Windows statically linked executable. Drop it onto a Windows box, and it will (should) run.  I have wine installed, but wine, being a compatibility layer for Windows apps, takes about 5x as long to run Hello.exe as mono and executing it directly do, so it's not wine that runs it.  I'm assuming there's some mono kernel module installed with mono that intercepts the exec syscall/s, or catches binaries that begin with 4D 5A, but lsmod | grep mono and friends return an error.   What's going on here, and how does the kernel know that this executable is special?    Just for proof it's not my shell working magic, I used  (aka sh) to run it and it still runs natively.    Here's the program in full, since a commenter was curious:  using System;  class Hello {   /// &lt;summary&gt;   ///   The main entry point for the application   /// &lt;/summary&gt;   [STAThread]   public static void Main(string[] args) {     System.Console.Write("Hello, World!\n");   } }