How to control which network is used for different things on Ubuntu?
Separate Network Traffic on Two Network Interfaces
Putting a piece of code in between two html tags in Solaris Which is the most portable of sed, awk, perl and sh? independent variables in Random forest model Gauss's law in a uniform charge distribution extending infinitely in all directions Let us assume the universe filled with positive charge. About a particular point, all the positive charged particles will be symmetrical. Now consider a sphere of radius $r &lt; \infty$ and apply Gauss law. According to Gauss law the electric flux through the sphere will be some finite value as it contains some positive charge. But by symmetry the electric field through the sphere and hence electric flux will be zero. This is a contradiction. So I am running on Windows 7 (64-bit) Home Premium with 12 GB RAM (Intel Core i7 920).  I have restricted the Page File to 400MB since it was eating up a lot of space om my SSD (that is 80GB).   After that I sometimes get the "low memory"-warning, like this, except for the behold-comment:   When I get those warning I have usually a lot of RAM available; when I check Resource Manager I have over 2GB "Free" and over 2GB "Available" - usually more than that.  The diskspace on all my drives have over 10GB free.  So the question is - why does Windows complain? It actually restarted by computer (hard boot) when it happened, and as I said - lots or RAM available. Grant admin rights on an application I'm want to grant a user administrative rights to one application on Windows 7. I don't want them to be able to have full admin rights, but admin rights are required for one of the applications they need to use.   Is there a way to set up a batch script or something where the user won't know it's being run as admin?  Or is there another way?  How can I accomplish this? How to disable auto-complete braces in TEXStudio? I want to disable auto-complete for braces in TeXstudio. In its simplest form, when I type {  I do not want it to automatically add a }.  When it does this, many times I end up deleting the brace, which is a hassle.  Also, when I hit Ctrl+I to get into italics mode I don't want it to auto-complete the ending brace either.  I have gone to Options -&gt; Configure TeXstudio... -&gt; Completion -&gt; Show Advanced Options and disabled everything.  But it still auto-completes them.  In case it matters the version I have is TeXstudio 2.8.4. GPS PPS signal corresponds to data time? I currently have an Adafruit Ultimate GPS connected to an Arduino that outputing GPS data (nmea sentences) once per second.  There is also a pin on the GPS outputting 1 PPS signal.    My question is whether the pulse of the PPS suppose to match the time that the GPS data is coming in i.e are they are coming in at the same time?    Also does PPS pulse come in at the beginning of a UTC second or is it random and simply once a second? Parametric vs non-parametric machine learning methods I looked-up many references and websites and researched on how to determine if a method is between parametric or non-parametric. I came up with below definitions,     A parametric algorithm has a fixed number of parameters. In contrast, a non-parametric algorithm uses a flexible number of parameters, and the number of parameters often grows as it learns from more data.   From .  Moreover, I found,     A parametric model, we have a finite number of parameters, and in nonparametric models, the number of parameters is (potentially) infinite.    From .  And many other methods of determination, though the problem is none of them can helo ones to determine if a certain hypothetical method is parametric or not. (For instance, why k-means' number of parameters are constant but KNN is variable or basically what do we call a parameter and what we do not?) How to fix java.net.SocketException: Broken pipe? So I need to compress a directory with max compression.   How can I do it with xz? I mean I will need tar too because I can't compress a directory with only xz. Is there a oneliner to produce e.g. foo.tar.xz? Often when I mistype a command such as ls (e.g. I hit ENTER before I type 's') there is a long (~2s) delay after the terminal displays:  bash: l: command not found...   I can understand the reasons for a similar delay after an incorrect password is entered, per . But why delay after an unrecognized command? Does FAIL_DELAY in /etc/login.defs affect this also? Will my Chinese visa still be valid if I renew my passport? Will my Chinese visa still be valid if I renew my passport? If so how does that work?  I have heard that you can travel with your new passport and just show the old passport with the valid visa when entering China. Has anyone done that? Recently?   I have also been told that you have to get a new visa, which seems somewhat logical but frustrating, especially when my Chinese visa is only a few months old.  My Chinese visa was issued in late Nov 2014 and I heard the rules changed between the US and China. My visa says it's good for 10 years and my US passport expires in 5. Format string dynamically AC1200 Wireless adapter in Ubuntu 19.10 lstlisting - line number gaps Is it possible to add non-number characters on the left of a code block?  Specifically, I want to add ... to correspond with some source code (see image).    I am currently using commands to stop / start the line numbers. Here is the code:  \documentclass[12pt]{article}  \usepackage[a4paper, margin = 20mm, top = 30mm, bottom = 25mm]{geometry} \usepackage{xcolor, soul} \usepackage{listings}  \definecolor{codebackground}{rgb}{0.95, 0.95, 0.92}  \lstset {     frame            = tb, % hrule above and below     keepspaces       = true,     columns          = flexible,     basicstyle       = {\normalsize\ttfamily},     escapeinside     = {(*@}{@*)}, % for escaping     backgroundcolor  = \color{codebackground},     showstringspaces = false,     language         = C,     keywordstyle     = \color{blue},     stringstyle      = \color{red},     commentstyle     = \color{teal},     numbers          = left, % {none, left, right}     firstnumber      = 1,     numberstyle      = \scriptsize\color{black},     numbersep        = 5pt }  \let\origthelstnumber\thelstnumber \makeatletter % for stopping line numbers \newcommand*\stopnumber {     \lst@AddToHook{OnNewLine}     {         \let\thelstnumber\relax         \advance\c@lstnumber-\@ne\relax     } } % for starting line numbers \newcommand*\startnumber[1] {     \setcounter{lstnumber}{\numexpr#1-1\relax}     \lst@AddToHook{OnNewLine}     {         \let\thelstnumber\origthelstnumber         \refstepcounter{lstnumber}     } } \makeatother  \begin{document} \begin{lstlisting}[firstnumber = 456] int third_function(const int c) {     /* error checking */     if(c &lt; 0)     {         return;     } (*@ \stopnumber @*)      ...     (*@ \startnumber{512} @*)     /* other stuff */     int d = 4;     char* word = "third function"; (*@ \stopnumber @*)      ...     (*@ \startnumber{678} @*)     return (c * d); } \end{lstlisting} \end{document} What does "user was removed" mean and why did my reputation change because of it? Message appearing when a user was removed.     It seems I lost 1765 reputation points on Stack Overflow yesterday. The reason given in my history is "removed", with the description of "User was removed ()". I don't understand what that means. What caused this? remove isp-provided dns My isp provides a dns service; but unfortunately they do block certain sites. I would like to use opendns or google; but it seems like it doesn't work.    I have set up a wired connection; given a manual ip and entered opendns-ip's in the nameserver field (all through the gui). Still url's are being resolved through my ISP. I have tried to configure the same on my girlfriends laptop (win 7) and I also can't seem to do the setup. My previous computer also was a win 7 and had no problem. (so I believe the problem is 'me') If it were only one site, i could edit the hosts file; but I prefere to circumvent their whole dns server.  Is there something an isp can do to block the use of other dns-servers than theirs? Is it possible to re-route the ISP dns to the opendns? How can I easily switch audio output in Ubuntu 17.10 and later with GNOME? If you could travel to the center of the Earth (or any planet), would you be weightless there?