HackerTrans
TopNewTrendsCommentsPastAskShowJobs

tcas

no profile record

comments

tcas
·il y a 2 ans·discuss
Happy it helped. If you have a very high throughput app (or something that logs gigantic payloads), the "logging pauses" may slow down your app in non-obvious ways. Diagnosing it the very first time took forever (I think I straced the process in the docker container and saw it was hanging on `write(1)`)

https://aws.amazon.com/blogs/containers/preventing-log-loss-...
tcas
·il y a 2 ans·discuss
My guess is this is all due to CloudWatch logs putlogevents failures.

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"
tcas
·il y a 3 ans·discuss
USB has a built in protocol level reset that should achieve the same thing. The only change is 5V power is not cut. It's basically the same as doing an OS reboot from the peripheral's perspective.

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
tcas
·il y a 3 ans·discuss
Just wait until they find your personal cell phone number and try to force you into scheduling a "time that works" on the calendar.
tcas
·il y a 3 ans·discuss
For certified piston aircraft, generally yes. The engines are pretty much made by a few manufacturers based on ancient designs, and while you may get some "newer" benefits in some models, such as fuel injection (instead of carborators), or digital engine control (FADEC), they're pretty much ancient technology compared to modern engines. Most still have manual mixture control for example and very limited monitoring.

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.
tcas
·il y a 4 ans·discuss
I had the same experience when I was a TA a long time ago. Reviewing the code to a homework set I noticed that two students mixed up the naming of two variables (I think min/max were switched).

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.
tcas
·il y a 4 ans·discuss
As someone who's dealt with these protocols as well I agree.

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.
tcas
·il y a 4 ans·discuss
Car and Driver did a test using an older Model 3 with a resistive heater (the newer models use a much more efficient heat pump), and found that it used around 2.2% an hour to keep the cabin warm.

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.