Serial and parallel nesting and truncation of asynchronous tasks

Introduction Interviewer: “Please implement the following concurrency strategy.” This is a request strategy to get the highest price. The interface for requesting prices is divided into concurrent group (blue) and serial group (green). Concurrency means that all requests are issued at the same time, and serial group means that the next request is only requested […]

jspdf-html2canvas generates multi-page pdf anti-truncation processing (including code)

I recently encountered a need to download the content to generate a pdf file. I used jspdf + html2canvas, but the content will always be truncated during the conversion process, which is very uncomfortable… Technology stack: vue2 + jspdf + html2canvas One, solution idea: Judging to add a blank div element to the truncated place […]

[Verilog programming] Data saturation and truncation of fixed-point numbers

Article directory 1. Saturation and truncation of unsigned numbers 1. Data truncation Circuit configuration Verilog code 2. Data Saturation Circuit configuration Verilog code 2. Saturation and truncation of signed numbers 1. Data truncation Circuit configuration Verilog code 2. Data Saturation Circuit configuration verilog code 3. References In digital design, we often need to quantify and […]

com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column ‘base64’

Question For ultra-long data storage, this problem occurs The author converts the picture to base64 storage, and the idea console reports an error when storing com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column ‘base64’ Detailed error ### Error querying database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column ‘base64’ at row 1 ### The […]

jsPDF + html2canvas A4 page truncation perfect solution (including code + case)

Business requirements The webpage html generates a pdf with A4 size pagination. After searching the whole Internet, I found that there is no systematic collation and analysis, even the analysis of jsPDF Not many articles. I have encountered it a few times and used it a lot. After writing the code, I will organize and […]

[Solved] com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column ‘base64’

Questions mysql stores data, the console reports an error, the data is not stored in the mysql database com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column ‘base64’ at row 1 Detailed questions ### Error querying database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column ‘base64’ at row 1 ### The error may exist in […]

[Solved] Error in mysql update: Data truncation: Truncated incorrect DOUBLE value: ‘null’

Project Scenario: mysql update update a field value Problem description Running the statement gives the following error: Data truncation: Truncated incorrect DOUBLE value: ‘null’ The update statement is as follows: update table_name set state = true where s_id = 123456789; Cause Analysis: The s_id field type problem in the where condition, s_id is of varchar […]

[Solved] Puyuan EOS Platform 7.6 DM7.1 Studio organization reports error: java.sql.SQLException: String truncation

【Problem Description】 EOS Platform 7.6 DM7.1 Studio organization reports an error: [default][2017-08-22 12:30:04,827][ERROR][com.primeton.common.connection.impl.synchronization.TraceLoggerStatementSynchronization:49] Sql[select ‘$queryEntityId$’ as column1_56_0_, this_ .role_id as role2_56_0_, this_.party_type as party3_56_0_, this_.empid as empid56_0_, this_.empcode as empcode56_0_, this_.empname as empname56_0_, this_.sortno as sortno56_0_, this_.tenant_id as tenant8_56_0_ from (select b.role_id, b.party_type , a.empid, a.empcode, a.empname, a.sortno,a.tenant_id from org_employee a left join cap_partyauth b […]