Updating matplotlib in virtualenv with pip

I am trying to update my matplotlib in virtualenv and now it seems everything crashed 🙁what I did till now is basically, I had previously matplotlib 1.3 now if I activate py virtual environment and check the matplotlib version it shows 2.1 but I cannot import Axes3D from matplotlib. I working on linux platform and using Python 2.7. Further problem, I saw, If I … Read more

What is “origin” in Git?

origin is an alias on your system for a particular remote repository. It’s not actually a property of that repository. By doing you’re saying to push to the origin repository. There’s no requirement to name the remote repository origin: in fact the same repository could have a different alias for another developer. Remotes are simply an alias that store the URL of repositories. You … Read more

Rotating and spacing axis labels in ggplot2

Change the last line to By default, the axes are aligned at the center of the text, even when rotated. When you rotate +/- 90 degrees, you usually want it to be aligned at the edge instead: The image above is from this blog post.

Categories R

How to install and use “make” in Windows?

make is a GNU command so the only way you can get it on Windows is installing a Windows version like the one provided by GNUWin32. Anyway, there are several options for getting that: The most simple choice is using Chocolatey. First you need to install this package manager. Once installed you simlpy need to install make (you may need … Read more

jQuery equivalent of JavaScript’s addEventListener method

Not all browsers support event capturing (for example, Internet Explorer versions less than 9 don’t) but all do support event bubbling, which is why it is the phase used to bind handlers to events in all cross-browser abstractions, jQuery’s included. The nearest to what you are looking for in jQuery is using bind() (superseded by on() in jQuery 1.7+) … Read more

Class name does not name a type in C++

The preprocessor inserts the contents of the files A.h and B.h exactly where the include statement occurs (this is really just copy/paste). When the compiler then parses A.cpp, it finds the declaration of class A before it knows about class B. This causes the error you see. There are two ways to solve this: Include B.h in A.h. It is generally a good idea to include header files … Read more