Better HN
topnewbestaskshowjobs
Log inSign up

nagisa

482 karma · joined Feb 25, 2012 (14y ago) · 152 submissions

hackernews at kazlauskas.me
Submissions

comment 3d ago · link · parent

I recently had this same problem with a multigig copper SFP+ module. These SFP+ modules (usually) advertise 10Gbps to the NIC they're plugged in, but will negotiate lower speeds on the copper side. So when NIC tries to send to SFP+ at higher rate than whatever speed SFP+ has negotiated internally, the SFP+ module will just drop a bunch of packets and incur a significant hit in throughput.

These tend to not support sending pause frames to its SFP+ side either, so the best option I found was to set bandwidth limit on the NIC…

comment 4mo ago · link · parent

There are a couple built-in ways you can translate, all of them fully local. First is the full page translation and another that allows you to translate a selection (from the context menu.) Fully local nature, of course, reduces the translation capabilities, but I found the quality to be good enough to very rarely need an external service.

comment 4mo ago · link · parent

Some parts of the website are explicitly login-only, yes. I sometimes tend to follow link to gh from my mail on phone where I'm not logged in and found that e.g. you can't see any CI results without logging in.

comment 7mo ago · link · parent

More renewables and batteries so that gas generators wouldn't have any leftover capacity to bid for.

comment 8mo ago · link · parent

I imagine Ubiquiti (unifi) is really happy with how this is going.

comment 8mo ago · link · parent

I was going to say that this is an unfortunate side-effect of how electricity is being priced in the market but I learned today that Iberian is not participating in the nordpool. Nordpool has this weird pricing model that pays every generator the price of the most expensive one that supplies the last watt of demand.

Regardless and despite this nordpool weirdness; with some rooftop & batteries I haven't been paying a cent for electricity outside of January so I don't need to care about prices in the market much at all.

I make a point to have my direct energy use be electric (e.g. for driving) so the recent jump in the pricing of molecules affects me relatively little. Unfortunately I don't have much say in indirect energy use (as used for food production) but I believe that people are rational and will figure they can do what I did sooner or later.

comment 8mo ago · link · parent

Senn HD 490 PRO is an amazing and extremely comfortable headphone that has very affordable 1st party replacement parts (pads, cables) to boot. These are the first ones I've been happy with from day one. But they are wired & open back.

comment 8mo ago · link · parent

The humanity has all the knowledge and tools it needs at this point to have anybody: individual persons, counties, countries, continents be much more self-sufficient in energy, in a way that makes economic (and all sorts of other) sense.

I am glad to personally be largely independent of molecule-sourced energy March to October. Hoping that the countries affected by oil instability take this as an opportunity to learn this lesson as well.

comment 8mo ago · link · parent

Air has no thermal connection to the chassis for the purpose of making it safe to have in contact with skin.

People have been modding theirs to make this contact, though. And been getting a significant performance boost out of it.

comment 9mo ago · link · parent

Doesn't YMTC focus on NAND (i.e. flash storage) rather than DRAM? Regardless, point stands.

comment 10mo ago · link · parent

CXMT (dram) and YMTC (nand).

comment 10mo ago · link · parent

MBP never goes into proper sleep.

I got one from work that I don't use much outside of travel and haven't changed in any way past initial setup. It stays connected to WiFi and continuously broadcasts various discovery packets for the past month and a half since I last opened it up.

comment 10mo ago · link · parent

Its weird to read about Schneider Electric not bothering with brand awareness. They aren't a household brand, sure, but they are well up there with Siemens and the like in industrial/b2b sector and their marketing budget is allocated accordingly.

comment 10mo ago · link · parent

This superloop pattern can also appear in more abstract scenarios as well.

The wildly popular ESPHome is also driven by a superloop. On every iteration the main loop will call an update handler for each component which then is supposed to check if the timers have elapsed, if there is some data coming from a sensor, etc before doing actual work.

This pattern brings with it loads of pitfalls. No component ought to do more than a "tick" worth of work or they can start interfering with other components who expect to be updated at some baseline frequency. Taking too long in any one component can result in serial buffers overrunning in another component, for example.

comment 11mo ago · link · parent

In my homelab I've been using very barebones options (the one built into systemd-networkd as well as the dhcp server built into RouterOS) and never found myself needing a web interface, a database or anything… really. It has been sufficient to add the couple dozen static allocations to the configuration files and forget DHCP exists. Even HA is not something I found myself wanting as nodes will retain their lease well over the period of downtime incurred during botched upgrades.

How fancy does a network needs to be before this starts making sense? Who are the target audience for this project?

comment 11mo ago · link · parent

I always buy the cheapest PWM fans available in a nearby store (so usually Arctic) and I never had one fan fail on me in my life.

They almost never run 100%, though, and I have a recurring task set up to clean dust outta my filters, computers and servers.

comment 1y ago · link · parent

The title qualifies "Android TV" with a "Streaming Box" right after. Lots of service providers supply such a box to subscribers (similarly to how ISPs provide all-in-one firewall-router-modems.) Even then these are extremely cheaply made, underpowered and largely unmaintained internet connected devices. And indeed you can purchase one such box yourself (including with piracy features as described here,) but I'd be surprised if the vast majority of these devices aren't supplied by the service providers.

comment 1y ago · link · parent

I would say that npm likely has easier solutions here compared to Cargo.

Well before the npm attacks were a thing, we within the Rust project, have discussed a lot of using wasm sandboxing for build-time code execution (and also precompiled wasm for procedural macros, but that's its own thing.) However the way build scripts are used in the Rust ecosystem makes it quite difficult enforce sandbox while also enabling packages to build foreign code (C, C++ invoke make, cmake, etc.) The sandbox could still expose methods to e.g. "run the C compiler" to the build scripts, but once that's done they have an arbitrary access to a very non-trivial piece of code running in a privileged environment.

Whereas for Javascript rarely does a package invoke anything but other javascript code during the build time. Introduce a stringent sandbox for that code (kinda deno style perhaps?) and a large majority of the packages are suddenly safe by default.

comment 1y ago · link · parent

The options in the '70s were much different from those of today. And for France specifically what they have underground (lots of uranium, no oil, no gas & no coal) strongly suggested exactly one way forward.

comment 1y ago · link · parent

If you have no idea how to do the thing, isn't reading about how others did the thing doing the thing?

comment 1y ago · link · parent

Back when I had my own Xmonad config – during student years with too much time than I knew what to do with – the biggest benefit to Xmonad being a haskell program that I myself wrote was that it was a program that I myself wrote.

This meant that instead of e.g. spawning some utility on a media key input, the compositor could directly stay connected to the dbus and control mpdris clients directly.

The way I see xmonad in retrospective today is that it is/was a "make your own compositor" library much like wlroots, smithay, etc, but it came with enough of the batteries included in the package that spinning up a nice and productive environment took barely any code. Something you can't really do with wlroots or similar.

comment 1y ago · link · parent

They already charge that and more if you have to check-in at the airport for any reason. And you cannot check-in online without making an account with them. Ryanair is grift squared.

That said I never had problems boarding with a PDF displayed on the phone screen. Unfortunate that they're going away.

comment 1y ago · link · parent

TOTP works with vaultwarden.

comment 1y ago · link · parent

A border router is not necessary in a typical installation! Its something you only need if you want to do fancy things. Otherwise a commissioner is sufficient (to bring the device onto the network.)

That said, it is entirely up to you how you would configure the system that the thread border router connects to. Thread specification uses local addresses for the thread devices, so in order for these devices to get access out into the public internet you would need to NAT the IPv6 pretty much (or the devices would have to be smart enough to figure out a globally routable IP address, via e.g. DHCP.) At the same time since it is all bog-standard IPv6, you also get full control with firewall rules, NAT/forwarding and such.

Overall you'd need either a very unusual device or a major misconfiguration off the beaten path to get thread devices talking on the public internet.

comment 1y ago · link · parent

I suspect what they are alluding to is the perverse incentives that materialize when the market does not have an ability to adapt to real costs incurred based on the relative location between generators and consumers.

Food is a bad counter example here, as retailers are not prevented from adjusting their prices the further away you choose to live off major population hubs. OTOH electricity in many cases costs the same in the entire country (incl. UK.) This means that energy consumers are not incentivized by these expenses to consider the real costs of the grid. They will rather build a new factory/etc close to London where they might expect to have access to better workforce pool instead of in Scotland right next to the overproducing turbines.

NIMBYism against new grid infrastructure would also largely disappear overnight if the market actually made economic incentives (in a form of reduced electricity prices/fees) for people to accept infrastructure bringing that electricity to them. The way things stand today – when electricity costs the same to everybody in the country – of course you wouldn't want any works in your vicinity.

comment 1y ago · link · parent

No, this is not really tied to whom you purchased the Pixel from. But it is tied to which carriers would sell you a Pixel at all. Meaning they have some sort of an agreement with Google and Google added configuration files whitelisting these features for the carrier in question.

(At least for many EU based carriers.)

comment 1y ago · link · parent

Been using sway for many years before moving to niri last year.

Outside of the fundamental window management differences, I find that a lot of stuff with niri is easier to make work, or just happens to work out of the box. Screen sharing with sway was always a problem for me[1], whereas for niri it works great (incl. sharing individual windows only[2].) I also found that niri is much better at letting hardware go to sleep (which saves 10W on my GPU.)

[1]: https://github.com/swaywm/sway/issues/7898 etc.

[2]: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3864

comment 1y ago · link · parent

While I don't have any suggestions on how to look at the relevant metrics, a big part of the issue is the parts selection and having them power off properly.

1%/h is just 0.5W (for a 50Wh battery) which isn't a lot, but fail to bring a component or two to shutdown or sufficiently low power state and you'll observe exactly this behaviour. Of course some drain is going to be almost inevitable just to keep memory contents sufficiently refreshed, but with proper power-saving states memory can go appreciably below 0.5W.

comment 1y ago · link · parent

How would one learn to be a marketable AI dev/researcher if not playing with the ecosystem/tooling on a consumer hardware? If nobody is exploring AI at home, the influx of fresh minds ceases, the development of the field slows down or stops entirely, market gets disillusioned and the field eventually disappears.

comment 1y ago · link · parent

That's because with 32-bit addresses the runtime did not need to do any masking at all. It could allocate a 4GiB area of virtual memory, set up page permissions as appropriate and all memory accesses would be hardware checked without any additional work. Well that, and a special SIGSEGV/SIGBUS handler to generate a trap to the embedder.

With 64-bit addresses, and the requirements for how invalid memory accesses should work, this is no longer possible. AND-masking does not really allow for producing the necessary traps for invalid accesses. So every one now needs some conditional before to validate that this access is in-bounds. The addresses cannot be trivially offset either as they can wrap-around (and/or accidentally hit some other mapping.)

123456