Categories
Cryptocurrency Ethereum Mastering Development

Duplicate data in “returnValues” field of event emitted in solidity script

I am using quoram distribution through Azure blockchain service.. we are emitting few events according to our logic and these events are being used to get specific data from the transaction.. though we see that the data in each event is duplicated. Event declaration in solidity – event Added(address sender, string Key,string ControlNumber, string Content, […]

Categories
Mastering Development

Error when I hit node js api through angular 8: Error: ER_BAD_NULL_ERROR: Column ‘name’ cannot be nul

I am very new to node and angular, I am trying to insert data into mysql I have node api when I test this api through postman record get inserted successfully, but when I call node api through angular I am getting error. angular CLI: 7.3.1 Node: 10.15.0 nodejs const express = require(‘express’); const bodyParser […]

Categories
CMS Development Drupal

How do you simulate Google login with the Drupal 8 social auth module in ones local server?

I am trying to test Google login in my local machine to capture the event and activate the user automatically. I had run code to simulate the triggering of the event but that might not be authentic behavior and constructing the actual code to simulate the event in the trigger. use Drupal\social_auth\Event\SocialAuthEvents; use Drupal\social_auth\Event\UserFieldsEvent; use […]

Categories
Development

How do I accept passed props and display them in a dropdown and store them in data

I need some guidance and your tips would be greatly appreciated.. I have passed props like this so I accepted them in my EditCriminal.vue props : [‘crimes’,’criminal’,’admins’,’countries’], So what I want is to put those crimes or type of crimes there in the dropdown array and while selecting the specific crime_id and display the criminal […]

Categories
Development

Solr DIH showing data import successfull but no docs retrieved via query

I am using the SolrEntityProcessor in my DIH config to reindex data from one collection to another. Here is my DIH config for the same <dataConfig> <document> <entity name=”sep” processor=”SolrEntityProcessor” url=”http://127.0.0.1:8983/solr/techPro2 ” query=”*:*”/> </document> </dataConfig> I have another collection techproducts(destination collection) which has the same configset(sample_techproducts_configs) as techPro2 (my source collection here). So after performing […]

Categories
Development

How to read json folder data using Python

I want to get the data of json folders using Python 3.7.2! This is my json file: {“device”: [{“name”: “device1”, “status”: 0}, {“name”: “device2”, “status”: 1}, {“name”: “device2”, “status”: 1}]} For my project I need following variables: variable of all devices gathered in a list: devices = [“device1”, “device1”, “device1”] status of devices saved in […]

Categories
Development User Help

Is this likely to be a W-Fi deauthentication attack?

Lately our Wi-Fi connection on a certain band has been terrible. No matter what settings I choose and also after a reset and with all kinds of old and new Wi-Fi router firmware we keep getting very, very slow connection. Tried WireShark too, getting lots of TCP Retransmission and TCP Spurious Retransmission packets. But when […]

Categories
Development

Very basic React + NodeJS fetch: Why is my response not what I want?

Here’s what I did on the react end: componentDidMount(){ console.log(‘zzzzzzzzzzz’) fetch(‘http://localhost:5000/z’, {mode: ‘no-cors’}).then(res=>{console.log(res) this.setState(res)}) } Here’s what I did with NodeJS + Express: app.get(‘/z’, (req, res)=>{ console.log(‘requested’) res.send({msg: “YEEEEHAW”}) }) The request does go through, but it’s not what I wanted (the ‘YEEEEHAW’ is nowhere to be found in browser console): Response {type: “opaque”, url: […]

Categories
Development

Consuming a REST API angular 8

I have a rest API at: https://back-end-gubee.herokuapp.com/service It returns me three objects, these have attributes and two object lists internally. [{“id”:20,”name”:”Gubee Fretes”,”description”:”Ferramenta para gestão e calculo de fretes”,”active”:false,”value”:0.0,”targets”:[{“id”:1,”name”:”Ecommerce”,”description”:null},{“id”:2,”name”:”ERP”,”description”:null},{“id”:3,”name”:”Loja fisica”,”description”:null}],”technologies”:[{“id”:10,”name”:”MongoDB”,”description”:null,”developer”:null,”version”:null},{“id”:9,”name”:”NodeJS”,”description”:null,”developer”:null,”version”:null}]},{“id”:21,”name”:”Gubee Integrador”,”description”:”Ferramenta de integração para marketplaces”,”active”:false,”value”:0.0,”targets”:[{“id”:4,”name”:”Lojista que não desejam possuir ecommerce”,”description”:null},{“id”:1,”name”:”Ecommerce”,”description”:null},{“id”:2,”name”:”ERP”,”description”:null}],”technologies”:[{“id”:10,”name”:”MongoDB”,”description”:null,”developer”:null,”version”:null},{“id”:14,”name”:”Event Stream”,”description”:null,”developer”:null,”version”:null},{“id”:11,”name”:”Java 10″,”description”:null,”developer”:null,”version”:null},{“id”:12,”name”:”Kotlin”,”description”:null,”developer”:null,”version”:null},{“id”:13,”name”:”Kafka”,”description”:null,”developer”:null,”version”:null},{“id”:15,”name”:”Redis”,”description”:null,”developer”:null,”version”:null}]},{“id”:22,”name”:”Gubee AntiFraude”,”description”:”Ferramenta especialistas em detecção e prevenção à fraude”,”active”:false,”value”:0.0,”targets”:[{“id”:1,”name”:”Ecommerce”,”description”:null},{“id”:6,”name”:”Venda direta”,”description”:null},{“id”:7,”name”:”Mobile First”,”description”:null},{“id”:5,”name”:”Telecom”,”description”:null},{“id”:8,”name”:”Digital Onboarding”,”description”:null}],”technologies”:[{“id”:17,”name”:”Hadoop”,”description”:null,”developer”:null,”version”:null},{“id”:16,”name”:”Big Data Analytics”,”description”:null,”developer”:null,”version”:null},{“id”:19,”name”:”Cassandra”,”description”:null,”developer”:null,”version”:null},{“id”:18,”name”:”Pig”,”description”:null,”developer”:null,”version”:null},{“id”:13,”name”:”Kafka”,”description”:null,”developer”:null,”version”:null}]}] I […]

Categories
Development

JSONP method is not Working with Angular 8 on localhost

I am trying to use JSONP with Angular 8 to be able to avoid the Cross Domain Policy. Normally in the new version of Angular you can with HttpClientJsonpModule in your .module make it work. Here is the code below then the error: //The service.ts import { Injectable } from ‘@angular/core’; import {HttpClient} from ‘@angular/common/http’; […]