I need to monitor the network activities of a process and the bandwidth of the connection. So I decided to use nethog and netperf combine with grep and awk to write the values to a file.   nethog command: nethogs -t  eth0 | grep firefox | awk '{ print $3 }' (I want to take the upload/download speed). The 1st problem is that command doesn't print anything.  More detail: command: nethogs -t  eth0 | grep firefox output:  usr/lib/firefox/firefox-bi�)/4956/1000  0.338867    0.239063 /usr/lib/firefox/firefox-bi�)/4956/1000 0.543555    0.274219 /usr/lib/firefox/firefox-bi�)/4956/1000 0.794531    0.489844 /usr/lib/firefox/firefox-bi�)/4956/1000 0.794531    0.489844 /usr/lib/firefox/firefox-bi�)/4956/1000 0.749023    0.589844 /usr/lib/firefox/firefox-bi�)/4956/1000 1.30098 3.47617 /usr/lib/firefox/firefox-bi�)/4956/1000 1.90449 8.0127 /usr/lib/firefox/firefox-bi�)/4956/1000 5.31641 25.0033 /usr/lib/firefox/firefox-bi�)/4956/1000 8.60762 42.0176   I want the two values at the bottom right. But as you can see the output ain't consistent (the space), add | awk '{print $3}' most of the time return nothing. And I can't fix this.  netperf command: netperf -H 192.168.1.10 and the output is:  Recv   Send    Send                           Socket Socket  Message  Elapsed               Size   Size    Size     Time     Throughput   bytes  bytes   bytes    secs.    10^6bits/sec    524288 524288 262144    10.00    **718.62**   I want to print the value on the bottom right but have no idea how to. That's the 2nd problem   Can you guys help me out? Any ideas will be appreciated!
I need to monitor the network activities of a process and the bandwidth of the connection. So I decided to use nethog and netperf combine with grep and awk to write the values to a file.   nethog command: nethogs -t  eth0 | grep firefox | awk '{ print $3 }' (I want to take the upload/download speed). The 1st problem is that command doesn't print anything.  More detail: command: nethogs -t  eth0 | grep firefox output:  usr/lib/firefox/firefox-bi�)/4956/1000  0.338867    0.239063 /usr/lib/firefox/firefox-bi�)/4956/1000 0.543555    0.274219 /usr/lib/firefox/firefox-bi�)/4956/1000 0.794531    0.489844 /usr/lib/firefox/firefox-bi�)/4956/1000 0.794531    0.489844 /usr/lib/firefox/firefox-bi�)/4956/1000 0.749023    0.589844 /usr/lib/firefox/firefox-bi�)/4956/1000 1.30098 3.47617 /usr/lib/firefox/firefox-bi�)/4956/1000 1.90449 8.0127 /usr/lib/firefox/firefox-bi�)/4956/1000 5.31641 25.0033 /usr/lib/firefox/firefox-bi�)/4956/1000 8.60762 42.0176   I want the two values at the bottom right. But as you can see the output ain't consistent (the space), add | awk '{print $3}' most of the time return nothing. And I can't fix this.  netperf command: netperf -H 192.168.1.10 and the output is:  Recv   Send    Send                           Socket Socket  Message  Elapsed               Size   Size    Size     Time     Throughput   bytes  bytes   bytes    secs.    10^6bits/sec    524288 524288 262144    10.00    **718.62**   I want to print the value on the bottom right but have no idea how to. That's the 2nd problem => solved by  fedorqui!  Can you guys help me out? Any ideas will be appreciated!
Plagiarism of Lecture Slides Original Post:  I recently attended a lecture with highly technical content.  One of the middle slides in the deck had a particular phrase that reminded me of something that I had read several years before.  It took me a few minutes, but I found the original source (another slide deck) and am shocked to find that the professor lifted 35 slides verbatim from the original source.  The University holds students accountable for plagiarism and strictly defines plagiarism such that this clearly fits.  The slides were used verbatim and no credit or reference was provided.  Further, logos were added and color schemes were changed to make make them look slightly more like original content.  What should I do?  This professor has a professional full time job and I can imagine this getting swept under the rug, but this is clearly plagiarism and is spelled out very clearly in the student conduct code.  Is this an overreaction or should I pursue this?  This is confounded by the fact that I am very disappointed by the rigor of the course and feel like the professor lacks adequate technical background to teach the course (I guess my suspicions came true).  I'm really busy at work so don't want to deal with a big todo, but believe this really discredits the academic integrity of the course.  Additional content in response to comments:  The University defines plagiarism as "Using another writer's words without proper citation."  There is no proper citation given here, and these are not educational materials.  This is 35 slides from someone else's tutorial presentation.  I do not believe that the professor and the author of the original content have a relationship.  I have emailed the author to enquire about any permissions or relationship.  Still, even with permission, this is still plagiarism as defined be most people and as defined by the University.  All original works in the US are implicitly copyright protected, so there is also a copyright issue, but this is not currently my concern, though it could be of interest to the original author.  I have emailed him, so this is up to him.  This is a US institution and is a top tier highly respected school.  I am also not a lay student, but a Ph.D. with a degree from a top tier university who has served as a faculty member at two top tier universities (including this one).  I have also taught undergraduate courses in the past.  I have never engaged in this type of plagiarism, have never known colleagues to do so, and am shocked that so many people suggest this is par for the course in teaching.  My doctorate is from a school that prides itself on its honor code and takes honor code violations very seriously and I have served on the honor council and deliberated on a case of plagiarism in the past.  I really am shocked by this incident.  Response from Original Author of the Slides:  I have received a response from the author of the slides and he states that the work is his original work, that there are no additional authors of the work, that no one has been given permission to present the work, and that he believes his copyright on the work has been infringed upon.  He has requested additional information to assert his claim on the copyright. How do I install PlayOnLinux on Ubuntu? 'as compared to' vs 'as compare to' How do I import a namespace in Razor View Page? How can I boot with an older kernel version? I have a one-dimensional array of strings in JavaScript that I'd like to turn into a comma-separated list. Is there a simple way in garden-variety JavaScript (or jQuery) to turn that into a comma-separated list? (I know how to iterate through the array and build the string myself by concatenation if that's the only way.) Packaging a bike for flying with a bike bag I am doing a cycle tour of Japan starting from Fukuoka and ending in Tokyo. I will be flying with the bike and as my start and end points differ I will not have the opportunity to use a box (unless anyone has any ideas?). I will most likely use one of  bags and I have been told by the airline that nothing is necessary by way of packing the bike but I would naturally like to see my bike in one piece at the other end. The bike is a Specialized Tricross with disc brakes. Does anyone have any pointers as to the safest way to package something like this. I think I will definitely take the rear dérailleur off and wrap bubble wrap along the length of the bike to protect the wheels, pedals etc but other than that I'm not sure what lengths to go to. Does anybody have any experience or ideas? How to run grep on a single column? Polar form to cartesian Let $\Gamma$ be a circle that passes through the origin. Show that we can find real numbers $s$ and $t$ such that $\Gamma$ is the graph of $r = 2s \cos (\theta + t).$  I know this has to be converted to a cartesian equation, but how do I do this, and what do I do after?  Thanks Why is MixColumns omitted from the last round of AES? Kind of converse of Kolmogorov maximal inequality Let $S_n=\zeta_1+...+\zeta_n$ where $\zeta_i$ are independent with $E\zeta_i=0, E\zeta_i^2=\sigma_i^2&lt;\infty, |\zeta_i|&lt;K$.  Then, $P(\max_{1 \leq m  \leq n}|S_m| \leq x) \leq (x+K)^2/\operatorname{var}(S_n)$.  How do we show this?  The hint says that I should use the fact that $S_n^2-\sum_{m \leq n}\sigma_m^2$ is a martingale. But I am totally clueless....  Any hint would be appreciated! Thanks and regards. Why do I have two docks in Ubuntu desktop (with GNOME 3) after installing Dash to Dock? Transit Visa in Hong Kong for 15 hour layover between India and USA? Few days back I have installed ecryptfs, created a private directory using it. Now my Ubuntu login became super slow. I have tried removing ecryptfs from Synaptic. I found It, it can not be deleted that way. Somewhere I have read about this command  ecryptfs-setup-private --undo   But this command displays a rather confusing list of commands on terminal. I don't want to mess up my installation, neither want to loose my administrator account.  Now my question is, how can I safely remove /home/user/Private (.Private) and remove ecryptfs encryption ? Creating Network Flow Diagram using QGIS I have a Telecom cable network in Geopackage format. How do I create a Network flow diagram from which to represent the relationship between Fiber distribution hub to Network access point? This is an exam question I was practising. I have the general understanding of Linear programming, but how would you go about finding the Decision Variables, Objective function and Constraints for this?  My Opinions: Decision variables: $M_1$- # of Model $1$ to be produced $M_2$ and $M_3$(similar definition as $M_1$)  Objective function: I'd Multiple the Cost to make in house by cost to buy from subtractor  to get Minimise: $3900M_1+7500M_2+27300M_3$  Constraints: $3M_1+1.5M_2+2M_3\ge0$  $1.25M_1+2.5M_2+0.75M_3\ge8500$  $M_1,M_2,M_3\ge 5500$  No idea where number order would go? Do I use it in the Constraints and multiply by the Hours?  Now, am I on the right track? How can we make First letter Capital while using trigonometric functions. eg: \cos (60^\circ) gives simple cos (all in small). What is needed is 'Cos' (with initial capital). For italics in mactex i used \it but it didn't italicized 'cos' only the number '60'. So how to do that? Why does stdafx.h work the way it does? As usual, when my brain's messing with something I can't figure out myself, I come to you guys for help :)  This time I've been wondering why stdafx.h works the way it does? To my understanding it does 2 things:   Includes standard headers which we might (?) use and which are rarely changed Work as a compiler-bookmark for when code is no longer precompiled.   Now, these 2 things seems like two very different tasks to me, and I wonder why they didn't do two seperate steps to take care of them? To me it seems reasonable to have a #pragma-command do the bookmarking stuff and to optionally have a header-file a long the lines of windows.h to do the including of often-used headers... Which brings me to my next point: Why are we forced to include often-used headers through stdafx.h? Personally, I'm not aware of any often used headers I use that I'm not already doing my own includes for - but maybe these headers are necessary for .dll generation?  Thx in advance How to get over "device or resource busy"? When is $f_{xy}(x,y)\neq f_{yx}(x,y)?$ When is $f_{xy}(x,y)\neq f_{yx}(x,y)?$, where $f_{xy}$ and $f_{yx}$ denote the mixed (second) partial derivatives of a multivariable function $z=f(x,y)$.