Better HN
topnewbestaskshowjobs
Log inSign up

devit

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

Submissions

comment 6y ago · link · parent

All software that you install on the main desktop operating systems is given the "keys to their computer kingdom": there is no privilege separation or sandboxing, except for the "user vs root" division, which can be trivially bypassed in countless ways (and anyway, most installers require root privileges).

And yes, obviously you need to have a dedicated gaming PC and certainly not install any games or any software that isn't strictly necessary on the systems/VMs with important data.

comment 6y ago · link · parent

So with 69 deaths so far and 9 deaths last week in Santa Clara County, projecting that to an extra 4 weeks to 105 deaths for those infected in early April, that means a 0.16% death rate?

comment 6y ago · link · parent

Not vaccinating does potentially cause harm to others through infection, and someone unvaccinated can only fully prevent such harm by completely avoiding any contact with humans they are not living with; furthermore, such harm cannot be reliably attributed to the perpetrator, so punishment is hard.

Hence, it is reasonable to outlaw being unvaccinated and going out of the house.

comment 6y ago · link · parent

I don't mean testing against the production instance, but rather against an instance configured like the production instance, except for being scaled/sized appropriately for the testing data and workload instead of the production one.

It's also possible to test against live production instances and data itself (mostly useful for performance optimization work and testing), although that's more of an ad-hoc process and some kinds of tests are not possible because the actual data there is arbitrary. Also, those tests, if not used for development, might be better expressed as self-checks done on system start and monitoring systems.

comment 6y ago · link · parent

You should never mock anything. Test against the same dependencies that exist in production.

If that's impossible (i.e. you get charged for the backends or you are controlling physical objects), then generalize the program to support alternative backends and frequently test only those that can work in the test environment, using some more ad-hoc methodologies for the others.

Also, in general, if you need to change your tests for valid changes in the implementation, then your approach to testing is completely broken. An example are dumb testing strategies where you check that the code produces specific SQL queries instead of checking that the code returns correct results.

comment 6y ago · link · parent

I don't get the claim about lack of training data.

Most TV stations broadcast with closed captioning and most movies have subtitles available, which should give millions of hours of training data.

It's technically copyrighted, but as long as you don't distribute the video as well, they aren't going to care about it.

Also the complaint that the data lacks compression artifacts is completely ridiculous and absurd: if you want compression artifacts, just compress and decompress the speech yourself!

You can also pay people to transcribe audio or read text (or even do it personally), and since this is something anyone can do it can be paid at very low rates.

comment 6y ago · link · parent

They control and can change the Windows NT kernel, so anything is doable.

comment 6y ago · link · parent

Wow, so it turns out that most of the products that were advertised were not so necessary after all?

comment 6y ago · link · parent

Sorry, I meant "leaking employee of GitHub", not "leaking employee of your organization".

comment 6y ago · link · parent

Probably not very smart to use this feature, since your so-called "private" repository is an exploit or a leaking employee away from becoming public.

Instead, use a self-hosted Gitlab instance or similar, preferably with an external firewall preventing outbound and non-team inbound connections if feasible.

comment 6y ago · link · parent

Probably more fun that losing to someone just because he can move the mouse in response to a visual stimulus faster than you?

If the resulting game is too simplistic, slowing limitations can be added, such as limiting the maximum speed at which the crosshair can move, or making weapon fire deal little damage relative to health so the target can move out of range if near cover before they die.

comment 6y ago · link · parent

Ever considered that maybe you should design your game so that modifying the client provides no advantage to players?

There is a universal way to do so, and it is to provide whatever feature the "cheat" programs are offering directly in the official client (either with first-party code or by providing an API that third parties can use).

comment 6y ago · link · parent

Well, not really: bailouts punish people and business who incurred costs to operate in a way that would allow them to pause their economic activity for months (cancellable supply/rent/employment contracts, cash reserves, etc.), and favors those who did not do so.

In general, a society where it is possible to pause all economic activity at any time is going to be much more robust than one that doesn't, and is going to reduce the impact of an apocalyptic event that the government cannot bail the society out of, possibly avoiding human extinction in the most severe cases.

For instance, if everyone stores several years worth of food and water at home, then even the most catastrophic events are much less likely to kill the vast majority of people in the world.

So, there is a moral hazard, and it may be wise to either minimize the bailouts or to make such resilience mandatory.

comment 6y ago · link · parent

Why is it supposed to be so complicated to do "processor verification"?

