How to implement WhatsApp Flows with Twilio
Meta has a feature - "WhatsApp Flows"|: https://developers.facebook.com/docs/whatsapp/flowsI'm using Twilio for WhatsApp, and looking for an efficient way to work with this feature on Twilio.NOTE: this...
View ArticleComment by Max on Javascript: given list of functions, how to create an...
OK, maybe it's again my bad for not being clear... :) The point is to make it a generic function, which sits in an external file. So I pass an array of any functions.
View ArticleAnswer by Max for A way to make multiple transactions in NEAR in a smart...
Currently NEAR does not support such mechanism out of the box.
View ArticleAnswer by Max for The value of an instance variable on NEAR - shared among...
A smart contract persists state between invocations. In your example, my_map and other variables will be the same every time anyone calls my_method1 in your contract.This state is persistent within the...
View ArticleAnswer by Max for Verify signature in smart contract near_sdk rust
Use the environment function env::ecrecover(hash, signature, v, malleability_flag), to get the signer's public key from his signed message hash and...
View ArticleAnswer by Max for Store XML Data in Near Protocol
NEAR supports storing data as key-value pairs. If you work with XML, you have to manually serialize/deserialize your data structures.Notice the concept of smart-contracts, the data is stored as part of...
View ArticleComment by Max on On NEAR, how to delete all keys other than the FullAccess...
I'm unable to reproduce the issue. The error message (with the typo) is coming from ledger, and it looks like some connectivity issue between ledger and your machine, probably not NEAR related. There...
View ArticleComment by Max on Parse error: Failed parsing args: missing field >...
@Suisse I'm unable to reproduce the issue, first thing I suggest is to upgrade your SDK version to latest (0.6.0 at the moment) github.com/near/near-sdk-js/releases
View ArticleComment by Max on Value only being rendered once
can you attach the source code of your smart contract with the methods newNote and viewNotes?
View ArticleComment by Max on Near: Querying [object Object] failed: wasm execution...
@RAJUC can you tell which platform exactly you run this on?
View ArticleComment by Max on Receiving Error: Class Object is missing in schema:...
There is a know issue in near-api-js: docs.near.org/tools/near-api-js/… can you see the workaround mentioned solves it for you?
View ArticleTypeScript - type assertion for union of tuples - how to assert only one...
I'm trying to make type assertion for "error-first" pattern.My function returns tuples like ['error', null] or [null, 'non-error'].I want to check only for error === null and TS should assume that the...
View ArticleAnswer by Max for Is it possible to set custom CPU throttling in Chrome...
Lighthouse uses Emulation.setCPUThrottlingRate command in the Chrome DevTools Protocol: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setCPUThrottlingRate You can monitor the...
View ArticleReact+Redux - managing state for autocomplete inputs
I have a large app with some autocomplete text-inputs that retrieve search suggestions from the backend on every key stroke. I want to save recent search query results to avoid multiple backend calls...
View ArticleBigQuery SQL - a way to pass values from more than one row and more than one...
I want to create a User Defined Function, (CREATE TEMPORARY FUNCTION) in BigQuery Standard SQL which will accept values aggregated from a bunch of rows. My schema and table is similar to this: | c1 |...
View ArticleMap AWS Lambda 429 errors to API Gateway 2XX response
I understand that by design, API Gateway maps 429 errors from Lambda to 500 responses. Is there a way to map 429 to something else like 202? I tried to create an integration response mapping from this...
View ArticleAnswer by Max for React.JS - Manage content of contenteditable div as React...
Facebook just released Draft.js - https://facebook.github.io/draft-js/
View ArticleDjango: split forms.py in several files
I have a very long forms.py and I'd like to split it to smaller parts with as few as possible changes in the code. Any ideas?
View ArticleJavascript prototypal inheritance - descendants override each other
I'm creating two objects (Inherits), both inherit from Base. The second object's property assignment overrides the value in the first object. Any thoughts? How to make a proper inheritance so that...
View ArticleAngularJS - single controller for ng-repeat-start and ng-repeat-end
I have this HTML: <table> <tr ng-repeat-start="client in clients" ng-controller="ClientCtrl"> <td ng-click="toggleExpand()"> Expand </td> <!-- some html --> </tr>...
View Article