Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions

Submissions

comment 8y ago · link · parent

So: “We collected detailed personal data on 14M people, much of it not directly given to us by those people. This created an enticing target for data thieves. Despite our obscene profits from data, we disproportionately reinvested in protection of this sensitive information. Since we lacked security and have a unique ability to hold more data in one place than anyone else, thieves got more of your data than they could have dreamed of.”

Did I miss anything?

comment 8y ago · link · parent

It would make more sense for process spawns to specify veiling behavior, such that unveil() only unveils things.

comment 8y ago · link · parent

There is no “check first” in an ever-changing file system environment that has no atomic operation for something this large. Any “check” is a false sense of security, convincing you that you’re about to do the right thing; meanwhile, any background process could create important stuff in the directory tree you just “checked” and you’d destroy it anyway.

If you could lock down the whole directory tree and then check, it would be moderately safer but you are still assuming the tree contains only what you expect. It’s far wiser to have a list from the start or a file search that you can audit before individually processing files on your list.

comment 8y ago · link · parent

Recursive delete has always been a misfeature of computing, out of a mistaken entitlement to convenience when you are performing a fundamentally risky operation on a target you can never know the state of.

At best, it is redundant with a recursive search feature that chooses “delete” as the operation. And if you want “do something else then delete”, you can no longer call a recursive-delete command anyway so why not just learn how to enumerate files first and give your system a fighting chance to audit first?

Disk cleanup code should always create lists of known target files, attempt to delete only that list of files, then do the platform equivalent of “rmdir” at the end to attempt to remove the directory. If that fails, congratulations: your ass was saved by not deleting something you didn’t know was there.

comment 8y ago · link · parent

A file system doesn’t fix the problem either because there are regularly problems at file system boundaries. For example, moving from a case-sensitive file system to a case-insensitive file system, you will eventually find two distinct bags of bytes that something thinks are the same; if the original disk contains files with both names, you have to pick one or error out. Even if you know the first file system is UTF-8 and the 2nd is ISO-8859-1, the case difference can still be there.

It seems to me that the only correct solution is to error out when there are at least two viable versions of a file. Even if you’re trying to “sort and display file names”, you would need to acknowledge at that point that the exact file name isn’t clear. And once your program is doing that, it doesn’t really matter why the two versions are different: maybe it’s a Unicode problem, maybe it’s not.

comment 8y ago · link · parent

Well I’ve been waiting literally months for a laptop to complete its claim to be “installing” update 1709, and it never does.

The only feedback in the entire update process is a little spinning circle in a list of updates, which spins for hours on end without apparently doing anything until Windows suddenly out of the blue is “ready” to install and reboots. It will appear to get somewhere, reboot again, and somehow return to the desktop as if everything is OK, yet the update list claims that the update failed. Then it spins again.

I mean, even if it’s “good” that it doesn’t auto-install broken updates, it sure seems to be spending the absolute maximum amount of resources in terms of downloading data, consuming energy, wasting my time, etc. I suspect the size of the update is the factor they should most easily be able to control; patch something smaller and maybe it will actually finish. I don’t know, just seems like an utter mess to me.

comment 8y ago · link · parent

Something is very weird about window displays in general. Take the list of wi-fi networks; sometimes the entire thing will just stop appearing, doing nothing when you click the icon! I eventually figured out that if I use Windows Search to pull up the WiFi Settings panel, and manually click the list of networks there, then the list is fixed (it does not appear in the Settings window though; it just pops up where it was supposed to be, near the taskbar icon).

I just don’t understand; I cannot fathom what implementation could be so complex that they can’t achieve full test coverage on something like whether or not a damned window appears when required.

comment 8y ago · link · parent

I had the same issue with Mojave actually, including the kernel panic at boot. Fortunately I was able to free enough space and find a culprit.

It turned out that not only was the disk very near full after upgrading but a running app process was failing to do something (thanks, new sandbox rules!) and it would fail forever, growing and growing one of its preferences files to gigabyte size.

