Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 6y ago · link · parent

Because they’re clearly interested in possibly doing so in the future?

comment 6y ago · link · parent

> Except for the fact that they do not allow emitting invalid token streams (which is something you don't want anyways)

Reminds me of some of stringification abused in the Linux kernel. What looks like a function call passing the literal text param1## as an argument, where it would then trigger a different stringification in a subsequent preprocessor pass that prepended ##foo to the passed argument.

comment 6y ago · link · parent

I disagree, you can automatically expose any unsafe function with a wrapper _safe function that does nothing more than call the former (possibly also wrapping fundamentally unsafe types in arguments and return values) which makes it appear safe but that doesn’t make it sane.

There would need to be domain understanding baked into each wrapper and some contract about what is happening on the other side of the ffi wall for it to qualify as both safe and sane, and I’m not sure their approach meets that high burden.

comment 6y ago · link · parent

So is a contract written in legalese English.

comment 6y ago · link · parent

> We spotted this squirrel in 18 of the 13 forest divisions of the state during a survey,

Umm?

comment 6y ago · link · parent

> This denormalizes the tree structure into the path column - you can no longer make structural edits with small updates - but it's much faster for queries.

I think it would be perhaps more beneficial to point out that the bigger problem with this approach that typically leads people to try other avenues including recursive queries is when storage comes at a premium or the “path” makes up the bulk of the record and there is significant duplication of leading prefixes.

comment 6y ago · link · parent

GPT doesn’t make the kind of blatant grammatical mistakes the commenter did.

comment 6y ago · link · parent

Just for some perspective, I can call up my Dell small business sales rep (who reached out to me after I bought just three or four machines over a period of some years) and give him an obscure part number. He says he needs a minute to look up the part, etc and asks if I’m taking this to a Dell-authorized technician; I say no. He takes advantage of how long it takes for the likely instantaneous result to pop up on the screen to ask if I’m interested in the specials he has going on for business laptops, I politely decline but express interest on behalf of future me. He gives me a quote for the part around 1.5x to 2x what the Chinese knockoff that won’t last a week (I know because I tried) costs, I agree and give him my credit card number which they refuse to keep on file, then he throws in free next business day shipping. I get the part, reference the service and repair manuals Dell makes freely available, and do the repair myself. Oh, and depending on the part in question, there’s a good chance that it is under a two year warranty even though I did the repair myself.

For Apple, I buy used parts in the hope that they come from a genuine device being parted out on eBay each for 50% of the cost of the original device because I know all the new parts are not just fake but bad fakes. I get a part that is past its expiration date, rather abused, but will work. I soak the MacBook in corrosive chemical baths to get the industrial super-strength glue (thank God it’s not epoxy?) to loosen up a little before I get out my exacto, needle nose pliers, a scraper, and a plastic pry tool. I pray nothing breaks while I try to get the part out. Something inevitably breaks (also, try to avoid piercing a battery while you pry it out; li-ion batteries do not like to be manhandled). The cost of a replacement part does not make economic sense. I either let the product sit disused on a shelf hoping to find the part cheaper at a later date, hock the device on eBay for pennies on the dollar for a parts shark to snap up then part out, or throw it in the trash because I’d rather not sell my eight hundred dollar phone for a hundred dollars and this at least gives me the satisfaction of cursing at Apple while I do it.

(Yes, the Apple story is an amalgam of many different adventures with different endings over a decade with many different devices, the majority of which were either ultimately written off or else repaired at prices that didn’t make much sense.)

Oh, in addition to sometimes doing my own repairs, I’m also the final arbiter when it comes to all IT purchases for a school. When I’m asked if we can/should get a fleet of Macs for the faculty and students, I insist we get Thinkpads or Latitudes instead.

comment 6y ago · link · parent

NILFS2 or F2FS, the latter is much more heavily tested as it is now the default on a number of extremely popular Android phones.

SD cards don’t perform wear leveling so you really need a file system that minimizes/distributes block rewrites, and a log-structured filesystem will do that by never rewriting old data (until there is no space left).

comment 6y ago · link · parent

I’ve finally figured out how to buy non-counterfeit items on Amazon: try selling it yourself and see if Amazon says 3rd party listings are allowed. In the very few cases where you’re not allowed to proceed to create a listing, it is safe to purchase.

comment 6y ago · link · parent

> It would require reverse engineering the journal format, which may even change with every Windows release.

It does not. Thanks to Microsoft’s obsessive attention to backwards compatibility, you can safely mount a Windows 10 NTFS partition with journal on Windows XP (and I hear even Windows 2000) and get some form of safe read/write. However certain chunks of the fs on disk are not backwards compatible, this is mainly the system volume information used for system restore and shadow copy (and not accessible to typical user land in all cases).

More to the point, the submitted driver does, too:

> and supports journal replaying.

comment 6y ago · link · parent

All. Even in the tests where the SD cards never physically failed, their different write patterns and flushing guarantees exposed underlying issues in the file system. You just don’t encounter them as often when working on systems that typically align with the assumptions the fs developers incorrectly made.

comment 6y ago · link · parent

All of a sudden, I’m cheering for Microsoft’s decision to make Edgium available for Linux.

comment 6y ago · link · parent

Until evidence points otherwise, this is just another spill in a long series of marine ecology disasters and blame should not be allowed to be placed on the coronavirus situation.

comment 6y ago · link · parent

We are you assuming he/she is thinking in that manner? Some things you cannot put a price tag on. Getting oil cheaply from point a to point b is nice, but if all it takes is one major and uncontained spill to forever kill one of the few remaining large coral reefs...

comment 6y ago · link · parent

It touches on that with the ATAG instead of DTB.

comment 6y ago · link · parent

Check out small, it’s a collection of the smallest perfectly cromulent instance for common file types. The last time I saw it the repo was not being very actively maintained but had lots more samples filed as pull requests.

They come in handy more often than you’d think.

https://github.com/mathiasbynens/small

comment 6y ago · link · parent

I’m with you on zfs (although it is a pain to restore overwritten metadata, that’s not a typical symptom of power/controller failure) but please change ext4 to jfs or xfs. Xfs has a bad rep from the early naughts in terms of fs corruption but actually addressed the underlying issues and today both those options are equally great.

I’ve tested all three extensively with unreliable media (raspberry pi kernel dev testing on an sd card) and ext4 was the absolute worst.

comment 6y ago · link · parent

...which you can just use directly if you're not looking for integration with node js.

comment 6y ago · link · parent

Thanks for sharing. It seems the low ram usage is because the developers specifically care about it and only process each input file in chunks rather than preload it in its entirety and even provide options to monitor ram usage; typically multithreading or otherwise adding parallel processing to a pipeline rather increases ram usage rather than is a reason for it to decrease.

comment 6y ago · link · parent

I think it's a structural difference in the hair itself, along the difference between diamonds and carbon. I have facial hair that is prone to fracturing and then giving me splinters that can easily go a few mm deep into my fingers.

comment 6y ago · link · parent

Thanks for the link! The images are on these pages:

Impact testing: http://www.pm-v11.com/TestingImpact.aspx

Wear testing: http://www.pm-v11.com/TestingWear.aspx

Sharpening: http://www.pm-v11.com/TestingSharpening.aspx

comment 6y ago · link · parent

Because it is. People can choose to pay more for a device that doesn't do that, but they don't (for various reasons). It's capitalism meets human psychology.

comment 6y ago · link · parent

Not when accessing https resources but the safe answer is yes otherwise. Unless your phone is infected, of course. Baseband isn't as confined as you think.

comment 6y ago · link · parent

That is correct. The phone waits until it has enough power to ensure it won't die during startup because a lot of modern phones (and ultralight laptops) require tapping into battery reserves because the direct pathway from the wall wart to the device was not designed to provide sufficient power to operate at full speed/capacity for more than a brief turbo boost and startup requires more than that.

comment 6y ago · link · parent

Those don't pick up just radios, they pick up any transistor.

comment 6y ago · link · parent

Their name goes in a file and they get added to various lists. Depending on which list you are on (and who else was at the protest) you will be eligible for further scrutiny. (Remember, everyone breaks dozens of laws a day, as none are meant to be enforced 100%.) Depending again on which lists you wind up on, you may find yourself unable to fly, ineligible for pre check, blocked from a government contract, failing an fbi background check, the target of yellow journalism, victim of police harassment, always missing flights due to random checks, or always being greeted by an entourage of your own at points of arrival. Have fun!

comment 6y ago · link · parent

Yeah, but you can bet the manufacturer will avail themselves of every opportunity to make extra money and bundle ads while also selling your data. We've seen it with smart tvs compared to dumb tvs, smart phones compared to dumb phones, smart speakers compared to dumb speakers, etc, etc.

You're not thinking capitalistically enough.

comment 6y ago · link · parent

I didn't know about their feeling more pain, but I know they require higher doses of anesthetic to knock them out for surgery (as in, anesthesiologists are taught this as a matter or course).
1
117118119
277