Computer Science Mojo

~ David's Notes on coding, software and computer science




Tag: Errors

R writeBin() lookout for data type

Category: R     Tag: R   Math   Errors  
By: David     On: Thu 21 July 2016     
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.

Continue reading »

How to fix R package error missing required header GL/glu.h

Category: R     Tag: R   Errors  
By: David     On: Sat 09 July 2016     
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

Continue reading »

How to fix R package error X11 not found but required

Category: R     Tag: R   Errors  
By: David     On: Sat 09 July 2016     
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

Continue reading »

How to solve Chrome flickering in VirtualBox

Category: Linux     Tag: VirtualBox   Chrome   Errors  
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
Alt Text

Continue reading »

How to check tag exists when parsing XML in Python

Category: Python     Tag: Coding   Errors   Python   XML  
By: David     On: Tue 28 July 2015     
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".
Alt Text

Continue reading »