So in my case at least, Apple’s system “protection” basically created a risk to the system. The OS simultaneously caused a program to trigger a failure condition that the app wouldn’t have otherwise had, and then the OS did not protect the system enough when the app’s failure response was to grow a file on disk without limit! Apple even redesigned the damned filesystem, meaning a lot of tricks to erase files didn’t seem to work. I was desperately blowing away anything I could think of while trying to identify the process working against me. (This is incredibly hard. Processes fail to spawn, etc. and lots of things go to hell. If you don’t already have a couple of shells open somewhere you’re probably screwed.)

Do not let macOS fill up its disk. And I’m really starting to wonder what is up with Apple engineering.

comment 8y ago · link · parent

The widespread use of the Excel grid layout may explain why people seem to have a high tolerance for improperly-sized UIs.

Personally it drives me crazy to see things truncated all over the place, peppered with useless empty cells, for no reason other than “somebody shoehorned this sparse data into a grid and never looked back”. It’s like people just don’t see how much time they’re wasting constantly doing a mental reconstruction of their poorly-described data because they can’t SEE most of it.

We really need better tools.

comment 8y ago · link · parent

What I can’t figure out is why stores make it so hard to find any of these games that supposedly exist.

Now, a substantial amount of space is devoted to pre-orders: games that can’t even be played yet!!! How does that help the games currently for sale?

There are lots of positive feedback loops: advertising only the top 10 keeps them (shockingly!) in the top 10 seemingly forever. And the categories suck...why should anyone care which games have made the most money, especially when some in-app purchase lists seem scammy as hell?

comment 8y ago · link · parent

This is the kind of thing that is stupidly hard to fight now. Even if you block Facebook’s 80,000 domains at your router, your friend’s address book dump gives lots of goodies to Facebook and 3rd parties and you can’t touch it. Every new thing they try becomes illegal in 2 years “but not yet” so they do it until they can’t.

Sometimes it seems like the “Default deny” security concept needs to apply to Internet companies. Instead of having years to screw with data and the Internet until told “no”, how about every idea they have is illegal until it can be proven through thorough review that it might be valuable?

comment 8y ago · link · parent

Man I hate notification dots that won’t go away. Like in PayPal, there’s a “notification” that I have a “to-do” for setting up a new profile! That is something I will never do, it’s not something I can mark as “read”, it’s just a damned red dot in the corner forever now.

comment 8y ago · link · parent

I only use Facebook like every month now but it always asks about my phone number. It also asks me to enable a log-in short-cut every time.

This last time, they crossed a line: they pre-filled the field (I do NOT have this set up in the browser), meaning they already figured out my number (probably by scrubbing some friend’s phone) and just want it confirmed. To hell with that. I would not be surprised if every spam call in existence can be traced to Facebook.

comment 8y ago · link · parent

We live in a society that requires money just to survive. How can any venture not have money as a goal?

Therefore, it’s always at least about money but probably more than that. And when you consider the time investment and risk associated with a startup, it might be a loss if you’re only considering the money.

comment 8y ago · link · parent

I set up a Shortcuts (formerly Workflow) to auto-map to my home address in Directions view, which is far more convenient anyway.

There isn’t much point in creating lists of important places within the app because Google can’t seem to figure out how to show these to you in fewer than 5 taps/screens. It’s crazy when the 3rd party solution can provide more direct access in an app than the app itself.

comment 8y ago · link · parent

It’s funny, after Mojave was released recently I thought it might finally have a python3 installed, even if it’s not the default. Nope, still Python 2.7.

This is good for me since I deployed a Python-dependent app under the assumption that the system Python would be stable and reliable. It allows relatively complex things to be achieved with a tiny download package.

I’ve been prepared to adopt Python 3 for awhile but it just isn’t necessary when using system defaults.

comment 8y ago · link · parent

You have to be able to trust your tools.

Imagine if “rm” just decided to occasionally set aside files instead of removing them. The “star” in “rm star” means “remove everything”, not “remove, asterisk” where at the bottom of the page the asterisk lists exceptions like some kind of marketing weasel. Sheesh.

comment 8y ago · link · parent

The pop-up permission boxes don’t make a great first impression since I saw at least 5 of them within 2 minutes and they tended to have really obscure descriptions like access to “System Events”.

