What does `*&` in a function declaration mean?

The & symbol in a C++ variable declaration means it’s a reference. It happens to be a reference to a pointer, which explains the semantics you’re seeing; the called function can change the pointer in the calling context, since it has a reference to it. So, to reiterate, the “operative symbol” here is not *&, that combination … Read more

Pycharm exit code 0

You realize it is not part of the output right? It’s just additional information provided by the IDE’s console. The real program is just outputting hellow as expected. Saying that the Process finished with exit code 0 means that everything worked ok. If an exception occurs in your program or otherwise an exit is generated with non-zero argument, the IDE is … Read more

How do you create a remote Git branch?

Simple Git 2.0+ solution: As of Git 2.0, the behavior has become simpler: You can configure git with push.default = current to make life easier: I added this so now I can just push a new branch upstream with -u will track remote branch of the same name. Now with this configuration, you will auto-guess the remote reference to … Read more

How to change default Python version?

updated for 2021] (Regardless if you are on Mac, Linux, or Windows:) If you are confused about how to start the latest version of python, on most platforms it is the case that python3 leaves your python2 installation intact (due to the above compatibility reasons); thus you can start python3 with the python3 command. Historically… The naming convention is that generally, most … Read more

How can a add a row to a data frame in R?

Like @Khashaa and @Richard Scriven point out in comments, you have to set consistent column names for all the data frames you want to append. Hence, you need to explicitly declare the columns names for the second data frame, de, then use rbind(). You only set column names for the first data frame, df: