Symfony 3 JMS payment Paypal corebundle Error

Uncategorized
Question: I come to you because i really don't know what is wrong using this bundle for paypal checkout. http://jmspaymentcorebundle.readthedocs.io/en/stable/setup.html This is the link about the bundle and documentation. My problem is on the end of tutoriel, i have an error that i don't know how to solve. CRITICAL - Uncaught PHP Exception JMSPaymentCoreBundlePluginExceptionActionRequiredException: "User must authorize the transaction." at C:wamp64wwwWolkvendorjmspayment-paypal-bundleJMSPaymentPaypalBundlePluginExpressCheckoutPlugin.php line 303 And this is my controller code:
Read More

Get value by key from array javascript

Uncategorized
Question: I'm experiencing an issue with getting the value from a javascript array. var color = new Array(); for (var i = 0; i < datafeatures.length - 1; i++) { color[datafeatures[i].properties.userid] = datafeatures[i].properties.linecolor; } snapshot.forEach(function (childSnapshot) { var colour = childSnapshot.wp_user; console.log(color[colour]); console.log(JSON.stringify(color)); console.log(color); console.log(colour); } Console.log result: color[colour]: undefined JSON.stringify(color): [] color: [] 26: "#9d36ee" 45: "#b1c743" 56: "#f9c53c" 61: "#d770ce" 63: "#267fa1" 64: "#85002f" 68: "#78eca8" 92: "#a4a2e7" length: 93 __proto__: Array(0) colour: 61 Expected output from color[colour]: "#d770ce" Real output from color[colour]: undefined. Color has something in it, Colour is a number (key), but it seems impossible to get a value from Color.. Answer: You might want to try changing the line var color = new Array(); to var color = {}; What you may be looking…
Read More

MissingFieldException: Templated field missing in constructor

Uncategorized
Question: I'm trying to create a 2D array class that allows for very large data sets by breaking up the data and storing it non-contiguously. However, I get a MissingFieldException inside the constructor that I fundamentally don't understand. I'm using c# with Unity. This is the offending call:ChunkArray lastData = new ChunkArray(textureWidth, textureHeight); The exception is "MissingFieldException: Field '.ChunkArray`1.data' not found." The class is as follows:using System.Collections; using System.Collections.Generic; public class ChunkArray { private const int DefaultSideDivision = 16; T[,][,] data; int xChunks; int yChunks; int subWidth; int subHeight; public int w; public int h; public ChunkArray(int width, int height, int sideDivision = DefaultSideDivision) { w = width; h = height; subWidth = width / sideDivision; subHeight = height / sideDivision; int widthRemainder = width % sideDivision; int heightRemainder =…
Read More

How connect mqtt with AWS broker in broswer javascript [on hold]

Uncategorized
Question: Currently we have this certificates for our IOT project private.pem.key public.pem.key rootca.pem certificate.pen.crt I have tried using this link, but can't link the above certificates. https://eclipse.org/paho/clients/js/ Any libraries recommendation would be helpful as i am not expect in this field. Thank you Answer: You can not do certificate based client authentication from the Paho Javascript client within the browser. To use MQTT over Websockets with AWS you have to use the signature based Authentication as described in the AWS IoT documentation here: http://docs.aws.amazon.com/iot/latest/developerguide/protocols.html#mqtt-ws Read more
Read More

How to run chrome v8 js engine Garbage collector manually

Uncategorized
Question: i want to know as there any way to manually run chrome garbage collector manually , am running big background task which use a lot of memory and in middle i get out of memory error , normally when script finish its execution then chrome run its garbage collector to release memory , what i tried ? i tried to sleep my script in middle for some interval with hope that chrome may run its garbage collector and then my script will continue its execution ahead but it not worked my sleep function this.sleep = function(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; my background script works like this.backworks = async function(){ this.job1(); await TOOLS.sleep(10000); // sleep for 10 sec this.job2(); await TOOLS.sleep(10000); // sleep for 10 sec…
Read More