Categories
Cryptocurrency Ethereum Mastering Development

How to estimate gasLimit of ERC20 contracts in web3.php project?

I am using web3.php project in my Ethereum based project. A part of this project is sending ERC20 tokens, and in this regard, I need to estimate gas limit of transaction. For this purpose, I found the example below in the official documents of this project as below: $contract->at($contractAddress)->estimateGas($functionName, $params, $callback); and I changed it […]

Categories
Mastering Development System & Network

Kubernetes with Workload Identity access Google PubSub APIs

I have created a Spring Boot service for receiving messages from Sub. This service is deployed on Google Kubernetes cluster which has been configured with Workload identity. I followed all the steps listed in https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity to create a Kubernetes Service Account and GCP Service Account and link them. gcloud beta container clusters create ${CLUSTER_NAME} –release-channel […]

Categories
Mastering Development System & Network

NFS server with out of memory

I have multiple machines sharing home directory via NFS share used by 6-10 users. All machines are used to run computational experiments including the one with NFS server. Although it is very rare but possible that some experiment may cause out of memory(OOM) problem. Though the user process may get killed at some point of […]

Categories
Mastering Development Software

Structuring my Monolith into Microservices

i am looking how to split my Monolith into several Micoroservices. My Main Goals are better maintaining, stable production and faster development. I would like to use Spring Boot (as i already use). Let me try what my software will do and what i have until now: The Program is a data central for car […]

Categories
Mastering Development Software

Which would be a proper way to design a Python programme for both terminal and GUI?

I have doubts on how to face the design when making a Python programme for both running on the terminal and as a tkinter application. I’m considering that in the terminal the input would use parameters in the usual syntax (i.e: -o, –option) and in the tkinter GUI all options would be entered through the […]

Categories
Mastering Development Software

C# refactoring with inheritance

I have two classes which contains almost same method. How can I refactor this with inheriting one class by other class. class A{ public void run(){ // task 1 // task 2 // task 3 } } class B{ public void run(){ // task 1 <- same as in class A // task 2 <- […]

Categories
Apple User Help

Is it possible to create a custom alert tone for WhatsApp on iOS?

I know it’s possible to use a custom ringtone as an alert tone for certain notifications (like text messages and reminders). However, this doesn’t work with WhatsApp, since the app only allows you to choose from alert tones and not ringtones. So, is there any way to save an audio file as an alert tone […]

Categories
Game Creation Mastering Development

Godot: is it possible to Call custom methods in animation?

My Problem I just found out that one can set an animation Player to call methods from a given node. This was great for me as it allows me to better coordinate methods with animation frames. My problem is that the interface only displays default node methods. Why is it like that and what needs […]

Categories
Database Development

SQL Server – Why am I getting TCP connections without sessions?

I enabled SSL with Forced Encryption enabled, using a self-signed certificate. Then I’ve set up automated monitoring to detect not secured connections (seems redundant, I know, but bear with me here), using the following T-SQL query: SELECT CONCAT(‘Not secured connection(s) detected of ‘ , ISNULL(QUOTENAME(COALESCE(ses.original_login_name, ses.nt_user_name, ses.login_name)), ‘an unknown login’) , ‘ from ‘, ISNULL(QUOTENAME(client_net_address), […]

Categories
Database Development

Highlight Rows with Duplicate Column in SSRS Report Builder

I have used the below expression to highlight duplicate column =IIf(Fields!BankAccount.Value=Previous(Fields!BankAccount.Value),"Firebrick","LightSteelBlue") However I am not sure how to highlight both the duplicate records (rows)