devrobf

1

votes
1

answer
887

views

Why does API Gateway not have permissions for my Authorizer lambda when using Swagger?

I have an API defined using Swagger, which defines the following API Key authorizer: securityDefinitions: api_key: type: apiKey name: x-api-key in: header x-amazon-apigateway-authtype: 'oauth2' x-amazon-apigateway-authorizer: type: token authorizerUri: arn:aws:apigateway:eu-west-1:lambda:path/2015-0...
devrobf
1

votes
1

answer
78

views

Cannot get disableClassMetadata to take effect

I am writing a basic game based on the 'Hello' PlayN demo which uses the TriplePlay UI. When running the HTML version I get the runtime exception 'Your PlayN application must not be compiled with -XdisableClassMetadata. It breaks TriplePlay stylesheets.'. Having seen this post on the Google Group...
devrobf
1

votes
1

answer
420

views

How can I force Karma to restart the browser in between each test?

I have a set of Jasmine unit tests which I run on my build server. I have managed to get Karma working nicely so that my tests automatically run on Chrome, Edge and Firefox every time I push to my development branch. However, I am concerned that my tests are not independent because much of the brow...
devrobf
1

votes
1

answer
179

views

Why do some browsers render this unicode character using the wrong font, apparently at random?

I am developing a website which requires use of the unicode symbol 'S with caron' (0x161). The website uses the free Palanquin font, which does support this character - however, some machines incorrectly render this particular character in a different font. For example: Note that in the incorrect...
devrobf
1

votes
1

answer
925

views

boost::xtime nsec only gives a 1 second resolution on Ubuntu

When I use Boost's boost::xtime_get function to get the current time, the nsec field gives a resolution of only a second. I'm not expecting nanosecond resolution, but why is it this poor? All the Googling I've done seems to imply that I should get a few milliseconds resolution on Linux. I can't s...
devrobf