NodeJs : TypeError: require(…) is not a function

I think this means that module.exports in your ./app/routes module is not assigned to be a function so therefore require(‘./app/routes’) does not resolve to a function so therefore, you cannot call it as a function like this require(‘./app/routes’)(app, passport). Show us ./app/routes if you want us to comment further on that. It should look something like this; You are exporting a function that can … Read more

What is Vim recording and how can it be disabled?

You start recording by q<letter> and you can end it by typing q again. Recording is a really useful feature of Vim. It records everything you type. You can then replay it simply by typing @<letter>. Record search, movement, replacement… One of the best feature of Vim IMHO.

What is the meaning of “%d:%02d” in `printf`?

Even though I’m not 100% sure what “%d:%02d” means Here you go: %d means an integer : is a : %02d means an integer, left padded with zeros up to 2 digits. More info at https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html#syntax

Print a List in OCaml

You can do this with a simple recursion : The head of the list is printed, then you do a recursive call on the tail of the list.

Printing string variable in Java

You’re getting the toString() value returned by the Scanner object itself which is not what you want and not how you use a Scanner object. What you want instead is the data obtained by the Scanner object. For example, Please read the tutorial on how to use it as it will explain all. EditPlease look here: Scanner tutorial Also have … Read more