News for hackers. Stuff that matters.

tcas

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-...

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"
Re:Software control USB power on some USB hubs on Wednesday September 13, 2023 @05:39PM (#37502070)
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

Just wait until they find your personal cell phone number and try to force you into scheduling a "time that works" on the calendar.
Re:The $20 an hour Cessna 172 experiment on Thursday February 09, 2023 @03:09PM (#34730589)
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.

Re:MIT graduate students vote to unionize on Saturday April 09, 2022 @11:28PM (#30974252)
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.

Re:Writing a printer driver in JavaScript on Tuesday February 01, 2022 @02:00PM (#30167386)
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.
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.

Re:The state of external retina displays on Monday December 27, 2021 @05:51PM (#29707884)
I have 2x LG Ultrafine 5Ks as well.

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.

Re:Hertz orders 100k Teslas on Monday October 25, 2021 @11:29PM (#28996093)
Unfortunately I've that you can't rely on the chargers being available at most hotels. In my experience they're frequently either ICE-ed (the charging spot is taken by a non-EV car), or there's already another car charging.
Re:Expensify S-1 on Monday October 18, 2021 @05:45PM (#28912208)
I got hit by the same year long gradual bill increase. I didn't notice at first, as the number seemed right, but then at 6 months or so I looked into why the price seemed so much higher than what I remember and got really upset.

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.

Re:The Wiretrustee SATA Pi board is a true SATA NAS on Thursday June 10, 2021 @05:09PM (#27465892)
Not really, I mostly cared about AES which was around 25x faster. Here's what a NanoPi M4 does:

  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.30k
Re:The Wiretrustee SATA Pi board is a true SATA NAS on Thursday June 10, 2021 @12:33PM (#27462591)
I'm still surprised that they did not include a crypto accelerator on the Pi4. It seems like a very low cost peripheral, with a high performance impact for many use cases (drive encryption, network encryption, etc...). I ran some benchmarks between a Pi4 and a Nanopi M4 and it wasn't even close.
Re:Raspberry Pi 4 PCIe bridge “chip” on Wednesday July 01, 2020 @10:13AM (#23701513)
It's 1 lane, but a 16x connector to allow plugging in any device. PCIe devices can be downgraded into a lower number of lanes. Many motherboard 16x connectors aren't even a full 16x.
Re:Show HN: SBA PPP Loan Forgiveness Calculator on Tuesday May 05, 2020 @07:24PM (#23086272)
From my reading of the interim rules, it's based on your 2019 Schedule C Line 31 (Total Profit and Loss), capped at 100k.

For 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.

BoA seems to be only letting people with some sort of loan product with them apply.

> “We have to focus on the borrowing clients to make sure we can take care of them,” he said.

This sounds like Bank of America is trying to help their clients that are at a default risk to themselves first, which is a bailout for themselves rather than small businesses at large.

Re:WireGuard is now in Linus' tree on Tuesday January 28, 2020 @10:20PM (#22176993)
Do you set up nginx or haproxy as a reverse proxy to the wireguard network, or something else? Been wondering if there's an easy way to expose an internal service like that. TCP seems easy, but UDP seems much more problematic.
Re:First-class air travel is in decline on Friday March 08, 2019 @10:48AM (#19338532)
There's a few hard/soft products that are grouped as premium economy.

On domestic flights there's "Comfort" seats, which give you more legroom (and free snacks and drinks on US domestic flights). On international flights "Comfort" seats still exist, but on some flights there's true premium economy, which does have wider seats (e.g. the A350 on Delta's fleet is 2-4-2 seating in premium economy vs 3-3-3 in coach).

You get better meal service (my experience on Delta is it's plated and brought out in a similar fashion to domestic first class) and domestic parts of the journey will sometimes book into first class.

Comfort pricing is usually $50-150 more per leg vs coach. Premium economy is usually somewhere in between coach and business, leaning a bit more towards the coach side.

Re:WeWork’s CEO Makes Millions as Landlord to WeWork on Wednesday January 16, 2019 @01:25PM (#18923436)
At least in my NYC WeWork the sound isolation is so bad that it might as well be an open office. I can clearly hear all the phone conversations my WeWork neighbors make. I assume they can hear mine as well.
Re:OpenSCAD: Software for creating solid 3D CAD objects on Wednesday January 02, 2019 @01:22PM (#18808556)
In regards to number 2. You can have variables and parameters in Fusion360 -- I use it all the time for adding a tolerance variable and stuff like wall thickness, length, width etc...

Are configurations significantly different?

Re:Why Are Printed Circuit Boards Usually Green? (2017) on Saturday December 29, 2018 @02:01PM (#18785133)
Advanced Circuits (4pcb) still offers a "BareBones" service that will give you a 2 layer board without soldermask or silkscreen in 1 day.

I haven't used that service since maybe 2007, OshPark Super Swift and Chinese vendors have made it obsolete.

As a FBA 3rd party seller (my product shows up as Sold by <my company name> fulfilled by Amazon. I'm the manufacturer of my product and it's the only thing I sell on Amazon.) returns are a nightmare since Amazon controls them. Amazon never questions the customer beyond a dropdown box for the return and penalizes the seller of the product.

On my Shopify store I have a tiny return percentage and an almost 0% defect rate. On Amazon people buy my product, decide they don't want it, and mark it as defective to not have to pay a return fee. Either the units I sent to Amazon have a 50x higher defect rate than the stock I ship out myself, or people are cheating the system.

When Amazon decides your defect rate is too high they remove your listing.

My experience (both pledging and running my own campaigns) has been Kickstarter is mostly an early adopter marketing tool. They could easily fund this themselves and start selling it on Amazon.

They don't need another $50k to get this product to market, especially considering to get to this point (prototypes, market research, marketing) they have easily spent more than that. I bet they are spending $15k+ in video production and marketing just for this campaign. Campaigns frequently choose low targets in order to appear like they are wildly successful as well.

They managed to get onto HN with this campaign -- I wouldn't have heard of it otherwise.

Re:Nintendo Switch is not USB-C compliant on Thursday March 29, 2018 @10:36AM (#16707381)
Out of curiosity which standards? The only one I can think of is providing a slightly higher voltage (but still within USB-C spec) to account for resistive losses in the cable. That's why it says 61 watts instead of 60.
Re:Skype Vanishes from App Stores in China, Including Apple’s on Tuesday November 21, 2017 @10:53AM (#15748688)
Nope. You can login with a different region's iTunes account (e.g. with a US address) however and download it without a VPN.

You need a billing address/CC/PayPal in that region though, so you can't just simply register a new account and access it without basic validation.

Re:Intel CPU History on Sunday October 08, 2017 @11:48AM (#15428628)
The 80386DX never had a FPU integrated -- it required a second 387 coprocessor chip. You might be thinking of the 80486DX [1] also known as "RapidCAD" that included a dummy 387 FPU to place in that socket.

[1] https://en.wikipedia.org/wiki/RapidCAD

If you were roaming then all your data is being tunneled back to the US to Verizon's network / a US IP.

It's very possible that Verizon is limiting your bandwidth so that they don't have to pay the Turkish providers as much for the network usage.

In addition, you are probably getting QoSed by the provider itself.

Same with Delta. Whenever I check in they pull more information than what's on the ticket. I would be amazed if they don't do simple validation to see that the PNR/name/etc... match their systems.

When I have a physical ticket, and change my seat on the app, they usually re-print my boarding pass with the new seat number on it.

This might work for some non-airline run partner lounges without flight data access, but usually those have "coupons" given by the check in agent for access. The video shows someone entering a Star Alliance lounge, using self serve scanners. They probably aren't network connected like a normal check in agent stand

Re:3D metal printing is about to go mainstream on Monday July 31, 2017 @08:07PM (#14896927)
I thought the gears are done via a simpler sintering process: https://www.youtube.com/watch?v=-K6_wbBnXmc

Is that still considered MIM?

Re:3D metal printing is about to go mainstream on Monday July 31, 2017 @07:47PM (#14896825)
Correct on the accuracy, but you can design parts with features like undercuts and cavities on 3D printing that are either not possible, or much more expensive, to CNC.

Not every metal part requires the 0.001" tolerance you can get with CNC as well.

I look at it as another technology that can be selected when the parameters make sense for it. I'm more familiar with plastic technologies, for them I switch between FDM, SLS, SLA, Polyjet and Injection Molding depending on:

- Forecasted quantity

- Time to market needed

- Price constraints

- Accuracy and surface finish required

- Design requirements

Each technology has it's own advantages and disadvantages.

Older »