tcas
Joined 15 years ago
Joined 15 years ago
By default a docker container configured with awslogs runs in "blocking" mode. As logs get logged, docker will buffer them and push to CloudWatch logs frequently. In case the log stream is faster than what the buffer can absorb, stdout/stderr get blocked and then the container will freeze on the logging write call. If putlogevents is failing, buffers are probably filling up and freezing containers. I assume most of AWS uses it's own logging system, which could cause these large, intermittent failures.
If you're okay dropping logs, add something like this to the container logging definition:
"max-buffer-size": "25m"
"mode": "non-blocking"If the USB device still doesn't respond then it means that they have some buggy firmware that requires a hard reboot to work.
Example for a USB reset in linux: https://marc.info/?l=linux-usb&m=121459435621262&w=2
The only example in that class (sub $750k) I can think off the top of my head with a better engine is DA40 NG, which uses a modified Mercedes diesel engine.
I ran a whitespace sensitive diff and noticed the only difference between the two files was the author name in the header.
The professor sent a sternly worded letter to the class about not cheating, and nothing else came from it AFAIK.
I find the print quality of PDFs perfect on Zebra's as long as you keep the following in mind:
- Make sure the DPI of the document is correct (e.g. 203dpi)
- Make sure the document does not need to be scaled (and scaling to fit is disabled) (for 4x6 that means 812 x 1218 pixels max)
- Make sure the document is black and white (no grayscale)
ZPL is a beast.Some PDFs embed a single image in them, in which case you can do the following;
pdfimages -all <input_file>.pdf <out_prefix>
convert <generated_png>.png -filter point -density 203 -units PixelsPerInch out.png
And then print the generated png.https://www.caranddriver.com/news/a38807463/tesla-model-3-cl...
In your example with 15% left, you'll use ~9% battery while in traffic for 4 hours keeping the heat and car on, leaving 6% to get to the next charger. At ~300wh/mile you'll arrive with ~4-5% left. There's also buffer under 0%, but it's not guaranteed.
4-5% is not a comfortable number to be at, but I think it's acceptable in a worst case scenario like this. That being said I would definitely turn down the heat, and drive slower for the next few miles (and check for alternate chargers) to minimize power usage.
I found the USB-C connector wears down over time and causes display and power issues. I've reflowed the connector itself, and am looking at doing a complete connector swap soon. The mechanicals of an active USB-C cable puts stress on the joints and causes them to crack and create unreliable connections. I wish there was a way to lock the connector in and use something else as strain relief.
When I looked into it, it seemed as though they restructured their plans multiple times during the ~4 years I was paying them, and I got placed into the most expensive option which was originally the same price as what I started with. I was also locked into a year long commitment at some point, and they wouldn't budge on letting me downgrade to the lower plan mid year (I didn't have a use for any of the advanced features).
The support chat told me the same thing about the changes being announced via marketing emails, and said they could not credit, cancel or downgrade my plan. The support agent also couldn't care less when I said it would cause me to cancel my plan at renewal.
The whole experience left me with a really bad impression, I went from a huge advocate to telling everyone to avoid them.
Cryptsetup
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 465.5 MiB/s 654.0 MiB/s
OpenSSL Speed for ChaCha
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
chacha20-poly1305 85242.48k 144024.55k 265936.64k 309418.33k 317977.94k 317658.45k
vs Pi4 Cryptsetup
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 18.9 MiB/s 31.9 MiB/s
OpenSSL Speed for ChaCha
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
chacha20-poly1305 24833.53k 55555.22k 90574.34k 99022.17k 102659.41k 100592.30kFor forgiveness it's: ($100,000 / 52 weeks) * 8 weeks = $15,384. The rules and new clarifications seem to change every week, I'd consult a CPA before assuming anything.
https://aws.amazon.com/blogs/containers/preventing-log-loss-...