luchs | 9 years ago | on: BSD socket API revamp
luchs's comments
luchs | 9 years ago | on: BSD socket API revamp
luchs | 9 years ago | on: Dd is not a disk writing tool (2015)
For NVMe disks on Linux, you can find out this size with the nvme-cli [0] tool. Use "nvme id-ctrl" to find the Maximum Data Transfer Size (MDTS) in disk (LBA) blocks and "nvme id-ns" to find the LBA Data Size (LBADS). The value is then 2^MDTS * 2^LBADS byte.
For example, the Intel SSD 450 can transfer 32 blocks of 4096 byte per NVMe command, so you'd want a block size of 128 kiB.
luchs | 9 years ago | on: Votebook – A proposal for a blockchain-based electronic voting system [pdf]
For example, chipTAN is commonly used in Germany to verify online banking. You have to trust the chip on the banking card and the card reader, but not your computer, network connection, or your smartphone.
A similar device may also work for online voting. The hardware would be simple enough to audit it. Your computer would never learn the vote.
luchs | 9 years ago | on: Show HN: Alter – convert text/code to an image
luchs | 9 years ago | on: Show HN: Your Social Media Fingerprint (maybe NSFW)
The interesting thing here is that third-party cookies usually allow a central site (e.g. an ad server) to track a user across many other sites. It's almost the other way around here: "other sites" can track status on a "central site".
luchs | 9 years ago | on: Google HTML/CSS Style Guide – Omit Optional Tags
luchs | 9 years ago
Maybe some ISPs will implement the Port Control Protocol [1] at some point, which would allow port forwarding with the DS-Lite NATs.
luchs | 9 years ago | on: A Critique of Rust's `std::collections`
No, a hash function is just any function which can be used to put values into a hash map. If your inputs are numbers, modulo will work fine as a hash function, but is obviously not one-way.
>Cryptographic Hashes should NEVER collide, on any inputs, ever, period.
This is obviously not possible, as the output of the cryptographic hash function is of fixed-length while the input is variable-length. Finding collision just needs to be hard, not impossible.
luchs | 9 years ago | on: Release of Infinity for Game Boy Color in Unfinished Form
luchs | 9 years ago | on: Playability Test of 100 Humble Bundle Games on Linux
luchs | 9 years ago | on: How Humble Bundle stops online fraud
luchs | 9 years ago | on: Gimp 2.9.4 Released
Qt 5 gets this right. The only frustrating thing there is how many applications still use Qt 4… (same applies to GTK 2, I guess)
luchs | 9 years ago | on: Why You Should Try tmux Instead of screen
luchs | 9 years ago | on: How the Windows Subsystem for Linux Redirects Syscalls
Is there a list of these syscalls somewhere? It would be cool to check it against the recent Linux API compatibility paper [0, 1].
[0]: http://oscar.cs.stonybrook.edu/api-compat-study/ [1]: http://www.oscar.cs.stonybrook.edu/papers/files/syspop16.pdf
luchs | 9 years ago | on: RCP 11 – Stream data type proposal for Redis
The browser handles the log position for you (via the id field and the Last-Event-ID header) and automatically reconnects when the server closes the stream or the connection is lost.
The proposed Redis API seems to fit extremely well to this model. My previous usage of EventSource with Redis worked by sending the entire state whenever someone (re-)connects and using PubSub afterwards. This works well for me, but likely doesn't scale very well.
luchs | 9 years ago | on: Rdedup – backup deduplication with asymetric encryption (in Rust)
luchs | 9 years ago | on: Craig Wright Is Not Satoshi Nakamoto
luchs | 10 years ago | on: TorFlow
luchs | 10 years ago | on: Why London Underground stopped people walking up the escalators
While it's possible to use IPv6 sockets for IPv4 connections, this doesn't cover all use-cases. For example, you can't do IPv4 broadcast with an IPv6 socket. Additionally, as most examples are written for the classic IPv4 API, that's what everyone uses per default. Later on, when people complain about missing IPv6 support, they are turned down because it's a ton of work to change.