Categories
Mastering Development

Issue with Installing PyAutoGUI for Python

I was attempting to install PyAutoGUI==0.9.50 on my Mac OS Catalina 10.15 with Python 3.5 and virtualenv. I received an error and it stopped. I tried installing using the following code in my terminal: pip install PyAutoGUI==0.9.50 The error says: Using cached pyobjc-framework-Network-5.3.tar.gz (27 kB) ERROR: Command errored out with exit status 1: command: /Users/aleksejstarodubcev/Documents/djcode/venv/bin/python […]

Categories
Bitcoin Cryptocurrency Mastering Development

Using a bitcoin library to create digital signatures in TypeScript/Javascript

I have been trying to sign my transactions with a digital signature for the past few days but seems that libraries in bitcoin, as far as to my knowledge do not provide a simple way to sign the transactions with digital signatures. I have been trying to use bitcoinjs-lib to achieve my result. Bitcoinjs-lib came […]

Categories
Cryptocurrency Ethereum Mastering Development

Deploy pre compiled bytecode using truffle migrations deployer api

I want to deploy pre-compiled Smart Contract bytecode using Truffle migrations. Specifically, it is the Uniswap V2 Factory contract. In the Uniswap V2 documentation there is a cliffhanger, where they mention to use: const UniswapV2FactoryBytecode = require(‘@uniswap/v2-core/build/UniswapV2Factory.json’).bytecode And then deploy it using Truffle (but do not include an example). However, I cannot get the deployment […]

Categories
Cryptocurrency Ethereum Mastering Development

Cannot read property ‘name’ of undefined

const config = require(‘../truffle-config.js’); const token_parameters = require(‘../token_parameters.json’); const ExampleToken = artifacts.require(‘ExampleToken’); module.exports = function(deployer, network, accounts) { const networkId = config.networks[network.replace(/-fork$/, ”)].network_id; const deploymentAddress = accounts[0]; console.log(‘Deployment address: ‘ + accounts[0]); deployer.deploy( ExampleToken, token_parameters[networkId].name, token_parameters[networkId].symbol, token_parameters[networkId].initialAddress, web3.utils.toWei(token_parameters[networkId].totalSupply), { from: deploymentAddress, gas: 1500000 }, ); }; how do I fix below error? TypeError: Cannot read […]

Categories
Mastering Development

Retrieve video from firebase storage to video view

I am making an app in which I want the users to record video and upload in it like you tube. I am able to record the video and also upload it to the firebase storage but I am unable to load the uploaded video in the video view. Whenever I run the app I […]

Categories
Mastering Development Software

Data backup/archive strategies

We’ve developed an application that acquires large amounts of data from an external instrument, and these results get written to disk (SSD). A single "run" may write up to 200-300Mb/sec to disk, although this is typically reserved for high throughput runs of no more than 10-20 seconds. Longer runs of up to several hours will […]

Categories
Mastering Development Software

How to design a REST API that can “prompt” the client about long-running operations?

Say you were to develop a REST API that provides access to a set of complex, long-running, operations. The typical paradigm for an API like this (as I understand it) usually involves (the client) making a request to the server, asking it to perform a given long-running operation. The server will respond with a 202 […]

Categories
Mastering Development System & Network

Logging & Monitoring on multiple servers

I lead a small project with 2 groups of servers (servers in a single group are clones with the same microservices, like pods in the k8s), a balance loader, and a DB. Docker & k8s aren’t used because of small scale of the project (but there are plans for migration). Instead, our cloud provider allows […]

Categories
CMS Mastering Development Wordpress

WP_Query show the posts in sequence of tags entered in Query

Basicly I want to show the post in sequence of what the tags entered are. For instance this is my Query: $args = array( ‘post_type’ => array( ‘providers’ ), ‘post_status’ => array( ‘publish’ ), ‘tag’ => array( ‘speed’, ‘price’, ‘contract’, ‘network’ ), ); $the_query = new WP_Query( $args ); I would like to show the […]

Categories
Apple User Help

Proxy user/password setting in System Settings apparently ignored

Using macOS Catalina 10.15.2, I observe the following behavior: I open System Preferences, Network, the network I am on (only tested Ethernet thus far), Advanced, Proxies, Web Proxy (HTTP). I enable the proxy, enter the host, the port and set Proxy server requires password. I enter the username and password (verified using a Windows machine) […]