Error compiling for flash on Openfl: Class not found : flash.system.LoaderContextHelp

Some days ago I tried to compile a sample project using HaxeFlixel library and I got the error message:

Continue reading “Error compiling for flash on Openfl: Class not found : flash.system.LoaderContextHelp”

How to put a background image in a panel in wxWidgets

These days I was working in a program that will use wxWidgets framework.

Basically, the application will have many panels and all of them must have a background image.

In my mind I had 2 options:

  • for each panel I could put a background image in wxPanel plus all the controls that each panel required
  • create a base class derived from wxPanel that would contain the background image and make it the base class for each panel in the application.

The second approach is better because that way I’d eliminate code duplication. That was the path I followed.

How would that work? When a class that inherited from BaseScreen were created, always the paint event of BaseScreen would be called prior to the paint event from the child class.

This way the image would be draw in on top of it the controls from child class would be draw. It would give the effect of having a background image. Continue reading “How to put a background image in a panel in wxWidgets”

How to solve “error: unknown filesystem. grub rescue>_”

Sometime ago I installed Ububtu on my brand new machine.

For some reasons I decided to remove Linux and install Windows 7. Everything worked fine until recently when my machine refused to boot showing the error message

This problem was caused because I didn’t removed Grub from MBR (Master Boot Record) and for some unknown reason it got lost.

The solution for this is quite simple.
Continue reading “How to solve “error: unknown filesystem. grub rescue>_””

How to solve Cannot install Guest Addtions: VERR_PDM_MEDIA_LOCKED

Today I’ve updated my VirtualBox to version 4.1.16-78094. When I tried to install the new version of Guest Additions, I got the error message

as you can see in the picture 1 bellow Continue reading “How to solve Cannot install Guest Addtions: VERR_PDM_MEDIA_LOCKED”