Better HN
topnewbestaskshowjobs
Log inSign up

timando

84 karma · joined Aug 24, 2021 (5y ago) · 59 submissions

Submissions

comment 4y ago · link · parent

Are those dice fair?

comment 4y ago · link · parent

Now try with an SSH session open

comment 4y ago · link · parent

It might be that your device is also delaying the video by 150-300ms so it matches with the delayed BT audio.

comment 4y ago · link · parent

80dB times 30 equals 94.7dB. I imagine the fact that the motorcycles are spread out would affect it somewhat.

comment 4y ago · link · parent

Probably because that commenter just made it up.

comment 4y ago · link · parent

lazy loading images is only enabled when javascript is enabled because the assumption is that if you disable javascript, you don't want to be tracked and lazy loading images can track how far you scroll down.

comment 4y ago · link · parent

> nobody knows where to send a message until you setup your MX records

Not quite. RFC 974 says It is possible that the list of MXs in the response to the query will be empty. This is a special case. If the list is empty, mailers should treat it as if it contained one RR, an MX RR with a preference value of 0, and a host name of REMOTE. (I.e., REMOTE is its only MX). In addition, the mailer should do no further processing on the list, but should attempt to deliver the message to REMOTE.

comment 4y ago · link · parent

I imagine the 50 files have meaningful names. Just kidding, no-one knows how to name anything.

comment 4y ago · link · parent

Put a cookies.txt (or json or xml or whatever) at the root of the website (or use a <link> element) with the name of the cookie and what it does. If the cookie isn't listed, the browser rejects it.

comment 4y ago · link · parent

> And don’t design your CLI accounting app like this: > show-transactions --minimum-amount 32

I'd argue that it's fine if the accounting app is never going to handle multiple currencies.

comment 4y ago · link · parent

The retry-after header is documented as being in seconds (or a date). https://httpwg.org/specs/rfc7231.html#header.retry-after

comment 4y ago · link · parent

> now you don't want a DB user per end user.

`RESET ROLE; SET ROLE app_username;` could be done for each query / transaction / when fetching the connection from the pool.

comment 4y ago · link · parent

I wanted this to be a barcode scanning API where a web app can use the camera to scan a barcode without being able to see anything else in the image.

comment 4y ago · link · parent

Ads targeted based on the content they are placed next to don't need to track anybody. While they might be annoying (i.e. take up space / time) they don't have any privacy concerns.

comment 4y ago · link · parent

How would you classify dnsmasq?

comment 4y ago · link · parent

Replication works across the whole instance. I'm working on a PBX that uses two PostgreSQL instances: 1 for configuration, 1 for call logs. I can replicate the configuration database everywhere and only keep 1 copy of the call logs database.

comment 4y ago · link · parent

You don't lose data on a clean restart.

comment 4y ago · link · parent

Intel discontinued Optane for consumers.

comment 4y ago · link · parent

It's not O(1), it's O(number of gigabytes of table). A DROP TABLE statement has to delete the files backing the table and tables are split into files of 1 gigabyte each.

comment 4y ago · link · parent

maybe the car has gained the ability to comment here.

comment 4y ago · link · parent

A BRIN index is basically a minimum and maximum value in the indexed column for each megabyte of table.

comment 4y ago · link · parent

Why does PostgreSQL include LISTEN/NOTIFY if I'm not supposed to use it for events?

comment 4y ago · link · parent

Is it possible to configure my computer to run on TAI and then use the timezone to say that I'm TAI+10:00:37. When a leap second happens, treat it as a DST transition.

comment 4y ago · link · parent

What about Comic Sans?

comment 5y ago · link · parent

Return a new builder that has the changes applied.

comment 5y ago · link · parent

I wonder if you could use this to tell programming languages apart.

comment 5y ago · link · parent

When your baseline is 0.1x developers, a normal developer can be a 10x developer.

comment 5y ago · link · parent

I created a PostgreSQL function to generate a v7 uuid. On my laptop, it is about the same speed as generate_random_uuid

    CREATE OR REPLACE FUNCTION public.new_uuid_v7ish3()
     RETURNS uuid
     LANGUAGE sql
    AS $function$
    SELECT (
        lpad(
            to_hex(
               (
                   (((extract('epoch' from clock_timestamp()) * 4096) )::bigint << (64-36-12)) --36 bit seconds and 12 bit 4096th of a second
                   | (7::bigint << (64-36-12-4)) --Version 7
                   | (random() * 4096)::bigint --12 bit "sequence number"
               )
            ),
        16,'0')
        ||lpad(
            to_hex(
                (2::bigint << 62) --Variant
                + ((random() * x'4000'::bigint)::bigint << 48) --14 bits of randomness
                + ((random() * x'1000000000000'::bigint)::bigint) --48 bits of randomness
            ),
            16,'0'
        )
    )::uuid
    $function$

comment 5y ago · link · parent

Switch tabs and then switch back.
12