Better HN
topnewbestaskshowjobs
Log inSign up

compsciphd

2,299 karma · joined Feb 15, 2012 (14y ago) · 1,239 submissions

Submissions

comment 4y ago · link · parent

bluray encryption was never "cracked". even the above link is clear that it wasn't a crack. just that the encryption mechanism was well understood, but it requires a device key to generate the volume unique key (VUK) that is necessary to decode each individual disc. VUKs can't be revoked, but they are unique to each disc (pressing). device keys can, and when they are, they can't be used to generate a VUK any longer.

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

I've argued that digital media should only be allowed to be called a "sale/purchase" if they have the license to continue to provide it in perpetuity.

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

so you install Oracle on a Debian installation, it's Debian's job to ensure Oracle is secure?

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

applications in the distro should be up to date by simply being in the distro in that case, i.e. we are more talking about applications that are outside the distro and installed on top of it. Because we have dependency issues, containerization is a good method. anything the distro ships itself should always be using the latest of everything the distro ships.

comment 4y ago · link · parent

It's only due to the way docker containers and the like are constructed. Predating docker by a few years I built a docker like mechanism that viewed what docker calls layers (i also used the term) as packages in a traditional distribution.

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

I'm not sure distro needs to "maintain" N versions. The distro maintain 1, but all N remain available and able to fulfill the dependencies of the underlying application

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

I literally wrote part of my phd dissertation on this (can call it proto docker as it predated it and they seemed to use much of the same nomenclature I used, also was sort of a toss in an the very in, though arguably my most important contribution).

see - https://www.usenix.org/legacy/event/lisa11/tech/full_papers/...

comment 4y ago · link · parent

considering its supposed age, if there are any muslim or arabic artifacts in it, it wouldn't just be an extremely rare find, it would overturn all known history.

comment 4y ago · link · parent

there's a dot at the end of the url when you click on it which breaks it

comment 4y ago · link · parent

its sort of true, but doesn't seem to be fully enforced. Heinz's Mayochup is sold in Israel as "רוטב בטעם מיונז ןקטשופ" (sauce in the flavor of of mayonnaise and ketchup, and yes, they spell the last word without a sofit form). Now, perhaps they can get around it because its "sauce in the flavor of ketchup" and not simply "ketchup", but then I dont know why they would just label it regularly as that.

Personally, I prefer heinz "not ketchup" to osem brand, but that can be my american trained pallate.

comment 4y ago · link · parent

lets rephrase it differently. why does a gay person have to have the ability to marry someone of the same sex. "what will happen?" the answer is generally they won't be true to themselves (the whole concept of living in the closet).

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

as a kippa wearing orthodox jew(tm). who while working in the USA had to get used to telling managers how he had to leave early on fridays in the winter months, I have zero problem with this.

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

I'm shocked that there isn't a simple mail server configuration where you can say bounce to sender all emails with a reply to of a certain msg id.

comment 4y ago · link · parent

the popup doesn't even make sense, there's no reason the image can't be updated behind the scenes and just take effect next time firefox is launched. just because a snap is in use, doesn't mean it shouldn't be able to be updated (i.e. can docker pull an update image without breaking my existent running containers).

comment 4y ago · link · parent

forget faster - functionally better.

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

the best hard boiled eggs I've made are with the measure water to steam heat them (and have device auto turn off when water runs out). they come out hard but creamy in a way i've never gotten from dunking them in water. unitasker device, but works oh so well for what it does.

comment 4y ago · link · parent

it seems to be only DNS (or perhaps cookie?) oriented. I didn't realize I was connected to VPN and it worked, so I was like hmm. then noticed vpn, so disabled and refreshing in firefox wasn't a problem, but when I then opened it in chrome, it showed the geoblock (and further refreshes in firefox continued to work).

comment 4y ago · link · parent

eh. the warranty that they have now issued is less than what the level they want. so people still want to trust them to "underpromise and over deliver" as they say. I'm not convinced it really hurt them.

comment 4y ago · link · parent

Such as Brendan Eich being forced out (retaliated against?) for views that were not expressed within the business only outside of it?

comment 4y ago · link · parent

no, it fits standard bits, the length of the bits is smaller so it can hold more in its internal carry. there's a difference.

comment 4y ago · link · parent

if one's anti zionism is a rejection of jewish peoplehood / nationhood (i.e. jews aren't a nation) then one is rejecting a shared conception of the vast majority of jews have how they perceive themselves.

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

"trust me bro" :)

comment 4y ago · link · parent

farmer is easy too. buy like 6 pairs of oxen, 5 sets of clothes, spare of wheel/axel/tongue. and the vast majority of the rest on bullets with like 100lb of food to just get you started

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

which was why I used it. I basically had a single entry point (if i remember correctly) something like "match(regex, text)" and hence it made it easier for me to write by just panic at the error location and recover within the match() call than putting if err != null everywhere. Or at least that's what I thought then in terms of cleanliness.

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

This keeps on being reposted.

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

we probably got asked the same Q, but I believe pike's solution is close to the optimum solution to the google interview Q (in terms of being able to code out on a board in a short period of time).

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

So fun story (to me in retrospect).

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

hah, I called this months ago

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

1) there are file systems that are append only logs (to an extent) - a decade ago I played around with nilf/nilfs2

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

I believe a way to view it is as such

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)

1
171819
42