Disable Chrome pinch zoom for use in kiosk

We’ve had a similar problem, it manifests as the browser zooming but javascript receiving no touch event (or sometimes just a single point before zooming starts). We’ve found these possible (but possibly not long-term) solutions: 1. Disable the pinch / swipe features when using kiosk mode If these command-line settings remain in Chrome, you can … Read more

What is integer overflow in R and how can it happen?

You can answer many of your questions by reading the help page ?integer. It says: R uses 32-bit integers for integer vectors, so the range of representable integers is restricted to about +/-2*10^9. Expanding to larger integers is under consideration by R Core but it’s not going to happen in the near future. If you … Read more

Categories R

Reference Error: moment is not defined (Using moment.js)

I installed the moment.js library and was about to play around with it a little bit, when i got this error. I’ve tried many different things, but nothing has worked. Any ideas? I have a folder that i’ve installed moment.js into (npm install moment) and i’m running my program (node isDate.js). ReferenceError: moment is not … Read more

check if a file is open in Python

I assume that you’re writing to the file, then close it (so the user can open it in Excel), and then, before re-opening it for append/write operations, you want to check that the file isn’t still open in Excel? This is how you could do that: