‘Incomplete final line’ warning when trying to read a .csv file into R

The message indicates that the last line of the file doesn’t end with an End Of Line (EOL) character (linefeed (\n) or carriage return+linefeed (\r\n)). The original intention of this message was to warn you that the file may be incomplete; most datafiles have an EOL character as the very last character in the file. … Read more

Categories r Tags

Git lfs – “this exceeds GitHub’s file size limit of 100.00 MB”

Simply adding git-lfs configuration to an existing repository will not retroactively convert your large files to LFS support. Those large files will remain in your history and GitHub will refuse your pushes. You need to rewrite your history to introduce git-lfs to your existing commits. I recommend the BFG repo cleaner tool, which added LFS support recently. … Read more

variable-sized object may not be initialized c++

You can declare an array only with constant size, which can be deduced at compile time. zo1,zo2 and zoA are variables, and the values can be known only at runtime. To elaborate, when you allocate memory on the stack, the size must be known at compile time. Since the arrays are local to the method, they will be placed on the stack. You … Read more

Need to install urllib2 for Python 3.5.1

WARNING: Security researches have found several poisoned packages on PyPI, including a package named urllib, which will ‘phone home’ when installed. If you used pip install urllib some time after June 2017, remove that package as soon as possible. You can’t, and you don’t need to. urllib2 is the name of the library included in Python 2. You can use the urllib.request library included with … Read more

Access Control Origin Header error using Axios

If your backend support CORS, you probably need to add to your request this header: [Update] Access-Control-Allow-Origin is a response header – so in order to enable CORS – you need to add this header to the response from your server. But for the most cases better solution would be configuring the reverse proxy, so that your server … Read more

I get this error: “glibc detected”

Even if you’re not allocating memory directly, it happens under the hood in vector code and you most likely corrupted some portion of memory by writing where you are not supposed to. The most likely reasons I can think of are: Writing to an element that is out of bounds Using a pointer/reference to an element that … Read more