Better HN
topnewbestaskshowjobs
Log inSign up

coder543

6,699 karma · joined Jul 18, 2012 (14y ago) · 1,967 submissions

My email is at gmail using my username.

Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.

Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view

Submissions

comment 3y ago · link · parent

The short answer is no.

The long answer is also no, but maybe eventually yes.

This is like a raw point cloud from a 3D scanner, but arguably even worse. A raw point cloud can be transformed into a solid object representation with enough work, but it's often easier to just re-draw the object by hand, cross-referencing the scan to make measurements when needed. With enough AI magic, maybe someday it will be possible for this to automatically work reasonably well, but not for the foreseeable future.

comment 3y ago · link · parent

It’s worth mentioning that the linked article was written over a decade ago.

- Even today, 8-bit MCUs can be significantly cheaper than 32-bit MCUs. A lot of microcontrollers are used for very simple tasks that simply don’t need anything more than what an 8-bit MCU can do. Although, these days it looks like 16-bit MCUs are comparable or sometimes cheaper when looking at Mouser and DigiKey? RL78-S1 may or may not count as 16-bit. I’m not familiar with it, and seeing some conflicting info.

- Plenty of legacy designs certainly continue to get manufactured, since updating the design and software to support a more advanced/cheaper processor would both require requalification of the product and require engineering time.

- If you need the absolute lowest power consumption, a simpler, smaller, slower core can be helpful.

- Existing expertise/familiarity

comment 3y ago · link · parent

I don't see how that's relevant; there are many ways bad passwords could have been entered. We have no way to know the package wasn't tampered with during shipping. The unintended recipient could have handed it off to a friend to handle the shipping back to the original owner, and that friend could have been bored. Whoever levied the import duties could have also opened the package and been bored enough to start typing in random passwords, before repacking it and shipping it onwards.

Where did "90 times" even come from? I can't find that number documented anywhere in regards to Activation Lock, even googling specifically for that number in case there were anecdotes online.

comment 3y ago · link · parent

I think your second theory about how Activation Lock turned on is the most likely. My understanding is that if Find My wasn't active, then Activation Lock also wasn't enabled. The person who incorrectly received the laptop probably wiped it and set it up under their personal account, activating Find My + Activation Lock.

If the laptop had originally had Activation Lock enabled, the unintended recipient would not have been able to do this, and as a bonus, the location of the laptop would have been trackable.

So, I don't think they had to swap the laptop out for another Activation Locked laptop... they probably locked it themselves, whether intentionally or not.

comment 3y ago · link · parent

I agree completely!

comment 3y ago · link · parent

No, because I’m only talking about unit notation, just like hyphenated words do not mean subtraction of the words. Why would Google follow unit notation rules for something that is completely irrelevant to unit notation?

If we’re going to be maximally pedantic, you will notice that “Wh” is also wrong, and should instead be “W h” with a space. That’s what NIST says the standard is. Why are you writing it incorrectly?

It’s almost as if different groups of people have different notational conventions. I already agreed it is nonstandard, but your notation is also questionable according to the standards for unit multiplication. It just happens to be a commonly accepted convention.

Here is an example of Wolfram Alpha handling this dash unit notation: https://www.wolframalpha.com/input?i=%283W-h%29%2F%281h%29+i...

I guess someone should tell Wolfram Alpha they forgot to “subtract the units”, whatever that means.

comment 3y ago · link · parent

You can’t add or subtract units, so it’s not a relevant question. The dash gets used for many things. It is also used to hyphenate words, but people don’t ask how you can subtract two words.

> If you're going to be pedantic, at least write it properly.

I didn’t write it. I’m just explaining a commonly-used convention since you seem unfamiliar with it.

comment 3y ago · link · parent

> Not watts minus hours as W-h would suggest.

That's not what that would suggest to most people.

https://physics.nist.gov/cuu/Units/checklist.html

"A space or half-high dot is used to signify the multiplication of units."

In practice, I'm pretty sure people often use a short dash because a half-high dot is hard to type on a keyboard. I also agree the dash is unnecessary, though.

comment 3y ago · link · parent

> People still use AAA batteries

Consumers do not know the amp-hour capacity of coin cells or AAA batteries. They don't know and they don't care. Consumers put a coin cell into an AirTag and come back a year later to replace it when their iPhone tells them to. They don't care about the capacity. It's not relevant to this discussion at all. The percentage of consumers who care about the capacity of those types of batteries is certainly tiny.

