R writeBin() lookout for data type
R uses "Numeric" as it's default type for numbers.
This can sometimes lead to confusion and errors when a specific type is needed.
In this example the writeBin() function is used to write data to binary.
How to fix R package error missing required header GL/glu.h
Encountered
configure: error: missing required header GL/glu.h
while trying to install R packages
managed to fix it with: apt-get install libglu1-mesa-dev
How to fix R package error X11 not found but required
Encountered
configure: error: X11 not found but required
while trying to install R rgl package,
managed to fix it with: apt-get install xorg-dev
How to solve Chrome flickering in VirtualBox
By:
David
On:
Thu 06 August 2015
If you enabled 3D acceleration for a VirtualBox guest, and Chrome starts flickering in that guest.
Go into Chrome's Advanced settings and disable "Use hardware acceleration when available" to solve the problem
How to check tag exists when parsing XML in Python
When using Python minidom to parse XML it is easy to encounter an "IndexError: list index out of range" if the tag does not exit.
An easy fix is to check the size of "doc.getElementsByTagName".