Categories
Cryptocurrency Ethereum Mastering Development

Deploying Smart Contract to Rinkeby

I’m getting the following error when I try to deploy my smart contract to Rinkeby using Truffle: Error: Unknown arguments format passed to new HDWalletProvider. Please check your configuration and try again Note: I haven’t had any problems deploying this same contract locally using Truffle, only to Rinkeby. Here’s my code: require(‘dotenv’).config(); const HDWalletProvider = […]

Categories
Cryptocurrency Ethereum Mastering Development

The network id specified in the truffle config (4447) does not match the one returned by the network (4777)

Please, the error messsage is in this imgur link, how’s that even possible? They are the same network, but I still cannot test my smart contract via Truffle. https://i.stack.imgur.com/vykIa.jpg Code of the truffle-config.js file: const path = require("path"); module.exports = {contracts_build_directory: path.join(_dirname, "client/src/contracts"), networks: { develop: { port: 7545, host: "127.0.0.1", network_id: 4777 } }, […]

Categories
Mastering Development

Django error when using mysql-connector-python

I want to set the mysql database using mysql-connector-python for setting up a web site made with Django using a database backend but I get this error: django.core.exceptions.ImproperlyConfigured: ‘mysql.connector.django’ isn’t an available database backend. Try using ‘django.db.backends.XXX’, where XXX is one of: ‘mysql’, ‘oracle’, ‘postgresql’, ‘sqlite3’ My credentials (name, user, password, host, port) works fine, […]

Categories
Bitcoin Cryptocurrency Mastering Development

Unable to decode raw bitcoin transaction data using bitcoind-rpc

I have been following these tutorials in order to stream detailed transaction information that pass through my bitcoin node. This is done through the zeromq interface https://bitcoindev.network/accessing-bitcoins-zeromq-interface/ https://degreesofzero.com/article/streaming-transactions-from-bitcoind-via-zeromq.html I am able to get the raw data but I am having difficulty decoding the information be as detailed as in the first link. I have used […]

Categories
Cryptocurrency Ethereum Mastering Development

Transaction underpriced at 5000000 gas but overpriced at 10000000

I’ve been developing a smart contract for a while on the Ropsten network using the Truffle framework, quite successfully. My truffle-config.js looks like this: const path = require("path"); const HDWalletProvider = require(‘@truffle/hdwallet-provider’); module.exports = { contracts_build_directory: path.join(__dirname, "client/src/contracts"), networks: { develop: { port: 8545, network_id: "*", host: "127.0.0.1" }, ropsten: { provider: new HDWalletProvider(mnemonic, ropsten), […]

Categories
Database Development

Postgresql Input And Output [migrated]

import psycopg2 try: connection = psycopg2.connect(user = "postgres", password = "formal", host = "127.0.0.1", port = "5432", database = "postgres") cursor = connection.cursor() # Print PostgreSQL Connection properties print ( connection.get_dsn_parameters(),"\n") x = input() y = input() works = x gaming = y print (‘Enter the value:’) cursor.execute ("INSERT INTO Gamingandwork (Works, gaming) VALUES ( […]

Categories
Mastering Development

How to update the value from pusher server to front end (vue) through laravel echo?

I am new to laravel and vue. I want to display the data from the server(pusher) in the front end through Vue..I am fetching the data from api resources . The updated value should be changed every 500ms Without Refresh .I have installed pusher-js and composer require beyondcode/laravel-websockets How could I do that? This is […]

Categories
Mastering Development

Ghost Blogs – Author Invite Email Failed

I am getting this error with every config possible, I am using Apache server and proxy to access the blogs. My blog is at example_site.in/new/blogs Here is my ghost blogs config { “url”: “https://example_site.in/new/blogs”, “server”: { “port”: 2368, “host”: “127.0.0.1” }, “database”: { “client”: “mysql”, “connection”: { “host”: “localhost”, “user”: “admin”, “password”: “<DB Pass>”, “database”: […]

Categories
Mastering Development

Database Engine for PyODBC

So django currenty only provide 4 backend database engine which is : ‘django.db.backends.postgresql’ ‘django.db.backends.mysql’ ‘django.db.backends.sqlite3’ ‘django.db.backends.oracle’ If I use MySQL, all I have to do is just fill the Engine with ‘django.db.backends.mysql’. But now, because my main Database is DB2, I’m having some issues to connect it with pyodbc. A help would be appreciate. Thanks! […]

Categories
Mastering Development

Django and MongoDB on Centos 7

I’m trying to connect Django and MongoDB on a remote machine running Centos 7. I’ve made the following changes to the settings.py DATABASES = { ‘default’: { ‘ENGINE’: ‘djongo’, ‘NAME’: ‘database_name’, ‘HOST’: ‘127.0.0.1’, ‘PORT’: 27017, ‘USER’: ‘mongodb_user_name’, ‘PASSWORD’: ‘mongo_db_password’, } } Version numbers of packages used: Django 2.2.12 djongo 1.3.2 MongoDB 4.2.5 However, when I […]