> But they do care about the metric prefix? mAh far more established and slightly more convenient to use than Ah for these kinds of batteries.

It is not more convenient, since consumers do not think about <1Ah values, virtually ever.

> Yes. It would be possible to relabel all consumer batteries with Ah instead of mAh, but why would anyone want to go through all that trouble?

And I repeat: We could represent all distances in millimeters just in case, but we don't.

LA is only 4,506,163,000 millimeters from NYC. Very convenient.

comment 3y ago · link · parent

>> virtually no battery

> Behold <a single counterexample that is far less commonly encountered by consumers than phones, tablets, laptops, or external power banks>

EDIT: Ok, now you have updated your comment to also include coin cells, which is even less relevant. This just shows you don't appreciate what we're talking about here.

Consumers care about the amp-hour capacity of larger devices for various reasons. They need to figure out how many times they can recharge a phone from an external power bank. They want to understand how much less efficient their laptop is than their tablet. That's not what they do with coin cells or AAA batteries.

You have also ignored that we can express 0.8Ah. It doesn't have to be 800mAh vs 2Ah. Since things less than 1Ah are far less common for consumers, it would be logical to just show everything in Ah, and then represent those smaller things as fractional Ah, if we're afraid of multiplying and dividing by 1000.

We could represent all distances in millimeters just in case, but we don't.

comment 3y ago · link · parent

> It is the correct tern, physically.

Agreed, but not from a consumer perspective, where it is very confusing that a battery with half the capacity might have twice the energy due to differences in voltage.

From a consumer perspective, the battery capacity is the amount of energy, regardless of whether that is wrong.

comment 3y ago · link · parent

In the consumer space, virtually no battery I've seen in more than a decade is less than 1000mAh. If you looked at the Reddit post, you know we're talking about laptops, tablets, phones, external power banks, that type of consumer-facing application. But, even then, converting is fine. People understand there are 1000 meters in a kilometer. I don't think any of this is rocket science.

However, outside of the consumer space... doing conversions like that is also fine. When browsing DigiKey, components are often listed in the optimal unit prefix. When necessary (not so much with batteries), the interface allows you to filter based on ranges you provide, and it will perform the necessary conversions for all the products to give you an accurate list.

comment 3y ago · link · parent

It's also redundant because with 2000mAh... "thousand milli" can just be eliminated, leaving us with 2Ah.

Everyone constantly referencing thousands of thousandths is another one of my "favorite" things about the industry using mAh as a standard measurement of battery "capacity" (besides the fact that they almost never specify voltage or watt-hours).

comment 3y ago · link · parent

It’s not SOS only. You can also update your location in the Find My app, so your friends/family can keep track of you on a backpacking trip.

With iPhone 15, they also introduced the ability to call for roadside assistance from AAA via satellite too. (I’m not sure if this is also available on 14 now or not.)

comment 3y ago · link · parent

AIUI, one of the most notable limitations of the first version of this model was that it couldn't Fill In The Middle (FIM), it could only provide completion.[0]

This blog post doesn't mention FIM either, so I guess that's still missing? The demos I've seen of Replit Ghostwriter indicate that it is still possible to get good results without FIM, as long as you have good enough software around the model, but I think FIM could still improve things further.

The much smaller Refact-1.6B model supports FIM[1], and Refact-1.6B worked pretty well when I tested it a few weeks ago.

People (like the most upvoted comment in this thread) who are expecting any of these small models to write entire programs for them based on a simple prompt seem to misunderstand the purpose of these smaller models, which is to be a smarter alternative for code completion. Writing entire functions or programs is better suited to much larger (and slower) instruct/chat-tuned models.

[0]: https://huggingface.co/replit/replit-code-v1-3b/discussions/...

[1]: https://refact.ai/blog/2023/introducing-refact-code-llm/

comment 3y ago · link · parent

That is not what I consider "local", since that uses cloud inference by default (and last I checked, they provided no useful guidance for changing that).

I don’t consider cloud inference to count as getting it working “locally” as requested by the comment above yours.

Refact worked nicely and worked locally when I tried it a few weeks ago, but the challenge with any new model is making it be supported by the existing software: https://github.com/smallcloudai/refact/

comment 3y ago · link · parent

> Yeah, as soon as I heard about the 5 needing cooling for most tasks I went ahead and got a 8GB Pi 4.

You heard wrong, then.

"For normal usage of your Raspberry Pi, adding cooling is entirely optional. The idle performance of a Raspberry Pi 4 and a Raspberry Pi 5 is about the same, and under typical loads Raspberry Pi 5 will run cooler than a similarly loaded Raspberry Pi 4."

"even when fully throttled, a Raspberry Pi 5 is still going to run faster than a Raspberry Pi 4!"

https://www.raspberrypi.com/news/heating-and-cooling-raspber...

A Pi 5 has a higher performance ceiling than the Pi 4 when passively cooled, and an even higher one with active cooling. The Pi 5 does not need cooling for most tasks.

comment 3y ago · link · parent

No, Wikipedia is looking like it's out of date or wrong. It’s not a definitive source, especially for highly technical topics like this.

Here is another industry source which has a table that also says 5V at 5A: https://www.graniteriverlabs.com/en-us/technical-blog/usb-po...

In fact, using Wikipedia’s sources, I found the actual specs and here is another piece of supporting evidence for these other articles:

> The Fixed PDOs Maximum Current field Shall advertise at least 3A, but May advertise up to RoundUp (PDP/Voltage) to the nearest 10mA. Requires a 5A cable if over 3A is advertised.[0]

This is a footnote attached to 5V3A, indicating to me that chargers are allowed to offer more than 3A at 5V.

At a minimum, the spec seems to be ambiguously written, but I’ve only spent a few minutes skimming it. Multiple industry sources (previously linked) believe that 5V@5A is within the spec, even without using PPS.

[0]: “USB_PD_R3_1 V1.8 2023-04”

comment 3y ago · link · parent

I don’t agree. I found this straightforward statement:

https://www.anandtech.com/show/16712/usbc-power-delivery-hit...

    > USB-PD R3.1 supports three charging models:
    > - Fixed voltage
    > - Programmable power supply (PPS), and
    > - Adjustable voltage supply (AVS).
    > In the fixed voltage scheme, the Standard Power Range (SPR) mode supports 3A and 5A at 5V, 9V, 15V, and 20V.
That’s about as clear as it can be, assuming AnandTech is correct.

Also keep in mind the existence of PPS as another data point. I have an Anker charger sitting in front of me that offers 3.3V-11V at 5A. 5V at 5A falls squarely in that range, as long as you have an e-marked cable that can support 5A. (I have no idea if the Pi 5 supports negotiating PPS, but it would increase compatibility with chargers if it does.)

I agree the Pi 5 should have included a buck converter or something, but I don’t think it’s correct to say they’re not standards compliant. It’s just not a common use of the standard.

comment 3y ago · link · parent

Comments like that are hard to respond to. The topic here is KiCAD, but you haven’t addressed whether you have given KiCAD 7 (or 6) a real try. Without that information, and without understanding what you didn't like about KiCAD, it’s hard to address these other options, and you don’t really even mention what you actually like about DipTrace. “Intuitive” and “easy to pickup” are arguably properties of KiCAD, for anyone familiar with schematic capture and PCB design. It used to be harder, but tons of effort has been poured into KiCAD for many years now.

Why would anyone want to use an old, proprietary program like DipTrace when KiCAD is free, cross-platform, open source, and arguably just plain better? DipTrace has a Mac version, but all of the discussions I see online indicate that it still hasn’t been updated to work properly on Apple Silicon.

It’s been probably 7 or 8 years since I last saw someone using DipTrace, and I wasn’t impressed then. It’s also $995 for the full version (the closest to KiCAD’s feature set), which is hardly “far less” than $1000, but the absolute minimum version I would even consider would be $400. I’m amazed at how their website seems to be exactly as I remember it from so long ago.

Looking through their marketing site, I literally don’t see a single thing that is better than KiCAD. I personally just don’t understand why anyone would buy DipTrace in 2023. So, it’s hard to respond without just coming off as dismissive. I wish I could provide a more balanced comment that makes it seem like DipTrace is still competitive, well-maintained software… but that isn’t what I believe. I’m sure it’s fine for basic use cases, but KiCAD is great for those use cases and so much more.

Flux seems gimmicky at first, but browsing through their materials, I am at least impressed at the effort they seem to be putting in. They even had a comparison page against KiCAD, but this attempt to sell against KiCAD ended up being some disappointing nebulous statements that didn’t seem to have much merit, apart from the real time collaborative nature of their product, which seems to be their one actual advantage.

