Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 11y ago · link · parent

You can do "pip install livestreamer" to install livestreamer which will automatically open the Twitch HLS URLs in VLC or another media player of your choice.

Of course Twitch should support HTML5 video though, no idea why they aren't.

comment 11y ago · link · parent

That seems to describe memory editing plus "edit and continue", which is distinct from record&replay and reverse execution.

Also, rr has nothing to do with Rust in particular, although this article shows how to use it with Rust.

comment 11y ago · link · parent

Isn't this solved by paying a fixed amount, and only paying if the project works and is well done?

Then the outsourcing shop no longer has the incentive to drag things out so you keep paying.

Of course, it may be necessary to pay a large premium to get such terms since the developers take all the risk.

comment 11y ago · link · parent

Maybe the dealerships and in general physical shops should evolve into paid-for showrooms?

That is, you pay, say, $50, and you get to try a bunch of cars or in general products that they have on loan from various manufacturers and get some guidance from the staff if needed.

Then once you figure out what you want, you buy it online and get it shipped to you.

Then there is no need to "protect" those shops, since the customer is paying precisely for the only value they add, which is the ability to try out things and ask for advice, and in fact the value of the advice would increase since there would be no conflict of interest.

comment 11y ago · link · parent

I'm not sure that such a thing means they support the change, it's just the rational thing to do given the change happening.

As for why they would setup an alternate DNS system, they would get power over the DNS system and the money from domain registrations.

In exchange, users would get more security and website owners lower prices and more friendly policies (now the reputation of those companies is on the line, and they care more about it than ICANN since they are selling other things).

There's some anonymity risk though which might lead to strong opposition to the project if not addressed and while bundling and using Tor would work, it's not clear if Tor could take a few billion extra users doing tunneled DNS queries.

comment 11y ago · link · parent

Indeed, should disallow that as well, e.g. give such external images and videos an intrinsic size of 1/3 the browser window size regardless of their actual size.

And disallow (non-CORS-allowed) cross-domain JavaScript and CSS.

comment 11y ago · link · parent

Maybe Microsoft, Google, Apple and Mozilla could get together, and configure their OSes and browsers to do DNS lookups by default using a system different than ICANN's via security updates.

That would make ICANN mostly irrelevant in less than a year.

Also, it improves security, since you are already trusting your browser vendor and would no longer need to trust ICANN, registrars and the CA system as well.

comment 11y ago · link · parent

The root problem seems to be that the web security model is broken because you can get onload AND onerror callbacks from img coming from 3rd party sources regardless of CORS.

You are not allowed to read the content of those resources for security reasons, and the fact that you can detect whether they have been loaded seems just as broken (although obviously this usually only has privacy impact, while reading the contents easily allows impersonating the user or stealing secrets).

This attack abuses this by using HTTP URLs and causing HTTPS to trigger onerror by using a content security policy that disallow HTTPS, which allows to measure timing of the HTTP->HTTPS redirection, which is instantaneous if the site had already been visited due to HSTS caching.

So I think two changes are needed:

1. The browser should never fire onerror on non-CORS-allowed 3rd party resources, but instead fire onload even if an error happens

2. The onload event should ideally be triggered 1 second after the resource has been seen regardless of whether it has been loaded or not. If that breaks too many websites, the timing granularity should be rounded to the greatest period possible.

There is also the problem of lots websites having CORS policies that allow * , so should probably also fix browsers to not allow sites to have CORS * policies, at least for this purpose.

Alternatively, it might be possible to load those resources normally, but effectively consider them to be a "3rd party origin from 1st party origin" that is different from "3rd party origin" and from other 1st party origins for all caching purposes.

However, this seems risky because if the 3rd party site manages to somehow fingerprint the user (e.g. because the IP address is whitelisted) then that information is potentially leaked to the 1st party site. For example, it would be possible to detect whether your IP is whitelisted by a domain that otherwise returns errors to everyone.

comment 11y ago · link · parent

This seems to be about using Rust for the kernel running inside the virtual machines, not for the hypervisor itself, which is what I was talking about.

comment 11y ago · link · parent

Yeah, not sure why completion matters.

All that matters is whether the user found some useful information in it, and just fully watching one video lecture should be enough for that metric.

comment 11y ago · link · parent

It's rarely used, and only by experienced users.

Also, 3rd party software can provide that functionality

comment 11y ago · link · parent

If anyone is considering working on an OS in Rust, they could perhaps consider writing a small hypervisor that could replace Xen, Nova and similar hypervisors.

This provides the same low-level challenges of writing a kernel, but it's far easier to get practically usable software than attempting to replace Linux and would actually be useful in practice.

At the moment, the only way to make a sandbox that has a chance of being perfectly secure (i.e. no security holes, ever) while still running all kinds of useful software is to use VMs to sandbox Linux/Windows kernels, and here the hypervisor is of course the weak point, and current usable hypervisors are written in C or C++.

comment 11y ago · link · parent

Maybe he was just exploiting other automated traders doing dumb things?

comment 11y ago · link · parent

