Categories
Cryptocurrency Ethereum Mastering Development

how to send transaction without private key ganache?

I need access to oracle accounts (whose private keys i do not have) to test my contract. I’m trying to use ganache to fork my local node with the accounts unlocked through the ganache api, but whenever i try to make this web3 call: web3.eth.personal.unlockAccount("0xf9f62fe6905c8d955f66011f3d86862844fb8084", ”, 1000000000000) or this one: web3.eth.sendTransaction({from: "0xf9f62fe6905c8d955f66011f3d86862844fb8084", to: userAdr, value: […]

Categories
Mastering Development

How to fill in blank cells in df based on string in sequential row, Pandas

I have a df, where the data looks like this: Time Value 60.8 Jul 2019 58.1 58.8 56.9 Oct 2019 51.8 54.6 56.8 Jan 2020 58.8 54.2 51.3 Apr 2020 52.2 I want to fill in the blank cells in the Time variable according to the calendar year. So: Time Value Jun 2019 60.8 Jul […]

Categories
CMS Drupal Mastering Development

How can a Urdu date printer in twig using Drupal 8

I am working on printing date in more than one language in the English language. No problem but I have a problem of course, Date in Urdu, In Drupal 7 I used PHP this way <span class="arabic-date"> <?php $arrayurdudays = array(”, ”, ”, ”, ”, ”, ”, ”); print [![format_date][1]][1](time(), ‘custom’, ‘ l , d […]

Categories
Mastering Development

Can we normalize tweets with Min-Max normalization method, and how?

I’m new in Data Mining, this for my final graduation project on Sentiment Analysis I would like to implement Min-Max normalization on my code, i don’t how, though. Please help. This is a piece from my program in python and i want to implement MinMaxScaler() method. I stopped here and i can no longer advance. […]

Categories
CMS Mastering Development Wordpress

ACF Flexible in TCPDF

So, i need to display Flexible content in TCPDF, i have my Flexible content fields: if( have_rows(‘levels’) ): while ( have_rows(‘levels’) ) : the_row(); if( get_row_layout() == ‘level_one’ ): $sub = the_sub_field( ‘subtitle_’ ); $pic = the_sub_field( ‘image’); endif; endwhile; else : endif; then when i try display this all in my TCPDF function, i […]

Categories
Linux Mastering Development

My confusion about the usage of double quotes in bash

Recently, I am busy coding the bash script to feed my needs. However, during the coding time, I found the usage of double quotes is contradicted with each other at some times. For example, I try to find some files that matched the regex, such as ls "*.log". I habitually wrap the *.log with double […]

Categories
CMS Mastering Development Wordpress

CF7 select value get to function and reciept value from function

Si I try to asking different How I can get the value from following field: <label> Geburtsjahr/ année de naissance (Pflichtfeld) [select* annee include_blank "1940" "1941" "1942" "1943" "1944" "1945" "1946" "1947" "1948" "1949" "1950" "1951" "1952" "1953" "1954" "1955" "1956" "1957" "1958" "1959" "1960" "1961" "1962" "1963" "1964" "1965" "1966" "1967" "1968" "1969" "1970" […]

Categories
Mastering Development

How to detect a certain pattern in subsequent lines and appen/prepend text to it in python 3

First of all I’d like to thank everyone who’s going to give a hand. I’d need some help in writing code with python3. Briefly, I’m trying to write a script to clean up gcode files generated with Cura. The difficulty for me is to find a way to tell the program to append or prepend […]

Categories
CMS Mastering Development Wordpress

How to add class to specific navbar item when post parent category is in specific category

I have website with pages which are named the same as categories. For example I have page called Cities and also I have category called Cities. I want to add class to navbar item when user is reading post from specific category. So when I’m reading post from category Cities I want to highlight link […]

Categories
Linux Mastering Development Ubuntu

TypeError: cannot use a string pattern on a bytes-like object [closed]

I am doing HackTheBox Web Challenge & I have to write a Python Script in order to solve it. I am writing a python script to fetch the HTML code of the website & remove the unnecessary HTML tags. This is the script: import requests import hashlib import re req = requests.session() url = "http://docker.hackthebox.eu:30596/" […]