While probably technically much more difficult, maybe they could have the first Mojave launch of every app occur in a separate and invisible “everything allowed” area, where the system just pretends to allow things and tracks everything that the app did on launch that would require permission. And then, it can display one box with a summary of features that seem to be required for that app, relaunching the app in the real system sandbox if approved.

comment 8y ago · link · parent

The most carefully-constructed, architecturally-pure piece of code will still break in the face of future requirements. And in a surprising number of cases, it will break on the very first new requirement. Keep it straightforward and get it done.

You will almost never be working on something so performance-critical that it truly needs cleverness and super-optimization. And you will rarely have time to properly measure a particular thing anyway. You will be expected to frequently change things and super-optimal code is a pain to modify.

You will work with programmers with a variety of skills and it will often be impossible for them to maintain things of moderate complexity. Or, your team will be using ancient tool versions that can’t reliably do the spiffy new thing in the language. Again, straightforward code wins.

When you write a test, first set up a case that fails to make sure your test can actually catch a failure. Too much time is spent debugging things because tests “pass” when the tests themselves just weren’t doing what they meant to do.

The code is king: put everything you possibly can in there (comments, etc.). Don’t let people set up external documentation that no one reads, because it becomes wrong/misleading within a day. If you must have things outside the code, they need to be revision-controlled alongside the code, in the same repository.

comment 8y ago · link · parent

I had a cheese-grater Mac Pro G5 for 8 years that still worked beautifully when I gave it away. I did upgrade memory at one point. An external display had a power supply problem after a few years. I replaced the graphics card. The ability to replace parts does help but I’ve also had a MBP since 2013 that has no accessible parts that also works fine.

Of course, on the flip side I’m grateful for this reliability because there’s no way I want to replace my 2013 MBP with any current Apple offering. They’ve truly screwed their product line and I figure I can only wait one more generation for them to come up with something sensible.

comment 8y ago · link · parent

Technical solutions to this seem to be hindered by issues that affect other secure systems, such as: how do you know who first published something (trusted/reliable time stamping servers?), and how do you know it’s the same content?

As such, I suspect the best system is “hire a bunch of humans to check”. And that’s expensive, which is fine because it should be. These companies try to completely decimate online publications just because it might infringe on their precious properties, and that needs to be a massive cost to deter frivolous takedown notices.

It’s kind of amazing that sites so rapidly reached the point of just insta-killing potentially infringing content with no evidence. That has surely crushed some up-and-coming artists who probably said “screw it” after having their platform taken out from under them by mistake.

comment 8y ago · link · parent

I particularly dislike marketing that uses terms like “safer”, “faster”...compared to what? If you dig far enough into the fine print, it is usually clarified as “...compared to our last crappy version” but the implication is that the product is superior to any alternative. That kind of phrasing is garbage and has no place in a user warning, much less anywhere else.

comment 8y ago · link · parent

It’s not just deletion; items are replaced based on “someone’s” judgment that the new item is equivalent. The later version is sometimes obviously different and often worse.

For instance, a “remastered” version can change content. A song might be completely rerecorded and sound different than the version I bought/liked.

If Star Wars teaches us anything, you can’t just rerelease something and assume it’s an improvement.

comment 8y ago · link · parent

This is sort of “hurry up and wait”; every time I feel like I got through the gate quickly, I just end up in line on the jet bridge or waiting 2 minutes for someone to fish every variety of item out of their overhead bin while the whole plane waits for them.

The cause of slower boarding is BAGGAGE FEES. Airlines are penny-pinching, people bring everything on board to compensate, and struggling with luggage is slow as hell.

comment 8y ago · link · parent

I did give an example of another way: reducing the features of the chip. DRM is just one case.

I am aware of the reasons for shrinking. I’m not saying they should never pursue a new process but they’re attempting to achieve it on a timeline that isn’t realistic.

Also, power-inefficient design is something that is hard for Intel to change because too much depends on their architecture being the way it is.

So between not wanting to get rid of stupid features and not being able to sell a backward-incompatible chip with power-efficient architecture changes, they’re left trying to shrink before everybody else.