He should, but government should figure out whether there are any barriers to building new housing and remove them, which might be the case if market prices are somehow tripling (i.e. demand is spiking but supply somehow isn't rising as well).

comment 11y ago · link · parent

In case it's not obvious, this is an absurdly terrible service you should never use.

Here is some free software that accomplishes the same task, which is almost surely not more likely to give your password to third parties than just typing it on the same machine would:

echo $(shuf --random-source=/dev/urandom -n 6 /usr/share/dict/words)

comment 11y ago · link · parent

I think "time on the front page" would be a better measure of popularity.

Even better, "total site-wide HN comments made while the article was on the front page" as a proxy for the number of users being online and thus having seen it.

comment 11y ago · link · parent

Looks like there might be a surplus of engineering talent (or non-talent, perhaps) at some companies, which results in these bizarre ad-hoc projects.

comment 11y ago · link · parent

The first C result is absurd, not sure how the author could have gotten it.

First of all, the code as written will just optimize to nothing, so we need to add an asm("" : "=g" (s) : "0" (s)) in the loop to stop strength reduction and autovectorization, and we need to return the final value to stop dead code elimination.

Once that is done, the result is more than 2 billion iterations per second on a ~3 GHz Intel desktop CPU, while the author gives an absurd value of 500m iterations which could not have been possibly obtained with any recent Intel Xeon/Core i5/i7 CPU.

BTW, the assembly code produced is this:

1:

add $0x1,%edx

add $0x1,%esi

cmp %eax,%edx

jne 1b

Which is unlikely to take more than 1/2 cycles to execute on any reasonable CPU as my test data in fact shows.

comment 11y ago · link · parent

Where "can't" means "they don't want to because they want to reserve themselves the ability to screw their users by shipping devices with OSX or derivatives installed where the user cannot change the software, which the GPLv3 is specifically designed to prevent".

Considering handling paths is one of the most fundamental functions of the Unix tools and C library, having buffer overflows there is quite damning.

comment 11y ago · link · parent

This is because OSX uses a feature-limited (and apparently completely broken given this report...) BSD-derived userspace instead of the GNU software used with Linux, which are usually specifically designed to not have fixed limits of any kind.

comment 11y ago · link · parent

Looks like it's because until now it was not available, since rr has gained both reverse execution and x86-64 support quite recently (now and end of 2014 respectively)

There have been other similar tools previously, but they were either slow (chronicle), unable to work on complex programs or only worked on VMs.

comment 11y ago · link · parent

Hopefully competitors will spring up, especially if Uber behaves "badly"

Also once driverless cars are available, starting competing businesses should become trivial (aside from having the necessary capital), and in fact it's quite possible that the final outcome will be the car manufacturer themselves offering an Uber-like service instead of selling the cars.

comment 11y ago · link · parent

Well, it means that if code cannot fit everything into the ISA registers, it has to spill them to the stack, which AFAIK is not renamed to the physical registers on current x86, so you still need to pay an extra penalty to access the stack data in the L1 cache.

comment 11y ago · link · parent

Just give access to those that have committed crimes which imply a low risk of such behavior, and take away the access in case of misbehavior.

The vast majority of people aren't going to cause any issues.

comment 11y ago · link · parent

Why not $0?

The marginal cost of the bandwidth required to make the phone calls is negligible, so there is no reason it should cost anything to the inmates.

A simple solution to achieve such a result is to buy a cell phone plan with unlimited minutes and route calls through it.

comment 11y ago · link · parent

Why is this better than just using any SQL database?

Also, considering that only in-memory storage is shipped here, is this an internal Google project that was only partially released? Or a work in progress?

comment 11y ago · link · parent

This looks like a publicity stunt.

If you selectively present anything you could possibly present in a negative light and do so without context, you can make anything look bad.

If one were to look at the ratio of such messages to praise and neutral messages, that would probably paint a very different picture.

Just numerically one can see that 1000 messages over 10 years is only 3 negative messages per day, and someone famous might get hundreds, meaning the negative ones are a few percent...

It's a bit like collecting all the [dead] comments on HN, presenting them all at once and then claiming that HN is a terrible community.

comment 11y ago · link · parent

Or could just use a good language with proper support for abstraction and operator overloading like C++ (or Rust, but might not be good enough yet) and define suitable types with constant-type finite field operations implemented in inline assembly.

And write the non-crypto TLS protocol part in a safe language like Rust while we are at it.

comment 11y ago · link · parent

The next step should be to stop trusting any other CA, and have Let's Encrypt support EV certificates by working with other CAs and still requiring Let's Encrypt DV verification.

This way, Let's Encrypt in particular would need to be breached for a successful attack, while right now it's enough to breach either Let's Encrypt or any other CA.

comment 11y ago · link · parent

It's pretty obvious that it is far more damaging.

The reviews from "stupid people" are limited by the ratio of "stupid people" to "smart people", and thus merely change the scale and add some noise, mostly uniformly across all products in a given category: the system is worse, but still usable.

On the other hand, enough fake reviews on a system with discretized scores will result in all products having the maximum score and having almost all reviews presented being fake: the system is now completely useless.

1
454647
51