Why can't you simply upload the design to an FPGA, and then check that it can:

1. Boot all available operating systems (Linux, *BSD, Windows, etc.)

2. Successfully compile and run the testsuites for a bunch of open-source software (several languages like Rust have a standardized repository and method to build and run tests, so this is very easy)

3. Correctly run stress testing software (Prime95, etc.)

4. Correctly run several software unit tests that you write to exercise instructions that may not be produced by LLVM/GCC

5. Correctly run tests you write to exercise specific processor/cache states

6. Properly handling fuzzed code without freezing the whole CPU (using afl-fuzz)

Start with the simplest possible in-order core so that you get it working very easily, and then evolve to your desired end-state with a series of small commits, and if the verification fails use `git bisect` if needed to find the offending commit, insert any instrumentation you might need to detect the issue and fix it.

I don't see why you would need a specialized tool for that, or even what a specialized tool could possibly do.

comment 6y ago · link · parent

Yeah, but perhaps he knew in advance that the FDA would approve?

Of course, it could also have been modelling based on public info or simple gambling.

comment 6y ago · link · parent

I think it has a flaw: if you find out you are infected mid-day, then if you reveal your key for the day others can impersonate you for the rest of the day, and if you don't those who you had contact with in the first part of the day won't be notified.

So my suggestion for a minimal fix would be to also reveal all advertised rolling IDs for the current day in addition to the keys for the past days.

A better fix would be to generate ID in a hierarchical fashion from the daily keys with power-of-two-length time slots, so that you only need to share O(d + log(n)) values where d is the number of days and n is the number of subdivisions in a day.

Another potential fix is to use public-key cryptography and only reveal the daily public keys; however, this requires twice as large IDs and matching requires to try to decrypt/signature-check all received IDs instead of being able to generate and lookup.

comment 6y ago · link · parent

What's the advantage compared to just using Anbox?

comment 6y ago · link · parent

How can it be faster considering that they are equivalent?

comment 6y ago · link · parent

The "Bypass Paywalls" browser extension is effective on this article.

comment 6y ago · link · parent

Seems to be missing any mention of how this whole process is resilient to killing the apiserver or kubelet at any point in the process (it is resilient to that, right...?).

comment 6y ago · link · parent

The other problem is that PostgreSQL doesn't rewrite data in place, so an attacker can determine the order of the user votes from the physical order of data in the database, and the order of issue votes from constantly scraping your website, thus allowing to deanonimize everything.

You need to use another database for this, specifically one designed to always overwrite data in place, and erase the WAL immediately after commit: it should be easy to write it yourself, assuming the dataset fits in RAM and so you don't need any data structures on disk other than a simple array of records.

Also you need to ensure that higher storage layers don't keep snapshots and don't do copy-on-write.

Could also look into a cryptography-based solution, although not sure if there is a feasible one.

comment 6y ago · link · parent

Does the API not give timing info for parts of the route like the website does? If it does, then they could just query for first stop to last stop and infer all subtrips.

Also given they seem to own the buses, they could give the drivers a rooted Android phone and get the data by reading the memory (or network traffic after reading the TLS key from memory) of their running instance of Google Maps that they are using to drive, which should be undetectable by Google.

comment 6y ago · link · parent

If done properly (i.e. everyone except law enforcement, medical, utility and delivery workers stays home, with military/police enforcement, then everyone who did not stay home is tested multiple times) eradication is possible in a month.

Unfortunately we found out that almost the whole world, with some possible exceptions, has leadership that is either incompetent or has other incentives, so we will probably have to wait for a vaccine for a full return to normal life.

comment 6y ago · link · parent

You can just change the user for every query.

comment 6y ago · link · parent

It's just a form of guided meditation where you focus your attention on the practitioner's touch, so it does exactly what meditation does (which is potentially relaxation, reduction in anxiety, reduction in pain perception, improvement of mental health).

The claims that it cures specific non-mental ailments are of course bullshit, but the meditation part is real, although you can get the same effect from any other meditative practice.

comment 6y ago · link · parent

Not a good idea to use 9 to 11 digit long IDs with no password requirement by default; they should have used at least 128-bit random ids, i.e. 21 character long base64-encoded strings.

comment 6y ago · link · parent

glibc and bash are needed to have a traditional Unix-like Linux-based system and I don't think they have any fully compatible replacements (musl and BSD sh aren't).

comment 6y ago · link · parent

When Compiz came out about several years ago this kind of thing was all the rage.
1
272829
51