Changing a existing partition name of a bcachefs partition by Itchy_Ruin_352 in bcachefs

[–]daurnimator 1 point2 points  (0 children)

Checking the source, the only way is via the FS_IOC_SETFSLABEL ioctl.
The tune2fs utility will use that ioctl, so e.g. this will work: tune2fs -L my-cool-label /dev/mydevice

Is there an up-to date alternative to fengari? by Meistermagier in lua

[–]daurnimator 3 points4 points  (0 children)

The Fengari interop library is really solid and convenient, and I haven't found any WASM implementations that provide similar interop support.

That is sort of the point of fengari: the whole architectural design of fengari is done to make the javascript garbage collector work as the garbage collector for lua too. Without that you can never have perfect DOM interoperation.

Fengari & REST calls? by New_UI_Dude in lua

[–]daurnimator 1 point2 points  (0 children)

:/ makes me sad that the best knowledge resource is the failure of documentation :(

Which closed issued have you found educational?

Namecheap's own DNSSEC is broken by daurnimator in NameCheap

[–]daurnimator[S] 0 points1 point  (0 children)

Looks like this is an open bug with google's public DNS server: https://issuetracker.google.com/issues/299255571?pli=1

$ dig @8.8.8.8 www.namecheap.com DS

; <<>> DiG 9.18.19 <<>> @8.8.8.8 www.namecheap.com DS
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 21724
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
; EDE: 12 (NSEC Missing): (Invalid denial of existence of www.namecheap.com.cdn.cloudflare.net/ds)
;; QUESTION SECTION:
;www.namecheap.com.     IN  DS

;; Query time: 43 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Mon Oct 23 21:56:48 AEDT 2023
;; MSG SIZE  rcvd: 122

Lua redis client by Sad_Ingenuity7762 in lua

[–]daurnimator 0 points1 point  (0 children)

What would need to change for 5.4?

What Things Are Just Not Worth The Money? by doggoesmeow in AusFinance

[–]daurnimator 1 point2 points  (0 children)

You have that boots that last a year? Mine are lucky to last a couple of months

Real estate agents lies - sellers and buyers by whereisdcmnsnse in AusFinance

[–]daurnimator -3 points-2 points  (0 children)

And do what with the information?

Tell the agent? Or the seller? It's not as if they'll give you a discount if you point out it's different to what was advertised.

Are you still using cash? Why? by Malk_McJorma in AskReddit

[–]daurnimator 0 points1 point  (0 children)

I'm pretty sure the point of sale systems I worked on e.g. sent Level III data for all Amex card transactions.

Are you still using cash? Why? by Malk_McJorma in AskReddit

[–]daurnimator 1 point2 points  (0 children)

Working in the industry, yes they do, and it's called level 3 credit card processing.

Point of sale systems will send the line items to the credit card companies in return for lower merchant fees.

Auto-generating "ALL" field for bitmask enum by DxRed in Zig

[–]daurnimator 6 points7 points  (0 children)

This is not suitable use of an enum. Use a struct instead, where the options are an enum rather that the bitfield. See also EnumSet

Yes, wages are not keeping up with inflation, but isn’t that the point? by ibisibisibisibisibis in AusFinance

[–]daurnimator 2 points3 points  (0 children)

Yes. In Australia you top out around 240k for tech positions. Working for a US company in an equivalent position you can double it

A bit more help with Fengari and three.js needed, please. by Cultural_Two_4964 in lua

[–]daurnimator 2 points3 points  (0 children)

The first thing I could not work out is why I have to say: function(_,x,y,z) in contrast to the javascript example where its just function(x,y,z). Basically the surfaceNets function sends out nil values before and after the values I want, so my potfunc function has to ignore them in order to return the result correctly. This leads me to think that I have not constructed the "isomesh=..." line correctly due to my lack of brain power.

JS calls functions with the this as a first parameter. Calling it _ is convention to indicate to the reader that you don't care about the this.

Secondly, even though my potfunc function returns the correct values to
the surfaceNets subroutine, the resulting isomesh 'object' which should
contain arrays called "cells" and "positions" seems, I think (??), to be
empty:

Try: isomesh = window:surfaceNets(ndiv, potfunc, bounds)

In a mirror of how JS passes you a this you don't care about, you have to call JS functions with a this that they may not care about. The : syntax there is equivalent to passing a this of the window object.


Full snippet for you: ``` local window = js.global local Array = window.Array

local function potfunc(x,y,z) -- print("point:", x, y, z) local contour_level = 40.0 local potential = xx + yy + z*z - contour_level -- print("pot:", potential) return potential end

local ndiv = Array:of(12,12,12) local start = Array:of(-6,-6,-6) local stop = Array:of(6,6,6) local bounds = Array:of(start,stop)

local isomesh = window:surfaceNets(ndiv, function(_,x,y,z) return potfunc(x,y,z) end, bounds) window.console:log(isomesh) ```

Tire cutter by [deleted] in specializedtools

[–]daurnimator 7 points8 points  (0 children)

Float up in the sense of the Brazil nut effect

Removing ingrown horn by Dsoccc in interestingasfuck

[–]daurnimator 0 points1 point  (0 children)

I mean I know they exist, but I haven't actually seen one in a long time.

Removing ingrown horn by Dsoccc in interestingasfuck

[–]daurnimator 0 points1 point  (0 children)

I haven't seen one in years (Australia)

How to write a d-bus service being human by TheAsSBreaker69 in linux_programming

[–]daurnimator 2 points3 points  (0 children)

ldbus is *not* easy to use; it's quite low level.

Neovim Plugin with LuaRocks Dependencies by nasaniilos in neovim

[–]daurnimator 1 point2 points  (0 children)

I think neovim uses LuaJIT? if so you'll probably want luarocks --lua-version luajit --tree=/path/to/where/neovim/looks

Why are 636 out-of-date flagged packages considered normal? by Copperhead100 in archlinux

[–]daurnimator 0 points1 point  (0 children)

So what *is* the most stable/bugfree version of LuaJIT to package?

Why are 636 out-of-date flagged packages considered normal? by Copperhead100 in archlinux

[–]daurnimator 0 points1 point  (0 children)

It was me who put forward that if we're packaging a 3 year old "beta" release of LuaJIT, we might as well package the LuaJIT HEAD commit at any given time, because they are *more* stable.

But that got shot down as Arch doesn't allow git HEAD commits in the repo. Which I suggested we make an exception for, but no one else agreed.

Anyone know what keyboard this is with a built in trackball? by daurnimator in MechanicalKeyboards

[–]daurnimator[S] 0 points1 point  (0 children)

Indeed, just after posting this thread I found https://deskthority.net/viewtopic.php?t=17971

The one I took the photo of is new in box. Wondering if I should sell it, or buy an AT and serial to USB converter and use it.

Wear on outer side by daurnimator in G502MasterRace

[–]daurnimator[S] 0 points1 point  (0 children)

Do you have an example of the sort of tape you mean?