Categories
CMS Drupal Mastering Development

What a part tried to get imported submission to web form without getting anything in

what i have tried is that i have a couple of databases in exel that i am trying to adopt to webforrm. until now I have manually entered this, but with entries in a place between 5-6000 it will take time. has tried to take down examples. has introduced the ten test to take this […]

Categories
Database Development

how to optimize big result to sum in MySQL 5.7

Now I have a user consume history record table, sometimes the data is very big(>1million) per day.Now I have to calculate the table to get report data,this is my sql: SELECT SUM(consume_num) AS consumeNum, SUM(transin_num) AS transinNum , CASE WHEN COUNT(DISTINCT transin_user_num) – 1 < 0 THEN 0 ELSE COUNT(DISTINCT transin_user_num) – 1 END AS […]

Categories
Cryptocurrency Ethereum Mastering Development

How to set a specific deposit in an dual deposit escrow contract?

I am building a program on solidity that receives a deposit from player1 and the program should multiply the amount and set it as a deposit condition to player2. When the two-players place their deposit, player1 starts the game by sending an amount to the contract which will be multiplied by the contract and send […]

Categories
Development JSON

How to deserialize Spring’s ResponseEntity with Jackson ObjectMapper (probably with using @JsonCreator and Jackson mixins)

The class ResponseEntity doesn’t have a default constructor. Then in order to deserialize it with objectMapper I decided to use the approach given by araqnid in that answer. Shortly – it needs to use mixin feature of Jackson coupled with @JsonCreator. In my case (with ResponseEntity) it doesn’t work out yet due to different reasons. […]

Categories
Development

How to download a simple tree view into pdf as i do not have any one2many field to use foreach tag to loop through

Hi I have created a simple tree view using SQL query but now I also wanted to download it which I am unable to because I don’t have any one2many field so I don’t know how to loop else of that Right now it’s giving me a report of one line each page but I […]

Categories
Development

Grouped chart in python (matplotlib.pyplot)

I have the following table as a result of a SQL query: SYS|LOCKED|UNLOCKED| A | 2 | 3 | B | 1 | 2 | C | 4 | 1 | This is the result of the SQL query that is put into pandas dataframe and I would like to turn it into the grouped […]