2,299 karma · joined Feb 15, 2012 (14y ago) · 1,239 submissions
comment 4y ago · link · parent
so one has 2 options, a database of VUKs that others generate (don't need a device key then) or getting a device to give up its key so that one can generate VUKs onesself. The problem with this is, that that key (if made public) will then be revoked itself.
i.e. I don't consider this being cracked, this is the encryption working exactly as designed.
comment 4y ago · link · parent
That doesn't mean they have the license to continue to "sell" it in perpetuity, just that people who "purchased" it can continue to access it. Conversely, I shouldn't be able to license you the right to "sell" a digital good and then take away your ability to provide it to your customers who already purchased it.
If, I as the IP holder, don't want to provide that right, I shouldn't be able to license this "right of sale" and my "middle-man" licensee shouldn't be able to market it as a "purchase/sale".
comment 4y ago · link · parent
I'm not talking applications provided by the distribution, those aren't "applications" (i.e. in my usage, something installed onto an existent operating system), but part of the provided operating system itself, and yes, I'd agree it's their job to keep their provided operating system secure. It's not their job to keep external apps secure (but to provide the means for whoever is maintaining those apps to keep them secure).
comment 4y ago · link · parent
comment 4y ago · link · parent
Instead of unpackaging a package into a file systme, the package is just a layer that can be unioned in on demand (for live updates, though in the age of containizerization, this hasn't aged as well, so in practice it be running a new container).
link to paper is somewhere in the threads here
comment 4y ago · link · parent
It's not the distro's job to ensure the application is secure and up to date, its up to the application packager (i.e. docker container maintainer) to do that. i.e. to rev new releases of the application image even if nothing has changed in the core app, just to take care of security updates in distro provided packages). In pr
comment 4y ago · link · parent
see - https://www.usenix.org/legacy/event/lisa11/tech/full_papers/...
comment 4y ago · link · parent
Personally, I prefer heinz "not ketchup" to osem brand, but that can be my american trained pallate.
comment 4y ago · link · parent
I generally try to relate tolerance in these contexts back and forth to different groups. The conservative religious person might think that the gay person is doing something fundamentally wrong (and in their opinion bad for society), but tolerance would be allowing, (which doesn't require the religious person to condone), them to do what one finds to be wrong, as the cost of intolerance can be viewed as worse for society.
Vice versa, the secular person might think someone restricting themselves for "religious reasons" what food they are willing to consume is stupid (and even say arguably bad for society for various reasons), but the cost of being intolerant is worse than the cost to society of enabling people to have food / providing it to them in situations.
yes, one can try to nit pick this analogy, but I think its an effective way for trying to frame the problem and understanding tolerance. There are times where intolerance might justified, but one really has to be honest about what the cost to society of being "intolerant" in this situation is (and if you can't be honest about, you don't have the right to be intolerant) as well as the why that is outweighed by the societal benefit of being "intolerant".
As it relates to this ice cream situation, the cost of being "intolerant" to the kosher eater is that they will be isolated from their peers. These events are about bringing everyone together. So, even if providing kosher ice cream is a little bit more expensive, it can still be viewed as a net win for the company to be tolerant of different peoples self imposed food restrictions.
The same would apply to someone who is lactose intolerant, I would assume any company that buys dairy free desserts for one segment of their population to be able to fully participate, would be just as willing to include lactose intolerant people within that population for the purpose of this activity.
comment 4y ago · link · parent
At the end of the day, there's little reason to accommodate orthodox jews and not want to accommodate lactose intolerant individuals as well and if one can kill two birds with one stone, the better. (though in the US it seems that the vast majority of retail ice cream is kosher supervised, and is part of the reason oreos are kosher supervised, as nabisco wanted to get them in as a mixin for ice creams, though then can get into more complicated milk based issues which are beyond scope).
as an aside, I find non dairy kosher ice cream to be meh, dairy kosher ice cream is significantly better.
comment 4y ago · link · parent
comment 4y ago · link · parent
Firefox (at least in the past) used to break if you updated it while it was running (i.e. replaced / deleted / added files its active runtime depended on). So you had to restart it. In a containerized world, this goes away. i.e. you can replace the firefox "image" with a new one that will be used next time you restart firefox without breaking the existant running one.
with apt/deb you can't do that (besides waiting to update). On a multi user system (less prevelant these days for desktop use, but still existing) this can be really annoying to coordinate.
This doesn't answer if Snap is the right technology to do it, just why apt/deb (and related tech) have issues that they can't really solve.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
The vast majority of anti-zionists reject jewish peoplehood (especially the ones who claim to be jewish, which in general just means of jewish descent, not anything that makes them uniquely jewish vs. non jewish). why? I'd argue because that makes it much easier to say good guy / bad guy. If jews are a distinct people who have indigenous ties to the land, then makes it difficult and complicated.
So while criticism of Israel isn't inherently anti-semitic (criticism can come from love as a simple example), it is very possible that the vast majority of anti-zionists are by definition anti-semites due to said rejection of identity.
comment 4y ago · link · parent
then you just hunt and hunt and hunt and hunt. and only shoot at bison/bears and the occasional pair of deers.
and then you trade primarily trading food for anything else (as food is cheap to you, 100lb should just cost 1-3 bullets on average depending how bad a shot you are)
comment 4y ago · link · parent
in all the production code I've written in go since then, I haven't used panic/recover because its not considered proper. But I'm still a bit skeptical as do think it can make code a bit cleaner when writing a library (I'd 100% agree though that the panic should never escape the library though and only a plain error returned to the caller, i.e. need strong library boundaries for this).
comment 4y ago · link · parent
1) its not blurays as a whole just UHD blurays
2) it has nothing to do with the technical capabilities of the chip to playback the codecs, but simply to do with AACS's lack of desire to license playback without sgx availability
3) as noted elsewhere with anydvd/makemkv this just hurts regular users as the ability to decrypt and playback UHD blurays is readily available and one can't easily put that genie back in the bottle.
4) As a caveat to #3, AACS hasn't been broken (as opposed to DVD's CSS), its just well understood and people know how to put the effort in to exfiltrate player keys from devices. As each player key can be used to figure out the volume unique key (VUK in terminology), its "easy" enough to make a database of VUKs for each unique disc that one encounters. Of course player keys can be revoked and then not be able to used to generate newer VUKs (happens with newer MKB revisions) so then people have to exfiltrate a new player key.
In fact, AnyDVD basically does this itself, you can make a bit perfect image of a bluray (making an assumption you have an old drive that avoids bus encryption, or use other mechanisms, say libredrive, to prevent it) and assuming AnyDVD has seen the disc before (anywhere thats connected to the internet and their servers), it will be able to decrypt the encrypted image.
This is opposed to DVDs, no special areas of the disc unreadable by normal mechanisms are used on blurays, for DVDs while one can also make an encrypted image and decrypt it, one is then limited to normal DeCSS brute force methods that require a certain amount of data to work so dont work on the smallest of files, in practice, this limitation doesn't matter much and is more noted for technical interest.
comment 4y ago · link · parent
If I remember correctly I was asked to be able to do a regex that handled . ? and *
The problem I have with this question is that if you spend 10-15 minutes going down a very wrong path, it's very very difficult to correct yourself in a pressurized environment.
I've tried to take the question and reformat it.
i.e.
I ask, what language do you want to program in (presuming I'm comfortable with the languages they want to use, otherwise I wouldn't be in the room, as wouldn't be a fair evaluation).
I give them the basic "strcmp" from pike's implementation (i.e. move character by character matching). i.e. something like
int match(char *s, char *r) {
if (*s == '\0' && *r == '\0') {
return 1;
} else if (*s == *r) {
return match(s+1, r+1);
} else {
return 0;
}
}
First Q. What does this do? (explained above)Second Q. how could we modify it work to match a substring (my explanation would be to just iterate over text like pike, but as with everything need to be open to where the interview takes you, but sometimes might need to say "that works for this, but for the future Qs, might want to think of it in this way", and give them some code, as again, I dont want them to code themselves into a corner that they don't have time to get out of).
Third Q. how could we add anchor support (ala regex, with a bit of explanation if they don't know what they are) (ala pike, determines where we are in the text, ala for ^ no iterating, and for $ we should be at a '\0' in the text
Fourth Q. how could we add "." support (just a || change to the primary matching condition, with being smart to check for '\0' which shouldn't match, but in a pressurized environment they might not get that without prodding right away)
Fifth Q. how could we add "?" support (now we have to look ahead a bit ala what pike does with )
Sixth Q (and the hardest), how could we add
support.I want to see if they can take some existing code, digest it and then see how they think to expand it. As there are many deliverables along the way, I'd hope I'd get a decent amount of "signal" even if they can't get to "?" or "*"
I also give them the link to kernighan's discussion on pike's code at the end.
if people have critiques of this approach to the Q (or further ways to improve it, I'm open)
comment 4y ago · link · parent
I had an interview at google years ago where I basically I was asked to come up with this on my own. In my opinion, a terrible interview Q (per Kernighan's blog, linked in original post, it took pike an hour or two alone in his office), and I bombed it. It was either my just before or just after lunch interview and it stuck with me for the rest of the day and I couldn't give my entire focus to the rest of the sessions.
anyways, after it was done, I found kernighan's blog post and decided I should try to implement this in java as it will allow me to even get some practice with things like junit and more experience with object oriented programming as I had been living in the C world at that time). so I did, but I then found this regular expression page ( https://www.regular-expressions.info/) and learned many more things about "regular expressions" that i hadn't learned in school (because they aren't regular) and wondered if I could extend pike's simplicity to them in a relatively simple manner. So I did.
which I created this https://github.com/sjpotter/regex.
Not meant to be "performant" but meant to be educational to me and perhaps others.
Then when I was learning go, I rewrote it in Go. I did things that are not "normal" go patterns (i.e. using panic and recover to make error handling cleaner (in my opinion, if an error path is simply if (err) { return err } all the way up, I personally think panics/recover at the top can be cleaner, but it seems most disagree), but it was educational on how to rewrite my java code to an object oriented style in Go and to explore the limitations of interfaces and how one might get around them (also perhaps in ways that go against what might be considered proper go programming)
https://github.com/sjpotter/regex-go
though now that I look at that repo, wondering if all the work was done elsewhere and then I just pushed a single commit there, might need to go back and look at it
comment 4y ago · link · parent
https://news.ycombinator.com/item?id=31476551
"As a simple police matter. we can track the flow of bitcoin very easily. Imagine we created a law, one is not allowed to interact with any "blacklisted/tainted" account/wallet and any account/wallet that interacts with a blacklisted/tainted account/walletn after its been marked as blacklisted/tainted is automatically blacklisted/tainted itself (easy to determine in bitcoin). I'd hazard to say, that such a policy would have a quick impact on bitcoin's valuation.
now, at first glance, this type of law might seem reasonable - if an account has been marked as doing illegal actions, any account that interacts with it is benefiting from said illegal actions.
However, this would setup a world of griefers. In bitcoin (I believe) you don't really have the ability to accept or reject transfers. if someone transfers coins to my wallet's address, it will be mine. Imagine someone who gains access to a blacklisted wallet and just transfers tiny amounts to all the addresses that contain massive sums of bitcoin, thereby tainting it all. "
comment 4y ago · link · parent
2) the way finite storage is handled is that "deleted" content can be garbage collected, and you will then be able to loop around and write to those garbage collected areas. not fundamentally different than an SSD which many times has such a log file system at the hardware level.
comment 4y ago · link · parent
1) coffee is always under constant acceleration (g).
2) constant acceleration (say in the X direction instead of Y) would just mean a constant "tilt" within the cup. compare this to an airplane that is not "accelerating" and just at a constant X velocity, coffee would look "still/flat" in your cup.
3) its only the jerk that changes the "tilt" within the cup (and hence causes the spill)