Categories
Mastering Development

Problems connecting to Neptune from Lambda

I have created a simple AWS Neptune cluster, with a writer and no read replicas. I used the option to create a new VPC for it, and two security groups were automatically created for it, too. I also have a Lambda that calls that Nepture cluster’s endpoint. I have configured the Lambda with the Neptune […]

Categories
CMS Magento Mastering Development

How to use Ajax Autocompleter in Magento 2?

I’m working on migration from Magento 1.9 to Magento 2.3 , in one of my phtml code i have this javascript Ajax.Autocompleter function, as i know this function is not available in Magento 2.3, how can i convert this function so it could work in Magento 2.3 ? initAutocomplete : function(url, destinationElement){ var ajaxAutocompleter = […]

Categories
Mastering Development

is there a better way to do this? I don’t understand why it does nothing, no errors

I want to apply the title and text from the API array to the divs in a carousel element in the HTML. Not sure what I’m doing wrong, no errors it just does nothing const outerDiv = document.querySelector(“#outer_div”); const innerDiv = document.querySelector(“#inner_div”); async function getData() { const reviewStream = await fetch( “https://tripadvisor1.p.rapidapi.com/reviews/list?limit=3&currency=USD&lang=en_US&location_id=13393584”, { method: “GET”, […]

Categories
Mastering Development

Spring Rest Paypal Payment Integration (version 1)

I have a springboot rest application in the back end, and a react js for the front end. I do not have access in the reactjs side of the project. Now, I needed to integrate paypal (version 1) payment to the application, and this is my first time to use/integrate paypal in my application. Currently, […]

Categories
Mastering Development

How do I specify which API data I want to use?

I am developing an Alexa Skill (using v2 and javascript) and I’m attempting to make an API GET call to the USDA API. At this point I’ve copy/pasted from here and I’m using the USDA API example from here (with some minor changes). as an attempt just to get the connection to work and return […]

Categories
Mastering Development

Nuxtjs Google Auth

After calling $auth.loginWith(‘google’), I am getting http://localhost:3000/ru/user-registration#state=D7xooLsNNxNGfbvcQMU5g&access_token=ya29.a0Ae4lvC2z0XERgeRUipmu7c205WWCCSVgRZ-s_mYWg6ZoMgCGzVZ-U69arfpn-ybm5kthqtvqQrD7lGYmNDqiLtkW1aIecP6Wp-bwINMok3ztNcW5KwmlohLmtnbk4IZVkciKfb8T_JUtf89xpJcjpt2dSx_09FPGSKc&token_type=Bearer&expires_in=3599&scope=email%20profile%20openid%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile&authuser=0&prompt=consent as a callback. What should I do next in order to get the info of the registered gmail. Any help or ideas are welcome auth part in my nuxt.config.js auth: { strategies: { local: { endpoints: { login: { url: “token/”, method: “post”, propertyName: “access” }, user: { […]

Categories
Mastering Development

Nodejs pdfjs-dist: Unable to catch Bad end offset

I am implementing pdfjs-dist to extract text from pdf documents and I am encountering the above error for selected pdfs. When this error occurs, I would like to catch it and handle it accordingly but my implementation so far hasn’t been successful in catching this error. As a result, it has been crashing my Firebase […]

Categories
Mastering Development

AngularJS and ui-router: wrong routes behaviour after refresh

I’m developing an application with AngujarJS and ui-router and I’m having a problem loading the routes. To facilitate the explanation I will delete parts of the code. My rotes file looks like this: app.config(function($stateProvider, $urlRouterProvider, $locationProvider) { $stateProvider .state(‘dashboard’, { url: ‘/dashboard’, templateUrl : ‘pages/dashboard.html’, controller : ‘DashController’ }) .state(‘dashboard.vendas’, { url: ‘/vendas’, templateUrl : […]

Categories
Mastering Development

Why the list is disappear and filtering does not work?

I make request to server and get data(category list) which I display in view table-list.And implement some functional And I have task, what should I do with the list: Make filtering by title name when user write name category in input and press button Search Filtering by title name I can implement using query params […]

Categories
Mastering Development

How to pass data from a function in react native component

I have created a Banner Component in React Native and now im trying to add data from a function (seperate .js file) in this component. I want to fetch the data on the inital load from my Home Screen but i dont know how to pass the data from my function. I hope you can […]