Is there any Linux command to get various information like context switches of a process? Any solution other than ps will be appreciated.
I want to see if my process makes a lot of context switches. I also want to see how manpulating task groups affects the number of context switches.
Replace a long string with the sed command: Argument list too long error I'm trying to execute this command  sed -i -e "s/BASE_64/$BASE_64/" FILE_NAME   where $BASE_64 is a base 64 representation of a file content.  sed gives me an error since the string is too long.     Argument list too long   How is it possible to avoid this error? How to install software or upgrade from an old unsupported release? Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc To install the graphics driver I need to exit GUI / Gnome and go to the terminal. How can I do this in Ubuntu 18.04? Ctrl(STRG)+Alt+F1...F7 does not work, neither on the desktop, nor on the login screen... Why is this function continuous, unlike the Dirichlet function? Filezilla or WinSCP save password in plain text which is unsecured on public machines. Is there any FTP client can save and encrypt password so that people using it only can access to FTP but not able to see password? Thanks! Listing layers from .mxd file using ArcPy for ArcGIS Pro? If $[G' : G'']\leq p^2$, then $G'$ is abelian. Problem : Let $G$ be a p-group and $G'$ denote the commutator subgroup of $G$. If $[G' : G'']\leq p^2$, then $G'$ is abelian.  It is easy to prove it for the case of $[G' : G'']=1$ since G is solvable. But it is too hard to prove the other cases. Please give me any advice or solutions. Thanks in advance. How do I get the number of days between two dates in JavaScript? Cycles not rendering image or movie clip used as background in the viewport First time I've used cycles rendering engine.  I'm using a movie clip as the background in short animation. Selected RBGA under Property Tab, and Transparent under Film Tab.  It looks good and individual frames in OpenGL active viewport render, and looks fine.  When I try to get it to spit out PNG files of the finished animation the objects render out fine, except no movie clip background as Blender Render engine did when using Paper Sky setting.  Operator error, or am I trying to do something Cycles won't do?  Haven't found an answer in my searches so far.  Can anyone point me in the right direction please.   Addition:  I think I found my problem after a couple more hours of research.  Post should read "operator ignorance" instead of operator error.  Too tired to try the solution tonight, everything looks better in the morning. Thanks anyway.  Sorry, I just saw your posts.  Really tired.  Much appreciation. Distorted Cabin & Oily Sheen: What is going on in this paragraph? iOS app in a zombified state Can I run two 4k (3840x2160) displays at 60hz on a Macbook Pro 13" 2015 I think the title says it all. Can I run two 4k (3840x2160) displays, both at 60hz on a Macbook Pro 13' 2015? I understand they might need to be SST and each connected to a Thunderbolt 2 port. But I cannot get a confirmation whether that setup would work.    says:     Simultaneously supports full native resolution on the built-in display and up to 3840 by 2160 pixels on up to two external displays, both at millions of colors.   …   Support for up to 5120-by-2880 resolution at 60Hz on a single external display (model with AMD Radeon R9 M370X only)   Unfortunately, it does not state at what frequency the two displays can be run.    says:     With OS X Yosemite v10.10.3 and later, most single-stream 4K (3840x2160) > displays are supported at 60Hz operation on the following Mac computers: … MacBook Pro (Retina, 13-inch, Early 2015) and later. MacBook Pro (Retina, 15-inch, Mid 2014) and later   Unfortunately it does not state whether two displays can be run at 3840 by 2160 at 60hz I'm curious of how illusions would affect spells or abilities that require a target to be looking at something. A good example of this would be Medusa's Petrifying Gaze which has the following effect:  Petrifying Gaze: When a creature that can see the medusa's eyes starts its turn within 30 feet of the medusa, the medusa can force it to make a DC 14 Constitution saving throw if the medusa isn't incapacitated and can see the creature. If the saving throw fails by 5 or more, the creature is instantly petrified. [...]  So if someone were to cast Minor Illusion to put a bag over Medusa's head, would other player/creatures who do not realize that the bag is an illusion be affected by the gaze if they were looking in the direction of it? Does the illusion block the effect? Automatically turn on VPN on computer unlock Ubuntu 18.04 When I wake the laptop from the sleep I need to get the VPN state as I left it (turned on). Can't find the setting of autoconnect in VPN settings... Need some easy way to ask the system to autoconnect the VPN when the internet is available.  Edit based on comments:  Ubuntu 18.04 has no option to Always connect to VPN when using using this connection. math behind complex numbers C||RLC I have a mathematical problem with the following formula. The goal is to transform this equation to have a seperated real and imaginary part. I have already done this with several other equasions, but for this particualar one I don't know where to start.  I dont expect you to do the complete work of transforming for me, it would already be very nice if you could give me a hind on how you would start.  Thank you in advance!  C||RLC      This is my current progress:    My question is:  How can I get rid of the imaginary part jωC2*R?  When the denominator is completely real I can just split up the formula and have an imaginary and a real part. Biblatex authoryear dashed for entries with no year I'm using biblatex authoryear and have multiple entries of the same author that do not have a year. When I cite them there are letters shown to distinguish them:   But in the bibliography those letters are not shown and you can only distinguish them by the title. Is it possible to show the letters in the bibliography, too?  \documentclass[a4paper,12pt]{article}% \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{filecontents} \begin{filecontents}{bib.bib} @BOOK{bar1,   title = {Text One},   year = {},   author = {Firstname Lastname}, } @BOOK{bar2,   title = {Text Two},   year = {},   author = {Firstname Lastname}, } \end{filecontents}  \usepackage[backend=biber, style=authoryear-icomp, dashed=true]{biblatex} \addbibresource{bib.bib}  \begin{document}  \cite{bar1} and \cite{bar2}  \printbibliography \end{document} This was posted on facebook and people are saying it is incorrect, it should be: "...as you and I"   Which is correct? reversing plot axis for Plot, LogPlot, LogLogPlot Why are the endpoint lines of intervals (`|-|`) not shown completely? I use \draw[|-|] () to (); to draw a few intervals.  I expect that each interval is rendered like |----| (see the 2nd and the 3rd intervals in the figure below).  However, the top and the bottom intervals below show only a half of their endpoint lines (i.e., |).  Why are these endpoint lines (|) not shown completely? How to show them?        \documentclass{standalone} \usepackage{tikz}  \begin{document} \begin{tikzpicture}   \draw[|-|, red] (0,0) to (1,0);   \draw[|-|, red, dashed] (0,1) to (1,1);   \draw[|-|, blue, dashed] (0,2) to (1,2);   \draw[|-|, blue] (0,3) to (1,3); \end{tikzpicture} \end{document} What is the motivation for including the compactness and semi-simplicity assumptions on the groups that one gauges to obtain Yang-Mills theories?  I'd think that these hypotheses lead to physically "nice" theories in some way, but I've never, even from a computational perspective. really given these assumptions much thought.