Deleting ummerged Git branches that were actually merged after rebasing Git is able to pick up the merged branches and we can delete them but in some cases, let's say you have a bunch of branches which were rebased before a merge and its tracking branch at remote wasn't updated. Now this local branch was deleted as well.  Any way to figure out which branches on remote are the ones that are safe to delete?
How can I know if a branch has been already merged into master? I have a git repository with multiple branches.   How can I know which branches are already merged into the master branch?
Everytime I sudo apt-get update it always not complete and will say in the end  E: Read error - read (5: Input/output error) E: The package lists or status file could not be parsed or opened.   Same goes, when I try to install something and do sudo apt-get install &lt;some app&gt;  What should I do ? I admit, that my drive has bad sectors, could that be the reason? Is there anything else I can do? How do I open a terminal? Possible Duplicate:             I just got ubuntu running on my computer and now I am ready to write a program...but I can't figure out how to open a command terminal. I guess I don't know where to find which version I am running either. Any help would be appreciated. Thank you. Today I upgraded to the Creators Update by running setup from the ISO mounted locally. When I got back to my computer I opened Task Manager and saw my memory usage was a lot higher than it was previously (it's now almost 6GB memory usage at idle after logging in instead of 2-3GB with the previous Windows build) - the processes tab revealed that there were upwards of 60 different instances of svchost.exe running. This 6GB figure is just for process memory - not including memory used for caching or "standby".  I ran tasklist /svc to get a listing of which services were in which processes and it lists almost every svchost.exe instance as only having one running service contained within (with the exception of a handful of instances that are running a few system services).  Here's  my output:  Image Name                     PID Services ========================= ======== ============================================ System Idle Process              0 N/A System                           4 N/A smss.exe                       440 N/A csrss.exe                      612 N/A wininit.exe                    700 N/A csrss.exe                      708 N/A services.exe                   776 N/A lsass.exe                      784 KeyIso, Netlogon, SamSs, VaultSvc svchost.exe                    888 PlugPlay svchost.exe                    908 BrokerInfrastructure, DcomLaunch, Power,                                    SystemEventsBroker fontdrvhost.exe                936 N/A svchost.exe                   1000 RpcEptMapper, RpcSs svchost.exe                    104 LSM winlogon.exe                   544 N/A fontdrvhost.exe                420 N/A svchost.exe                   1072 DeviceInstall dwm.exe                       1136 N/A svchost.exe                   1164 BFE, CoreMessagingRegistrar, MpsSvc svchost.exe                   1424 lmhosts svchost.exe                   1432 W32Time svchost.exe                   1440 nsi svchost.exe                   1448 wudfsvc svchost.exe                   1528 hidserv svchost.exe                   1628 Dhcp svchost.exe                   1716 Dnscache svchost.exe                   1748 EventLog WUDFHost.exe                  1792 N/A svchost.exe                   1908 TimeBrokerSvc svchost.exe                   1952 NlaSvc NVDisplay.Container.exe       1968 NVDisplay.ContainerLocalSystem svchost.exe                   1324 Themes svchost.exe                   1596 ProfSvc svchost.exe                   1944 EventSystem svchost.exe                   1052 netprofm svchost.exe                   2116 StateRepository svchost.exe                   2256 SENS svchost.exe                   2296 AudioEndpointBuilder svchost.exe                   2304 FontCache (etc)...   I know you can configure individual services to run in their own instance of svc with the sc config &lt;serviceName&gt; type= own command, but to my knowledge I've never run this command.  I took a quick look at Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and it looks like the Type key values for most of these services is missing the flag bit at 0x10 which controls if a service runs in its own svchost.exe instance or not. I wonder what could have effected this change.  Has anyone else observed this behaviour before or after installing Windows 10 Creators Update? If it is a default configuration change, will it have any implications on system performance or stability?  I suspect it will increase system stability because if a service crashes it won't bring down other services - but this comes at a massive cost of RAM - but I've never experienced a service crashing on me - or at least ever noticed it (instead the worst problem I've had is with wuauserv consuming 100% CPU for hours on end - and that's not a problem process isolation will solve).  (I just noticed: they finally added an address bar to the Registry Editor!) An idiom for deriving pleasure from another's suffering I believe it is what the Germans call "". English itself has no such equivalent word. (Although it has been adopted as a .)  Does an idiom exist that describes it? Best way to build a Plugin system with Java How would you implement a Plugin-system for your Java application?  Is it possible to have an easy to use (for the developer) system which achieves the following:   Users put their plugins into a subdirectory of the app The Plugin can provide a configuration screen If you use a framework, is the license compatible with commercial developement? How to model this odd-shaped distribution (almost a reverse-J) My dependent variable shown below doesn't fit any stock distribution that I know of.  Linear regression produces somewhat non-normal, right-skewed residuals that relate to predicted Y in an odd way (2nd plot).  Any suggestions for transformations or other ways to obtain most valid results and best predictive accuracy?  If possible I'd like to avoid clumsy categorizing into, say, 5 values (e.g., 0, lo%, med%, hi%, 1). Why did my electric range wiring burn out at the terminal block? Turned on our 2 year old stove (Whirlpool Gold) and heard fizzing noises, then smelled electrical burning. Went downstairs and shut off the breaker (40 amp). That was the only way to get it to stop "fizzing". (6 gauge wire by the way). The range is 240 volt electric 3 wire hooked up to a 40 amp breaker (6 gauge wire). When I took the back panel off the stove I saw exactly where the problem occurred. The black wire was burned, the terminal block was melted, and the inside of the back metal panel that I removed was pitch black in the spot that was facing that area before removal. I removed the stove top and inspected all wires and other electronic components. No problems at all.   So my questions are:    Why did the black wire only, at the terminator block, start burning?  Why did the breaker not pop off?  Is it safe to just replace the terminator block or is this an indicator of a much larger problem?  Is 6 gauge the correct gauge for a 40 amp breaker? What is migration and how does it work? Simple excel math wrong Firstly I do not want to round my numbers, I am using base 10 figures so excel should have no bother doing simple add and subtract.  A|  665.110000000000000000000000000000 B|  4.990000000000000000000000000000 C|  =a1+b1 D|  670.790000000000000000000000000000 E|  1,335.890000000000000000000000000000 F|  =e1-(c1+d1)   I should get -5 however F1  returns   -4.999999999999770000000000000000   It is a financial document therefore I want to avoid rounding, more to the point. Why should I need to? I've put cell formatting to Currency with 2 decimal placed and I will get the correct display value but for all calculations I will still get -4.9999...7 which leads to further errors with conditional formatting etc. My neighbor has asked me help with his laptop, an HP with lost power-on password. I tried inserting an Ubuntu cd to format the partition, but well... it doesn't even get there. Any ideas? What is the advantage of using sudo apt-get autoremove over a cleaner app? I have to maintain a large number of classic ASP pages, many of which have tabular data with no sort capabilities at all. Whatever order the original developer used in the database query is what you're stuck with.  I want to to tack on some basic sorting to a bunch of these pages, and I'm doing it all client side with javascript. I already have the basic script done to sort a given table on a given column in a given direction, and it works well as long as the table is limited by certain conventions we follow here.    What I want to do for the UI is just indicate sort direction with the caret character ( ^ ) and ... what?  Is there a special character that is the direct opposite of a caret?  The letter v won't quite cut it.  Alternatively, is there another character pairing I can use? What is the maximum or minimum tire width I can fit on my bicycle We often get questions on bicycles.stackexchange about fitting wider or narrower tires to bicycles. We have a large number of these with answers suiting the specific bike or style of bicycle in question, but I have been unable to find one that provides a generic answer covering off all things that need to be considered. For most bicycles, the answer is the same regardless of the specific style and sizes of tires in question.   This is intended as a canonical question that we can point closed questions to. Ubuntu desktop suddenly points to home folder Proof that total derivative is the only function that can be added to Lagrangian without changing the EOM So I was reading this:  and while the answers for the first question are good, nobody gave much attention to the second one. In fact, people only said that it can be proved without giving any proof or any.  So, if I have a Lagrangian and ADD an arbitrary function of $\dot{q}$, $q$ and $t$ in such a way that the equations of motion are the same, does this extra function MUST be a total time derivative?   EDIT Ok, I changed my question a little bit:  Question: If I have a function that obeys the Euler-Lagrange equation off-shell, this implies that my function is a time derivative? (This was used in Qmechanic's answer of this other question: , equation 14.)  Also, why people only talk about things that change the Lagrangian only by a total derivative? If this is not always the case that keeps the equation of motion the same, so why is it so important? And why in the two questions I posted about the same statement on Landau&amp;Lifshitz's mechanics book only consider this kind of change in the Lagrangian? I'm starting a very long quest to learn about math, so that I can program games. I'm mostly a corporate developer, and it's somewhat boring and non exciting. When I began my career, I chose it because I wanted to create games.  I'm told that Linear Algebra is the best place to start. Where should I go? Difference between 2>&-, 2>/dev/null, |&, &>/dev/null and >/dev/null 2>&1 Serving wp-includes (front-end) javascript from a different domain? The WordPress Codex points to an extremely simple way to change the URL of the wp-content directory, which is, adding this in wp-config.php:  define( 'WP_CONTENT_URL', 'http://example.com/wp-content');   And that does the job of serving most of the JavaScript and CSS files on my website from the different domain, except two.  http://mywebsite.com/wp-includes/js/comment-reply.js http://mywebsite.com/wp-includes/js/quicktags.js   The reason is very clear — these JavaScript files are served from within the wp-includes directory, which is not affected by the aforementioned rule.  So, is there a similar or simple method to have them served from example.com i.e. the domain of my choice? or is unregistering and enqueuing the scripts from a custom URL (done in functions.php) the only way? Does the sequence $\{\sin^n(n)\}$ converge?   Does the series $\sum\limits_{n=1}^\infty \sin^n(n)$ converge? Proof of uniform limit of Continuous Functions The uniform limit of Continuous Functions is continuous.   Proof Let $\varepsilon &gt; 0$. There exists $N$ in natural numbers such that $n&gt;N$ implies  $|f_n(x)-f(x)| &lt; \frac{\varepsilon}{3}$ for all $x$ in $S$. In particular $|f_{N+1}(x)-f(x)| &lt; \frac{\varepsilon}{3}$ for all $x$ in $S$. Since $f_{N+1}$ is continuous at $x_0$ there is a $\delta&gt;0$ such that, $x$ in $S$ and $|x-x_0| &lt; \delta$ imply $|f_{N+1}(x)-f_{N+1}(x_0)|&lt; \frac{\varepsilon}{3}$ Now we conclude $x$ in $S$ and $|x-x_0| &lt; \delta$ imply $|f(x)-f(x_0)|&lt; 3 \cdot \frac{\varepsilon}{3} = \varepsilon$.  Can someone explain what is happening here? I don't follow it all.