Categories
Mastering Development

How is this for loop executing its iterator out of order?

I’m using a for loop within an async function with an await involved in the loop. From what I read, for loops are supposed to play nice with await, but it seems like there’s some unusual behavior that I don’t understand. Consider the func described, abridged down to the fundamentals of the scenario: let counter […]

Categories
Database Development

Slow fetch time for MySQL query with large result set

I’m aware I should expect slower fetch times for large result sets generally, but I don’t understand why fetching should be this slow. The workload fetches a large number of rows (1-10M) from a large table (100M+ rows). mysql> describe testdb.test_table; +——-+———+——+—–+———+——-+ | Field | Type | Null | Key | Default | Extra | […]

Categories
Database Development

Slow fetch time for MySQL query with large result set

I’m aware I should expect slower fetch times for large result sets generally, but I don’t understand why fetching should be this slow. The workload fetches a large number of rows (1-10M) from a large table (100M+ rows). mysql> describe testdb.test_table; +——-+———+——+—–+———+——-+ | Field | Type | Null | Key | Default | Extra | […]

Categories
User Help

Tabbin through textboxes in Chrome with the ‘Tab’ special chars

When encoding special chars to HEX for barcodes, I can encode the CRLF with the 0x0D and 0x0A. So giving the string USER01 the result is 555345523031. When adding 0D0A and converting the this 5553455230310D0A to a barcode, a scanner can read this and print USER01 and a new line to a texteditor or word. […]

Categories
Database Development

Slow fetch time for MySQL query with large result set

I’m aware I should expect slower fetch times for large result sets generally, but I don’t understand why fetching should be this slow. The workload fetches a large number of rows (1-10M) from a large table (100M+ rows). mysql> describe testdb.test_table; +——-+———+——+—–+———+——-+ | Field | Type | Null | Key | Default | Extra | […]

Categories
Mastering Development System & Network

Running docker containers only local behind csf firewall

I want to access docker containers only locally behind the csf firewall on a remote Ubuntu server. I changed the DOCKER settings options in /etc/csf/csf.conf to 1 to allow docker to change iptable rules. If I am starting my container with -p 8000:8000, the port 8000 is exposed to the whole world (I can access […]

Categories
User Help Web Pro

Why is Chrome losing some background images in a PDF when retrieved remotely but not locally?

I posted a 9.1 MB, 58 page, PDF to our website. The staff member who created the PDF reported to me that the image on the next to last page was not showing up, displaying a white background instead. I was able to reproduce this in Chrome Mac but not in Chrome Windows. On a […]

Categories
Linux Mastering Development

What evades bash redirection?

Ubuntu 20, Bash 5. There is probably something silly I am overlooking! There is this C++ binary foo, which uses std::cout, printf()and puts() to do its logging. When I run it as ./foo from the terminal, I get some output (and a segmentation fault). When I redirect everything ./foo > log, I get only a […]

Categories
CMS Drupal Mastering Development

Adding section components with populated fields to a Layout Builder enabled node

I’m working on migrating content from fieldable panels panes in D7 to Layout Builder in D8. So far, I’ve managed to extract the content I need from my D7 database, but I’ve been unable to add that content to layout builder section components. Backing up a bit, I’m currently trying to just add some inline […]

Categories
Ask Engineering

Insane power dissipation on EL34 tubes in push-pull power stage

Here’s my circuit: (now without voltages) It uses two EL34s biased to -30V (fixed bias). Here’s the loadline (made with this calculator): When no signal is applied voltage on EL34 anodes is 360V, as expected, and current is around 40mA, as expected. However when I apply 50V p-p signal (V8 and V9 are generating phase […]