Issue I am using Strong loop in AWS Lambda and i want to trigger it somehow. The only available option right now is APi Gateway. Is there a way to create one resource and pass all its requests to single
Continue readingTag: lambda
Is there any short-form for overriding methods in Java with method references JAVA?
Issue I keep having situations where this would be really handy component.addWindowListener() { new WindowListener() { // quick overriding to make syntax less verbose windowClosing(e) -> Foo::doFoo; windowActivated(e) -> Foo::doFoo; } } currently this would mostly look like this: component.addWindowListener()
Continue readingMVC Is it possible to template Lambda Expressions with Moustache or Handlebars?
Issue I have a template builder that creates section and question sets from a template and then saves to a DB. I am having problems explicitly linking the view to the model as the section and question numbers are dynamic
Continue readingWill lambda run out of scope if returned
Issue I have a struct which takes a function or callable object as input: struct House { std::function<int()> colorSelector; } Now I assign in this way: House getHouse() { House h; int color = 10; h.colorSelector = [&]() { return
Continue readingWindows types won't let my callback access local variables, any workaround?
Issue I’m trying to use the EnumWindows function, which takes a WNDENUMPROC as callback with a lambda in order to access local variables. Unfrotunately if i try to use [&] the compiler will tell me types don’t match. What i’m
Continue readingScope functions apply/with/run/also/let: Where do their names come from?
Issue There are quite a few blog posts (like this) on usages of the standard library functions apply/with/run/also/let available that make it a bit easier to distingish when to actually use which of those pretty functions. For a few weeks
Continue readingAWS lambda to send SNS "succeeds" but message not actually sent
Issue I’ve written an AWS lambda function to send a text message when an S3 object is uploaded. I’ve confirmed the subscription and I can receive test messages sent from the SNS console. When I test the lambda all the
Continue readingsave/remember an Alexa user's intent confirmation response?
Issue I have a confirmation prompt for one of my Alexa skill’s intents, and now I need it to "remember" the user’s answer and not ask the user again. Essencially, we want the user to be prompted only on the
Continue readingsave/remember an Alexa user's intent confirmation response?
Issue I have a confirmation prompt for one of my Alexa skill’s intents, and now I need it to "remember" the user’s answer and not ask the user again. Essencially, we want the user to be prompted only on the
Continue readingGet an array of items from an object- typescript
Issue I have an object with the below structure: Order: [ { id: ‘001’, type: ”, status: ”, users: [ { OrderId:’001′, userId: ‘String’, user: { email: ‘string’, givenName: ‘Name’, lastName: ‘LastName’, phone: ‘string’, }, }, ], }, the order
Continue readingTypeScript – how to inherit class and override lambda method
Issue I have an inherited class, and need the parent to have a virtual method, which is overridden in the child class. This method is called from the base constructor, and needs access to instance properties, so it needs to
Continue reading