comment 8y ago · link · parent

I’m a little surprised that they’re continuing to push shrinking transistors so hard. While it’s impressive, it introduces massive new problems to solve across the entire design and manufacturing process, every time. There are other ways to achieve their goals of reduced area, etc.

One example is to save area by making the chip do less, and an outstanding place to start would have been to banish all of this DRM crap that no customer has ever asked for. It costs complexity, no doubt adding so much crap to the chip that they need to save area by shrinking the whole chip on an accelerated schedule.

comment 8y ago · link · parent

Hmmm...I remember receiving daily E-mail spam from “Trend Micro”, it was absurd and I had to block it all. I used to think it might be faked but after seeing this I’m sure the original company was responsible for all the spam trash as well.

What I don’t understand about review processes is that scummy apps and companies are really not that hard to spot. Maybe the really crafty ones are hard to see but I have to wonder how much time Apple really has to spend (sometimes just from descriptions alone) to question what an app is doing.

Meanwhile, I once got rejected because I didn’t have a damned minimize button or something.

comment 8y ago · link · parent

It’s so frustratingly hard to convince some people that their world does not exist in a vacuum. Even if you could magically move a job to your country/state/county or even your city/neighborhood, it would most likely still depend on work done elsewhere in the world. I just don’t know where to start with this viewpoint except to say it is obviously wrong to assume that one country (even a bigger one such as the US) can just handle itself.

comment 8y ago · link · parent

Apple is a terrible choice for gatekeeper because they stand to benefit from any app becoming popular, regardless of why the app has become popular. Gambling-inducing gem scams and apps with fake reviews do just fine and earn Apple 30% at the expense of users so Apple certainly loses money in the short term if they refuse those apps entirely. Apple also gains when they can brag on stage about how many bazillion apps there are on Apple platforms; scam apps are generally quite numerous (probably because it’s easier to come up with a bunch of crappy apps than a single good one) so they’re sort-of-OK with having lots of “apps” that no one should really be installing. A really tiny list of outstanding apps would be hard to sell on stage.

The only real impact on Apple’s bottom line would be for the entire store to become so infested, relative to competitors, that people jump ship and stop buying expensive Apple hardware out of frustration. Apple is at least observant enough to avoid that; they’ve kept their store clearly better than competing stores but none of them is necessarily a great experience.

I strongly suspect that the convenience of payment processing is the primary reason for developers to put up with Apple’s too-random screening systems. If Apple were required to open up app payment processing to any number of payment services, and if they were relying on trusted 3rd parties to certify apps (perhaps based on category), we would see a very different app experience.

Distributing reviews to different authorities would also be hard. For example, if you had “security experts” handle screening for apps in a certain category, somebody could just write a sneaky app in a different, weakly-reviewed category to make it through the net into the store. Apple would almost have to create secure subsets of their entire API in line with app store categories, e.g. “you can’t even use network-access APIs for apps in this category” would be a very useful restriction. The other nice thing about this is that Apple would finally be free to not need certain expertise in-house; e.g. if you don’t have enough good people on staff who are qualified to assess the security risks of an app but you can find a trusted 3rd party that can, you can hire them to be that trusted authority and we can stop assuming that Apple is the best at handling everything by itself.

comment 8y ago · link · parent

Punishments should focus a lot more on the situation of the person involved.

For example, community service if you can’t pay a fine. If you don’t have time due to multiple jobs, kids, etc. then perhaps the state offers services to give you time (day care, food or travel credits, whatever). Sure, the state pays for that but is it really so bad to pay for these things when we pay to run jails anyway? Seems we’d have fewer desperate “criminals” if we just treated them like people.

If you have little money and need to be working multiple jobs, etc. then of course bail, fines, and jail time will completely screw you and you’ll end up even more desperate and likely to (say) steal again. And since people aren’t just leaving stuff around to be stolen, you’d probably accomplish that through property damage (more charges! more jail!) or, unfortunately, weapons (despite best intentions, things go bad and you’re desperate and assault occurs: more charges! more jail!). This is an insane cycle.

1
181920
98