<joepie91>
instead, I spent 2 hours hunting down controller issues
<joepie91>
no actual game was played
<joepie91>
I... don't even think I can blame Linux for this one
<samueldr>
having a console might not have helped if you kept it offline rather than play regularly, imagine the multiple updates you'd have to go through!
<lovesegfault>
gchristensen: They really are amazing machines
<lovesegfault>
Hers has these decorative stitches
<lovesegfault>
It can stitch crocodiles!
<joepie91>
samueldr: in this case it seems to be a weird issue with Borderlands 2
<samueldr>
joepie91: if it's done through steam, did you try going through big picture mode so it does some shenanigans with the controllers?
<samueldr>
not sure how it is now... more than a year since the last time I looked at that
<joepie91>
it also flips out on certain menus, as if I'm repeatedly pressing up and down, but I've confirmed that no such thing is happening
<joepie91>
but it continues interpreting it wrong
<joepie91>
samueldr: not Steam
<joepie91>
I've triple-checked and my analog stick mapping really is correct
<samueldr>
ps3 controllers?
<joepie91>
using a generic PS2 controller USB clone, a dragonrise/microntek thingem
<samueldr>
or maybe gyros on another kind of controllers can do the same weird thing
<samueldr>
ah, not likely then
<joepie91>
<.<
<joepie91>
the kind that works in everything EXCEPT FOR BORDERLANDS 2 APPARENTLY
<samueldr>
ps3 gyros can get messy quickly
<joepie91>
samueldr: I mean, I've looked at evtest output
<joepie91>
unplugged every other USB device
<joepie91>
I am pretty convinced there are no ghost inputs :P
<samueldr>
yeah, sorry, I was sharing other fun stuff I faced :D
<joepie91>
I have actually had a similar issue before
<joepie91>
with an IR receiver for a remote
<joepie91>
which would keep sending some sort of keypress
<joepie91>
but it's not currently attached, and that one showed up in debug output
<joepie91>
and Borderlands 2 doesn't play ball with non-XBOX360 controllers anyway :P
<joepie91>
I had to emulate one via xboxdrv to get it to recognize anything at all
<samueldr>
yeah, xinput is kinda annoying
<samueldr>
that's what I *think* big picture did as shenanigans at some point
<samueldr>
intercept all controllers and present them as xinput devices
<joepie91>
nono xinput works fine
<joepie91>
the problem is that Borderlands 2 says "fuck you, standard controller API, I'm gonna talk to XBOX360 controllers only"
<samueldr>
uh, that's what I mean here, xinput the xbox 360 API for controllers
<samueldr>
or maybe I'm wrong on its name
<joepie91>
(this is a problem on both Windows and Linux, and it's where the need for emulation comes from)
<joepie91>
you're probably thinking of DirectInput
<joepie91>
I am confusing it with something else I think
<samueldr>
I just realised that xinput could be a name for something else too
<joepie91>
whatever, too many knots to untangle :D
<samueldr>
since X and input...
<joepie91>
yeah that is how I interpreted it
<joepie91>
because afaik that is xinput also
<samueldr>
though "xinput controller" is something that you can see with non-xbox controllers so they react like those ones
<joepie91>
this is presumably what the "xbox mode" switch on some controllers is for
<joepie91>
unrelated: I wonder if one could type out text with a gamepad... reasonably...
<cole-h>
So... any ZFS masters know why I can't mount a newly-created fs at /var/lib/libvirt/images? I get `filesystem 'rpool/system/var/lib/libvirt/images' cannot be mounted at '/var/lib/libvirt/images' due to canonicalization error 2.`
<cole-h>
Oh
<cole-h>
Um
<cole-h>
Well, it's probably because the directory I was trying to mount to didn't exist.
<cole-h>
Probably. I can't be certain. (JK that was definitely it)
<joepie91>
in fairness, that is a useless error
<joepie91>
fuck's a "canonicalization error 2"
<joepie91>
heh
<joepie91>
hmm... I think I could actually turn a gamepad into a keyboard...
<gchristensen>
2 is errno
drakonis1 has joined #nixos-chat
<lovesegfault>
Ugh, error: cannot connect to 'nix-ssh@147.75.47.54'
<samueldr>
joepie91: there was a scheme which uses both joysticks which I believe could have worked quite well for e.g. in-game input, but haven't seen anything like what I remember recently
<samueldr>
it worked on a grid of 9x9, with I think the middle ignored, using both joysticks
<pie_>
apparently there was a 10 year window in history where hard drives were actually reliable
Emantor has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis1 has quit [Ping timeout: 260 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
<joepie91>
samueldr: yeah that is what I'm thinking of, this is similar to the scheme that eg. DSOrganizer used to make input on a DS touchscreen bearable
<joepie91>
you touch a box on a grid and then swipe the stylus away in a particular direction to select a letter from that box
<joepie91>
reducing the need for accurate touches
<joepie91>
it was super pleasant to work with, given the constraints
<samueldr>
talk from last nixcon that is about NGI0, one of the grants being currently handled by nlnet
ajs124 has quit [Quit: killed]
das_j has quit [Quit: killed]
ajs124 has joined #nixos-chat
das_j has joined #nixos-chat
betawaffle has quit [Ping timeout: 246 seconds]
liszt has quit [Read error: Connection reset by peer]
peel has joined #nixos-chat
betawaffle has joined #nixos-chat
liszt has joined #nixos-chat
emilazy has joined #nixos-chat
Guest42512 is now known as JJJollyjim
hoverbear has joined #nixos-chat
c74d has joined #nixos-chat
drakonis_ has quit [Ping timeout: 258 seconds]
drakonis has quit [Quit: WeeChat 2.8]
cole-h has quit [Ping timeout: 240 seconds]
cole-h has joined #nixos-chat
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos-chat
cole-h has quit [Client Quit]
endformationage has quit [Quit: WeeChat 2.6]
FRidh has joined #nixos-chat
<pie_>
i have enough free ram and yet somehow my machine is still infuriatingly unresponsive when switching applications of desktops
<pie_>
or some other things
<pie_>
root on zfs has to be involved somehow
<hoverbear>
:(
<c74d>
I have root on ZFS and my Vim often takes like a minute to open some small shell script in the store... but I imagine that's the fault of my overdone Vim configuration and not ZFS
<c74d>
actually that happens whether my vimrc is there or not so I dunno what it's doing
<lovesegfault>
ZFS does have some annoying issues
<lovesegfault>
Like, git is noticeably slower than XFS with LUKS
<pie_>
gscan2pdf is good
<pie_>
it is also very bad
<pie_>
ask me how i know
<DigitalKiwi>
the only time i had significant problems with zfs was when i unknowingly had sync=always
<DigitalKiwi>
nix-collect-garbage would take like 30 minutes heh
hoverbear has quit [Quit: Connection closed]
<elvishjerricco>
I didn't notice any perf difference when I switched from ext4+LUKS to ZFS+LUKS, but that was on an NVMe disk. When I set up a server with raidz2+LUKS on six spinning disks, man that felt slow... But I attributed that to using spinning disks, not ZFS.
parsley936 has joined #nixos-chat
<eyJhb>
MichaelRaskin: Do you some configs for your nsjail? And do you just have a common chroot, or how do you manage?
<MichaelRaskin>
eyJhb: nsjail command-line is generated on the fly (by some Common Lisp code)
<eyJhb>
(in the mists of making a NixOS module for nsjail, which will autocreate chroots with only the needed paths etc.)
<eyJhb>
Hmm... How does it look, if you can show it?
<eyJhb>
Considered doing that as well, but there is a possibility to expoit some binaires in there to get root :/
<MichaelRaskin>
Wait, how?
<MichaelRaskin>
It is just store, not setuid wrappers
<MichaelRaskin>
The outside UIDs corresponding to the in-jail UIDs are sequentially generated
<eyJhb>
THat might be true actually, I just assumed that e.g. sudo would be in there with setuid. But either way, always good to minimise surface
<MichaelRaskin>
No-no, no setuid
<MichaelRaskin>
I think if you can do store enumeration, you can just as well do JIT-like preparation of whatever code you want
<MichaelRaskin>
I might eventually try a store with permissions prohibiting enumeration, but not yet
<MichaelRaskin>
The fun stuff is managing /dev
<MichaelRaskin>
Some programs get real dev (without permissions to actually use it, maybe), and then there is ACL to actually allow access to DRI/ALSA/webcam/…
<MichaelRaskin>
And of course there is a question which normal paths to mount
<eyJhb>
But you chroot to /?
<MichaelRaskin>
No
<eyJhb>
Ahh I see now
<MichaelRaskin>
nsjail just puts what it is told to put into a fresh small tmpfs
<eyJhb>
But yes, there is a lot to manage
<MichaelRaskin>
Well, a lot of it is write-once-use-forever
<MichaelRaskin>
But this write-once is kind of helped by the fact I am writing wrappers comfortable for me
<MichaelRaskin>
Not something I can document in ten lines
<eyJhb>
There is the fun part, of dirs actually needing to exist when bind mounting as wel
<MichaelRaskin>
You mean outside? nsjail creates dirs inside
<eyJhb>
Oh that is true
<eyJhb>
It is because it is r/o
<eyJhb>
Maybe I can get 3/3 wrong
<MichaelRaskin>
Then I end up with shell wrappers like @sub ,stdout, ,path-nix,audacity ,alsa, ,lisp-arg,:fake-passwd:t ,mount,b\"/var/tmp\" sh -c 'mkdir -p ~/.local/share ~/.audacity_files ~/.audacity_temp ~/.audacity-data; audacity' ,=HOME=/tmp "$@"
<eyJhb>
Hmm, makes sense. I am trying to make the chroots in the /nix/store, that I can use as a base and bindmount all the dirs into (only the needed /nix/store), and then all the other fun stuff with creating configuring the permissions
<eyJhb>
But my approach is to use the config file, else the command would be hella long
<eyJhb>
(when you mount individual /nix/store/<path>)
<MichaelRaskin>
Where I failed to do, is pivot_root stuff or something to let, i.e., Chromium use its namespace-based sandbox inside
<eyJhb>
(and yes it needs cleanup and there are some useless things in there)
<MichaelRaskin>
s/i.e./e.g./
<MichaelRaskin>
Oh, you use an actual nsjail config file
<MichaelRaskin>
I just escape the command line arguments
<MichaelRaskin>
(Mostly because I need to use this functionality anyway, for all my setup stuff like socat-based passing of only specific ports)
<eyJhb>
Yeah, I might as well use it for as many things as I can. The ideal scenario is the ability to create multiple nsjails in the nix configuration, which will create a chroot that can be used for each of them, with each their own config
<MichaelRaskin>
And yeah, I do not optimise store monuts so command is of finite length
<eyJhb>
How do you handle the nsjails accessing the X11 server?
<MichaelRaskin>
Give the the FS-located X11 socket and ACLs to access it
<eyJhb>
So, xhost +local: ?
<MichaelRaskin>
I do not actually run xhost, as far as I remember, but basically that
<eyJhb>
Want to find a better solution than that as well, because then I need to enable that in the wrapper script
<MichaelRaskin>
Yeah, unlike me you actually want this to fit in with NixOS
<eyJhb>
Yeah, but there is a line
<MichaelRaskin>
Hm?
<eyJhb>
I don't want to spend ALL my time on this, I just think it would be cool to have
lejonet has joined #nixos-chat
<eyJhb>
But you never got chromium to work with it MichaelRaskin ?
<MichaelRaskin>
I just say --no-sandbox
<eyJhb>
That is, somewhat scary
<MichaelRaskin>
Not really
<eyJhb>
So that means no sandboxing between tabs, etc.
<MichaelRaskin>
Single profile cross-leaks so much that I try to minimise number of sites in a single instance anyway
<MichaelRaskin>
And I mean, that's Chromium anyway
<eyJhb>
Lets see, I have the base NixOS options down now. Lets see if I can actually implement something
lejonet has quit [Ping timeout: 265 seconds]
lejonet has joined #nixos-chat
<ldlework>
What would the word be, for like taking a break from a think to take restock of it and reorient one's approach/strategy/take on a thing?
LnL has left #nixos-chat [#nixos-chat]
mog has quit [Ping timeout: 260 seconds]
mog has joined #nixos-chat
<manveru>
ldlework: reevaluate?
<ldlework>
thx
<MichaelRaskin>
Of course, reevaluate/reflect do not include the «break» part
<manveru>
reconsider, rethink?
<manveru>
i'd just say "taking time to reconsider" to make it obvious... but that's no word :|
<MichaelRaskin>
I think there is no highly-used word that incorporates «break» and «reflect» in one
<DigitalKiwi>
reassess
__monty__ has joined #nixos-chat
waleee-cl has joined #nixos-chat
leah2 has joined #nixos-chat
iqubic has quit [Ping timeout: 260 seconds]
<ldlework>
Ian Holm died
leah2 has quit [Ping timeout: 272 seconds]
<eyJhb>
What is a good way to test a module, in a nix-build kinda way, withoun embeding it into your config and use nixos-rebuild test ?
<MichaelRaskin>
nixos-rebuild build-vm with -I nixos-config=… ?
<eyJhb>
MichaelRaskin: that might work yes, lets see!
<MichaelRaskin>
There is also nixos-container or something, but the module is about namespacing so better be safe with VMs
rajivr has quit [Quit: Connection closed for inactivity]
leah2_ has joined #nixos-chat
leah2_ has quit [Ping timeout: 272 seconds]
FRidh has quit [Quit: Konversation terminated!]
leah2_ has joined #nixos-chat
mog has quit [Ping timeout: 264 seconds]
mog has joined #nixos-chat
leah2_ has quit [Ping timeout: 244 seconds]
hoverbear has joined #nixos-chat
avn has quit [Ping timeout: 256 seconds]
leah2_ has joined #nixos-chat
FRidh has joined #nixos-chat
leah2_ has quit [Ping timeout: 260 seconds]
leah2_ has joined #nixos-chat
avn has joined #nixos-chat
hoverbear has quit [Quit: Connection closed]
leah2_ is now known as leah2
averell has quit [Quit: .]
<gchristensen>
my grocery store still doesn't have any rice and beans
<gchristensen>
like, for nearly three months
<MichaelRaskin>
Ouch
<joepie91>
damn
<gchristensen>
in fact, they're about half way through shopping my $500 grocery order, and they've only been able to fulfill about $150 worth
<MichaelRaskin>
And beans — like _all_ beans out? (peas/lentils/…)
<etu>
Even dried beans? Sounds weird to me that those would be out since they can be stored forever.
<gchristensen>
etu: yup.
<gchristensen>
dry beans is how I still have beans
<MichaelRaskin>
Well, canned beans done right are also pretty close to forever-storable (but I assumed dried beans because why ask friends to carry water for you)
<joepie91>
only thing I've consistently had trouble obtaining, is dry yeast...
<gchristensen>
yeah. cheaper and denser
<joepie91>
most everything else has been available here just fine
<gchristensen>
it took us 2.5mo for us to be able to buy toilet paper :)
<MichaelRaskin>
Ouch
<joepie91>
damn
<joepie91>
there was briefly a run on toilet paper here
<MichaelRaskin>
Here in Bavaria, though, there are _still_ signs that only one pack per household
<joepie91>
but it's not been especially unobtainable
<joepie91>
the viral video of the toilet paper warehouse probably helped with that though :P
<MichaelRaskin>
I think there were runs here that cleaned the cheapest options in some shops for a large time-percentage of a week or two; one-household-one-pack is not true magic. But next step (maybe 3.5€ per ten rolls instead of 2.5 or 2.9?) was still available.
<joepie91>
yeah the cheapest ones disappeared here for a bit also
<MichaelRaskin>
joepie91: Soviet Union teaches us that production is the part that can be got right, getting to the warehouse is quite doable, and last mile is where you can easily get a mess out of nothing
<joepie91>
lol
<joepie91>
MichaelRaskin: haven't heard this interpretation before, is there a story behind that to read somewhere? :P
<MichaelRaskin>
The entire late USSR, I am afraid…
<joepie91>
well sure, but specifically this angle
<MichaelRaskin>
Well, if you read about late USSR then you will notice people are quite often in a huge line to buy something, because the supplies will not really last longer than this line
<MichaelRaskin>
If there is nothing to be had, there would be nothing to stand in line for!
<MichaelRaskin>
If the last-mile distribution part was anywhere close to working reasonably, the lines would not be epic multi-hour ones…
averell has joined #nixos-chat
cole-h has joined #nixos-chat
<MichaelRaskin>
There is an urban legend (that might be true or not) than in slightly less late USSR, in a small city one time one shop messed up having enough salt on the shelves. And for various reasons the list of things to stock up in case of a danger of a bad turn includes salt and matches and the next position is probably dried crops.
<MichaelRaskin>
No salt. Some locals panic and go buy some salt while they still can in the shops on other streets, which of course increases the number of shops suddenly without salt.
<MichaelRaskin>
When all the shops in the city have no salt, now you get real panic.
<MichaelRaskin>
Allegedely someone from the local administration asked for permission from regional coordinators, and, while the city is not out of _everything_ at once, just ordered a truck of salt unload on the central square. With a message along the lines of «we have no idea how to sell enough salt through the limited number of shops, and we decided it is cheaper to just give away a truck of salt»
<joepie91>
heh. a bankrun, but with salt.
<MichaelRaskin>
Which is indeed not that expensive, and projected confidence in reserves, and covered everyone who did not have a kilogram at home until the shops were recovering from the run.
<joepie91>
I guess that that's actually super similar to that viral TP video, heh :D
<MichaelRaskin>
Well, it's obviously more efficient
<MichaelRaskin>
Because it does cout out the bottleneck
<joepie91>
MichaelRaskin: I wonder how well just putting down a bucket with "throw your money in here when taking salt from the truck" would have worked
<MichaelRaskin>
Might have worked pretty well
<joepie91>
I mean, it works really well in low-traffic rural areas for a lot of things, but I don't know how well it would have held up under panic
<MichaelRaskin>
But they wanted the «we do not really care» optics
<joepie91>
(at least in NL, this is a common sales model for roadside vegetables, etc.)
<joepie91>
(in rural areas)
<joepie91>
right, makes sense
<MichaelRaskin>
Also they wanted the maximum possible throughput
<MichaelRaskin>
Here in Bavaria I think my bus passes by a flower field that runs on such rules
<joepie91>
wouldn't surprise me :) I think it's generally pretty common
<joepie91>
bicycle route stops here also commonly use it, they just have an open barn or whatever with a coffee machine on a table and a coin jar
<MichaelRaskin>
And newspapers even in Munich proper are sold via «drop coins here/pull paper here» with nothing that would be able to count coins
<joepie91>
unattended
<joepie91>
hah
<joepie91>
nice
<joepie91>
just realized I have a picture of one of those barns!
<MichaelRaskin>
That's a pretty large bicycle route stop!
<gchristensen>
$560 order checked out with $260 of food
<joepie91>
MichaelRaskin: yeah, it's a popular touristy route
<joepie91>
MichaelRaskin: there's also some other misc stuff attached, some beekeeping stuff, a small playground - I suspect that during high season it operates more like a 'real' cafe
<joepie91>
or well, a farm cafe sort of thing
<joepie91>
they sell fresh home-baked pastries too etc.
<joepie91>
I think it's one of the farms that pivoted to touristy stuff :P
parsley936 has quit [Remote host closed the connection]
parsley936 has joined #nixos-chat
<eyJhb>
Anybody used NVidia GeForce Now?
<eyJhb>
Oh god, I might have to disable my adblocker on my firewall/router...
<MichaelRaskin>
joepie91: if they have bees, did they fully pivot or just built some touristy stuff as a sales channel?
<MichaelRaskin>
eyJhb: impressive feat of routing firmware engineering!
<ashkitten>
eyJhb: what's geforce now
<joepie91>
MichaelRaskin: unclear, but the bees are part of the touristy setup
<gchristensen>
help I'm looking at ERP for my freezer
<MichaelRaskin>
ERP for freezer contents or ERP for freezer spare parts?
<gchristensen>
content
<MichaelRaskin>
That's… less scary
<samueldr>
gchristensen: they call it microsoft excel
* gchristensen
closes the tabs for barcode printers and scanners
jtojnar has quit [Quit: authenticating]
jtojnar has joined #nixos-chat
waleee-cl has quit [Quit: Connection closed for inactivity]
<bqv>
Bought my partner a pair of bone conducting headphones
<bqv>
Now she can bone conduct
<bqv>
(it works so well, its weird)
<cole-h>
More importantly, can she keep time? Bad conductors can't keep time.
<bqv>
:p
<__monty__>
Hard to keep time with all the ticket punching.
<joepie91>
gchristensen: a little bird told me that LibreOffice Base is actually worth using for this sort of thing
<joepie91>
(the MS Access clone)
<gchristensen>
nice
<gchristensen>
does it integrate with a barcode printer?
<gchristensen>
I just had a horrible idea
<samueldr>
you know that by saying that you are contractually obligated to share it, right?
<gchristensen>
and the logical next step, of course, is: `zfs send -i ... | snap2git | git am` and `git diff origin/master...HEAD | git2snap | zfs recv`
<__monty__>
Zfs only works from-to zfs filesystems right?
<gchristensen>
yeah
<__monty__>
*Zfs send
<samueldr>
but nothing stops you from making a sparse image file with a zfs filesystem, right?
<gchristensen>
definitely not
<gchristensen>
I don't like how much this feels like not the worst idea
drakonis has joined #nixos-chat
<__monty__>
That'd require a sparse image on both sender and receiver?
<gchristensen>
only if they don't have zfs already
<__monty__>
Does zfs send use TCP more optimally? Rsync is pretty slow compared to something like magic-wormhole/croc, which can't take advantage of filesystem-level knowledge either.
rardiol has quit [Ping timeout: 258 seconds]
rardiol has joined #nixos-chat
<clever>
__monty__: send requires that the source be able to compute the diff all on its own, and it never gets an ack from the dest
<clever>
__monty__: you either need to diff 2 snapshots, or use bookmarks, and incremental sends must start from the last snapshot the dest had, with no way for you to know that (other then tracking it outside of zfs)
bqv has joined #nixos-chat
FRidh has quit [Quit: Konversation terminated!]
<pie_>
gchristensen: do tell if you find any barcode stuff or whatever, i was vaguely pondering stuff like this for my paper documents
<gchristensen>
cool
<pie_>
though it might be simplest to just use a smartphone for reading and a normal printer for printing
<gchristensen>
I got stuck on using Brother P-touch PT-D600 from Linux
<pie_>
i was thinking of putting a document id and a sha of the scanned version on those plastic slips you can put papers in
<gchristensen>
oh cool
<pie_>
and otherwise i have two calc (libreoffice excel) files wit some semi adhoc semi thoght throught scheme for keeping track of two specific tings right now
<pie_>
and i have a halfassed object storeish scheme (im halfway to a proper database eh? :P) where i have a git repo and i put each document or something like that in a directory labeled by an id
<pie_>
so like D003 or whatever
<pie_>
and then a calc file at the top that maps the D003 to some attributes like people involved in the document, shas of contained files, summary of contents
<gchristensen>
nice
<pie_>
its all kind of halfassed but it seems to work okayis
<pie_>
probably got like 80 stuff in there right now
<pie_>
i need to have another go at this because i have three open binders and a pile of papers in the area behind me for three months now because all the related work isnt done, and i was having trouble finding physical copies of paper
<pie_>
s
<pie_>
some of which apparently i hadnt scanned yet or somesuch
<pie_>
to summarize, it has some promise but organizing my life still needs work
<pie_>
i havent seen what any commercial document store solutions look like...i feel like they have to be better than what ive seen but somehow im not convinced...
<pie_>
but for fridge stuff, i think a calc file should be more or less enough? not sure what one could complicate on that
<joepie91>
gchristensen: you can simplify your compatibility requirements by just pre-printing a few thousand incrementally-numbered barcodes and then just picking one from the stack as-needed and registering it as something
<pie_>
unless you want to start generating order links for mail order food or something :P
<joepie91>
that was LO doesn't need to support the barcode printer :P
<joepie91>
way*
<pie_>
joepie91: hmm
<pie_>
whats LO
<pie_>
i guess i cant do the incremental thing for the shas tho
<gchristensen>
I want them to at least say the date
<pie_>
you could use a date stamper :D
<gchristensen>
yeah :D
<pie_>
ofc thats extra hand movements to do as opposed to
<pie_>
"print next label, with todays date"
<pie_>
scannin books is so mind numbing, i really want one of those nicer diy setups :(
<pie_>
the 2x cameras is kinda expensive tho too
<MichaelRaskin>
If you print on a normal printer, you can also use DataMatrix
<joepie91>
pie_: LO = LibreOffice
<MichaelRaskin>
(used dmtx with both scanners and phones)
<pie_>
joepie91: oh right
<pie_>
also my scanner doesnt like dithering or whatever its called, that striping shouldnt be there
<MichaelRaskin>
Unlike QR-code, standard DMTX tools support non-square rectangular codes
<pie_>
well, nothing wrong per se with the scanner, technically
<pie_>
MichaelRaskin: aha, good to know
__monty__ has quit [Quit: leaving]
<MichaelRaskin>
From experience: if you want to scan with a phone, you might want to scan with a cheaper smartphone. Reason: good cameras focus intelligently, precisely, and slowly.
<joepie91>
lol
<pie_>
last time i looked people used dslrs
* joepie91
bought a professional barcode scanner a while ago, looking for a project
<drakonis>
hey folks.
<MichaelRaskin>
pie_: I am talking more about scanning DMTX quickly
<MichaelRaskin>
With cheap cameras you learn a hand movement which ends up with the phone at the shortest focus step of that cheap thing, with recognition working in a half of the time needed for the focusing on a more advanced smartphone
<pie_>
ahd ok contextual crostalk
<MichaelRaskin>
joepie91: I think I have at some point in time learned to scan 2D-codes with cheap smartphones faster than the typical scan time of the hand scanner in the supermarket here (stationary scanners in the conveyor belt are better, of course)
<samueldr>
MichaelRaskin: could camera2 manual focus (assuming android) help here?
<MichaelRaskin>
Might be. Might also have a ton of interesting compatibility considerations
<MichaelRaskin>
Does Camera2 have 2D code reader?
<samueldr>
I don't know, camera2 being the photo api, not some software
<samueldr>
I would hazard a guess and say it doesn't
<samueldr>
but if you're making software that scans for a particular use case, using camera2 and setting its focus distance manually the focus could be done handheld-ly by moving the camera closer or further from the code
<samueldr>
without autofocus meddling
<MichaelRaskin>
Yeah, but Barcode Scanner exists and is a reasonable ZXing wrapper!
<joepie91>
MichaelRaskin: so the thing is that ~all modern hand scanners are optical scanners; most of which are super slow
<joepie91>
(I have one of those)
<joepie91>
but for optical/sensor scanners you need specific fast models
<joepie91>
laser 2D barcode scanners are stupid fast almost always
<joepie91>
a laser barcode scanner or particularly fast optical scanner is almost certainly going to beat a smartphone by some margin
waleee-cl has joined #nixos-chat
<MichaelRaskin>
Well, if you have an optical one, then cheap smartphones usually beat it… and often provide a wider range of codes to scan
<MichaelRaskin>
The scanner might win on physical ergonomics, maybe
<joepie91>
MichaelRaskin: a cheap smartphone isn't going to beat the one I have :P
<MichaelRaskin>
Sub-second scan time _and_ 2D code support?
<joepie91>
yes
<joepie91>
far, far sub-second
<joepie91>
instant if you've only ever used optical scanners; nearly instant if you've used laser scanners
<joepie91>
it's basically point-and-beep
<joepie91>
20773519
<joepie91>
just insta-beeped that :P
<MichaelRaskin>
Well, for most applications it does not matter how far sub-second
<joepie91>
MichaelRaskin: if I had to estimate the scan time, I'd say about 50-100ms
<joepie91>
with a somewhat higher scan failure rate than a laser scanner
<joepie91>
but not by much
<MichaelRaskin>
Does it have highlighting of scan area?
<joepie91>
if you configure it, yes
<joepie91>
it has a laser projector
<joepie91>
or I think it's a laser anyway
<joepie91>
Zebra DS4308
<colemickens>
ooof okay, I have purpose today. setting up a matrix server (with kubenix?)
<cole-h>
Godspeed.
slack1256 has joined #nixos-chat
buckley310 has quit [Quit: Connection closed for inactivity]
c74d has quit [Quit: c74d]
colemickens has joined #nixos-chat
colemickens has quit [Changing host]
colemickens has quit [Quit: authenticating]
colemickens has joined #nixos-chat
c74d has joined #nixos-chat
<cole-h>
gchristensen: re: your nixpkgs-fmt vs nixfmt question in -aarch -- I like nixpkgs-fmt more, mostly because of its promise to "Only expand, don't collapse" (and also because it's Rust, making it easier for me to contribute if I ever want/need)
Guest38887 has quit [Quit: issued !quit command]
Irenes[m] has joined #nixos-chat
<infinisil>
cole-h: I recently (couple months ago) checked out both nixfmt and nixpkgs-fmt, and I liked nixfmt more. It has a more consistent style, the implementation is much simpler (also Haskell which allows *me* to contribute :P)
<cole-h>
Hehehe
<infinisil>
Also, running nixpkgs-fmt, there were some formatting mistakes. Those were probably fixed since then, but it just feels very brittle, especially if you look at nixpkgs-fmt's source code