Different people can have different opinions, of course, but KiCAD is great quality software with a lot of momentum.

If you want to share what features you like most about DipTrace, or what you think it does better than KiCAD, that would certainly be interesting to hear.

comment 3y ago · link · parent

I would assume a free ink promotion would explicitly choose not to cover heavy users, but it's not necessarily an indication of what they think the printers are capable of.

But, it is an interesting set of numbers, and could indicate something.

comment 3y ago · link · parent

If you've seen it first hand, then fair enough. It just doesn't agree with the consensus I have seen online, so I find that confusing.

As I've said previously, I have the most basic laser printer at home, and rarely use it. I just happen to have done a ton of research into printers lately because I've thought about getting a photo printer, and I really like what the ET-8550 has to offer. But, for the time being, I've decided I probably wouldn't use it enough.

comment 3y ago · link · parent

> the printers themselves don’t last very long

A high quality citation is seriously needed for a claim like that.

That’s not a complaint I’ve ever heard about the EcoTank printers, and googling it didn’t turn up anything. I strongly doubt this is a characteristic of EcoTank printers. That unsourced claim sounds suspiciously convenient for your side of the discussion.

Epson also makes a dedicated line of business EcoTank printers ("EcoTank Pro") which are clearly intended to print very large numbers of pages. But again, even the very basic ones seem to do a great job, with very high reviews across the board when I look at retailers.

comment 3y ago · link · parent

I haven’t done the math to see if they’re right, but they’re likely talking about the various ink tank printers that exist, such as the Epson EcoTank series. Refilling the ink is supposed to be quite cheap, especially if you don’t care about the ink being name brand.

Personally, I print like 5 pages a year, so unless I get into photo printing… the cheapest AirPrint-enabled Brother laser printer has served me well for like the last 5 years.

comment 3y ago · link · parent

> A good SPA is indistinguishable from a native app.

Exactly. It’s like CGI in movies. People always talk about how bad CGI is, without realizing just how much good CGI they never notice.

https://youtu.be/bL6hp8BKB24

comment 3y ago · link · parent

Service workers aren’t a magic “run forever in the background” technology.

I’m fairly sure PWAs can’t run in the background at all on iOS or Android, except for possibly a brief moment after the PWA receives a notification, and the service worker doesn’t have access to much of anything during that interval. If anyone can link to something that demonstrates otherwise, okay, but I have checked on this in the past, and I don’t think so.

Native apps have been caught with their hand in the metaphorical cookie jar over and over again. The App Store review process is largely ineffective. Apple apparently didn’t even realize that apps were doing sketchy things with the clipboard until it became a major headline[0], and this is only the tip of the iceberg of “things App Store review didn’t catch”.

Native apps continue to find ways to bypass sandboxing that the OS applies.

Browsers naturally take a much more adversarial posture against the code they’re running, so the sandboxing is far stronger.

Apple has spent at least a decade marketing[1] to convince people the App Store is synonymous with safety. Given how detached this seems to be from reality, the simplest conclusion seems to be that they do this because they really want their 30% cut. The marketing campaign seems to be working too well. In reality, the browser seems to be substantially safer, although nothing is perfect.

[0]: https://arstechnica.com/gadgets/2020/06/tiktok-and-53-other-...

[1]:

https://apple.com/app-store/

“The apps you love. From a place you can trust. For over a decade, the App Store has proved to be a safe and trusted place to discover and download apps.”

comment 3y ago · link · parent

I like the concept a lot, but I also think it should filter to only installable apps by default. If you detect a user is on a mobile device, it would probably also make sense to enable the mobile filter by default too.

It would also be nice if there was an offline-capable filter as well, but maybe I missed it?

I also notice the Developer tab is not part of the PWA, which kicks you out of the PWA experience on iOS, even though it seems like that marketing page could be contained within the tab? It might also be nice to link to resources for getting started on developing a high quality PWA, if any resources like that exist.

Now that PWAs on iOS can finally show notifications (if the user wants), I hope more developers will take them seriously. I trust browser isolation more than I trust native app isolation, and a lot of the native apps that I use would work perfectly as a PWA.

comment 3y ago · link · parent

I’m not saying polkit isn’t an improvement, but it also isn’t a panacea: https://github.blog/2021-06-10-privilege-escalation-polkit-r...
1
212223
66