PulseAudio huge CPU usage For a few month now, the sound doesn't work on my Ubuntu 16.04. I tried some things to resolved that but I can't remember what I did.  Today, I checked my CPU usage as every day and I saw PulseAudio with 10-15% of CPU usage but I don't use it (sound off/no source of sound is running).  If someone has a idea and/or a solution for this huge CPU usage, i'll be grateful.
Xorg 100% cpu with pulseaudio On Ubuntu 16.04.3 LTS  Pulseaudio causes Xorg to use 100% CPU.  After disabling autospawn in /etc/pulse/client.conf and killing pulseaudio CPU immediately drops to acceptable level. After restarting pulseaudio Xorg returns to 100% CPU.  pulseaudio --kill pulseaudio --start   Installed versions:  pulseaudio 1:8.0-0ubuntu3.7 xorg       1:7.7+13ubuntu3 nvidia-390 390.30-0ubuntu1    How to fix this?
About number truncation of ticks display in ListPlot Evaluate the sum: $\sum\limits_{n=0}^{\infty} \frac1{F_{(2^n)}}$ Evaluate the sum:  $$\sum_{n=0}^{\infty} \frac{1}{F_{(2^n)}}$$  where $F_{m}$ is the $m$-th term of the Fibonacci sequence. I need some support here. Thanks. What spell slot count formula can I use to base my homebrew mechanic on? How many players can play split-screen, and what game modes are (or aren't) available?   How many players can play local co-op? How many players can play local multiplayer? How many players can play online multiplayer from a single console? I have a block of text that I would like to automatically break in blocks of equal length. Something like what \num does with numbers.  What I need is a definition for what I called \makeBlocks. The MWE below should output: aaaaa bbbbb ccccc ddddd followed by abc def ghi  \documentclass{article}  \newcommand{\makeBlocks}[1]{???}  \begin{document} \makeBlocks{5}{aaaaabbbbbcccccddddd}  followed by \makeBlocks{3}{abcdefghi} \end{document} I've seen many variants of this problem online, but not quite the same as this, so I don't believe this is a duplicate.  The famous differential equation problem models a skydiver jumping out of a plane as  $$m \frac{dv}{dt} = -mg-cv$$ where m is the mass of the skydiver, g is acceleration due to gravity (9.81 m/s) and c is the coefficient of air resistance.  Here is my question:     Suppose the skydiver exits the stationary helicopter at an altitude of 2000m and opens the parachute at 500m. For this exercise, the parachute opens instantaneously. Suppose m= 70kgs, the coefficient of air resistance is c = 14 for a free falling body and c = 105 after the parachute opens. When does the skydiver open the parachute? When does the Skydiver hit the ground?   So my attempt at a solution kinda starts like this, but this is where I get stuck:  Let's assume that s(t) is the distance the body falls in time t from its initial point of release, then $v = \frac{ds}{dt}$ and $a = \frac{dv}{dt} = \frac{d^2s}{dt^2}$. Thus we have a second order differential equation: $m \frac{d^2s}{dt^2} = -mg-c\frac{ds}{dt}$. By simply manipulation, we get $m \frac{d^2s}{dt^2} + c\frac{ds}{dt} = mg$. I originally started thinking of finding the integrating factor, however, this seems more complicated and won't help produce the equation that I need.  Would anyone be able to help? Much thanks in advanced! Why Objective-C,PHP do not support method overloading? Using recordtypes of the same name across multiple SObject types I have one recordtype named 'India' in both Account and Contact Objects.My requirement is whenever i create a new account record of type 'India' a new contact record of type 'India' should be created automatically.  i tried with the following code:  trigger AccRecTypeTrigger on Account (before insert) {     List&lt;RecordType&gt; recType = [select id,name from RecordType where sobjectType = 'Account' and isActive = true];    Map&lt;String,Id&gt; m = new Map&lt;String,Id&gt;();    for(RecordType r : recType){      m.put(r.name,r.id);    }     List&lt;Contact&gt; conlst = new List&lt;Contact&gt;();    for(Account a : trigger.new){        a.recordTypeId = m.get('India');        Contact con = new Contact();        con.accountId = a.id;        con.recordTypeId = a.recordTypeId;        con.recordType.name = a.recordType.name;         conlst.add(con);       }    insert conlst; }   But i am getting following error when i try to save     Apex trigger AccRecTypeTrigger caused an unexpected exception, contact   your administrator: AccRecTypeTrigger: execution of BeforeInsert   caused by: System.NullPointerException: Attempt to de-reference a null   object: Trigger.AccRecTypeTrigger: line 14, column 1   Please help me how to achieve this...... Why doesn't this C++0x code call the move constructor? Proving that $\gcd(2^m - 1, 2^n - 1) = 2^{\gcd(m,n )} - 1$ Somewhere on Stack Exchange I saw the equation     $$\gcd(2^m-1,2^n-1)=2^{\gcd(m,n)}-1.$$   I had never seen this before, so I started trying to prove it. Without success...  Can anyone explain me (so actually prove) why this equation is true?  And can we say the same when replacing the '$2$' by any integer number '$a$'? Placement of images in row using subfigure I want to put four figures in a single row. The code I am trying to use is taken from .  This puts three figures in a row. When I add a fourth one, I get three images in row and the last one appears in the second row. But I want all of them in one row. Here is my code.  \documentclass[12pt,twoside]{report}% Use this line for the print version of the thesis   \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document}  \begin{figure}         \centering         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{gull}                 \caption{A gull}                 \label{fig:gull}         \end{subfigure}%           \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{gull}                 \caption{A gull2}                 \label{fig:gull2}         \end{subfigure}%          ~ %add desired spacing between images, e. g. ~, \quad, \qquad etc.           %(or a blank line to force the subfigure onto a new line)         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{tiger}                 \caption{A tiger}                 \label{fig:tiger}         \end{subfigure}         ~ %add desired spacing between images, e. g. ~, \quad, \qquad etc.           %(or a blank line to force the subfigure onto a new line)         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{mouse}                 \caption{A mouse}                 \label{fig:mouse}         \end{subfigure}         \caption{Pictures of animals}\label{fig:animals} \end{figure} \end{document}   As I have mentioned above, it works for three figures.  But I can not use it for four figures. What should I change?   What does  width=\textwidth mean?   I changed    \begin{subfigure}[b]{0.3\textwidth}   to  \begin{subfigure}[b]{0.2\textwidth}   but it didn't help.  Then, I changed     \includegraphics[width=\textwidth]{mouse}   to  \includegraphics[width=0.5\textwidth]{mouse}   Still no solution. Moderncv package - cventry date width I am writing my CV using moderncv package, everythig is nice but I have a problem with \cventry command. I have something like this:   (it means 2010 - now)  I would want to have this in one line, rather than in two lines. I tried looking into the moderncv style files but with no success. What can I do to achieve the effect I want? Prediction in Cox regression I am doing a multivariate Cox regression, I have my significant independent variables and beta values. The model fits to my data very well.   Now, I would like to use my model and predict the survival of a new observation. I am unclear how to do this with a Cox model. In a linear or logistic regression, it would be easy, just put the values of new observation in the regression and multiply them with betas and so I have the prediction of my outcome.  How can I determine my baseline hazard? I need it in addition to computing the prediction.  How is this done in a Cox model? User group (company) page that shows summary of all user accounts belonging to the same company/user group Full URL not working with php include Do indexes work with "IN" clause If I have a query like:  Select EmployeeId  From Employee  Where EmployeeTypeId IN (1,2,3)   and I have an index on the EmployeeTypeId field, does SQL server still use that index? Recently I booked a flight using my points. I am  planning to fly to Seattle WA from Indianapolis Indiana.  Stop over is Chicago.  On the day of my flight I am supposed to be in Chicago.   So I was wondering if I can directly board my Seattle flight from Chicago thereby not showing up in Indianapolis.  Is this okay?  Will United airlines cancel my entire journey if I do not show up in Indianapolis? File sync error (AUTH_FAILED) I've been digging through some parts of the Linux kernel, and found calls like this:  if (unlikely(fd &lt; 0)) {     /* Do something */ }   or  if (likely(!err)) {     /* Do something */ }   I've found the definition of them:  #define likely(x)       __builtin_expect((x),1) #define unlikely(x)     __builtin_expect((x),0)   I know that they are for optimization, but how do they work? And how much performance/size decrease can be expected from using them? And is it worth the hassle (and losing the portability probably) at least in bottleneck code (in userspace, of course). Password protect files/folders using cli I have some important documents that I need to protect from anyone else having access to my machine.   The problem being the other persons have access to my machine via root account so changing the file permissions is not a option for me. I have seen apps like cryptkeeper but I was wondering can I password protect my files/folder by command line mode in ubuntu.