Archive for February, 2016

Gentoo gcc recipe for target ‘s-attrtab’ failed

When updating to gcc-4.9.3 the build was failing with error

Makefile:2129: recipe for target 's-attrtab' failed

The internet was sparse on details, but as it turns out my virtual machine was running out of memory causing the build to crash.
By increasing the amount of memory from 512Mb to 1.5Gb, I was finally able to upgrade gcc.


AndroidAnnotations and Material Design App Bar/ActionBar

I was trying to get the material design App Bar/ActionBar/Toolbar working with an activity that uses AndroidAnnotations. I was following the tutorial here but I was finding that while the bar was rendering, it didn’t have any content.

It turns out the culprit was AndroidAnnotations which was overwriting the content view after the toolbar was bound to it in the onCreate method.

The solution is to add a method with an @AfterViews annotation that will be run after the views are bound. For example:

Toolbar toolbar;
protected void bindActionBar() {

1 Comment

PhpStorm 10 HHVM debugging

To enable command-line debugging for HHVM in PHPstorm 10 do the following:

  1. Add HHVM as an interpreter to PhpStorm (Settings->Language&Frameworks->PHP->Interpreter)
  2. Note the Xdebug port that is set in PhpStorm (Settings->Language&Frameworks->PHP->Debug)
  3. Make PhpStorm start listening for xdebug connections
  4. Place the following in your /etc/hhvm/php.ini file, ensuring the remote_port matches that set in PhpStorm:

No Comments