Re: relayd first try: redirection based on Host: header

2025-08-03 Thread Marc Chantreux
Hi Michael, On Fri, Aug 01, 2025 at 11:10:17AM +0200, Michael Hekeler wrote: > In this regard, I can warmly recommend the book "Relayd and Httpd > Mastery" by Michael W Lucas > https://mwl.io/nonfiction/tools#relayd Thanks for the advice but I'm done with non-free content. Even books. However I'

Re: Resources to learn modern C relevant to OpenBSD

2025-08-03 Thread Niels Müller Larsen
Naming thing was always, and remains the hardest problem in Computer Science. /niels Sent from [Proton Mail](https://proton.me/mail/home) for iOS On Sun, Aug 3, 2025 at 08:54, Christian Schulte <[c...@schulte.it](mailto:On Sun, Aug 3, 2025 at 08:54, Christian Schulte < wrote: > Am 29.07.2025 u

Re: Resources to learn modern C relevant to OpenBSD

2025-08-02 Thread Christian Schulte
Am 29.07.2025 um 13:15 schrieb Crystal Kolipe: > On Tue, Jul 29, 2025 at 03:19:40AM -0700, Neel Chakraborty wrote: >> Hello everyone, hope you're having a great day. I am looking for >> resources to learn modern C, so that I can understand (and hopefully >> someday contribute) to the OpenBSD source

Re: Multi-egress wireguard vpn's

2025-08-01 Thread David Gwynne
On Fri, Aug 01, 2025 at 10:15:24AM +0300, Barbaros Bilek wrote: > Hello David & Misc, > > While these methods are functional and powerful, I believe they introduce a > significant amount of configuration overhead; particularly in dynamic > environments where WAN interfaces may change, or where sim

Re: X server: potential atomic update failure

2025-08-01 Thread Michael Hekeler
> After 14 years I don't know yet how to do a copy a past in the Console window > under XFCE, in an easy way. As you are very concerned about this I could > appreciate any enlightment.. > -Dan Actually it's simple: Select text, change window, middle-click. However I don't know why PRIMARY didn'

Re: relayd first try: redirection based on Host: header

2025-08-01 Thread Michael Hekeler
> but the more I read the doc, the less I'm confident about the fact > I understood a single word. > > any help on this ? In this regard, I can warmly recommend the book "Relayd and Httpd Mastery" by Michael W Lucas https://mwl.io/nonfiction/tools#relayd

Re: Multi-egress wireguard vpn's

2025-08-01 Thread Barbaros Bilek
Hello David & Misc, While these methods are functional and powerful, I believe they introduce a significant amount of configuration overhead; particularly in dynamic environments where WAN interfaces may change, or where simple per-interface WireGuard isolation is desired. This led me to wonder:

Re: Multi-egress wireguard vpn's

2025-07-31 Thread David Gwynne
On Wed, Jul 30, 2025 at 12:10:02AM +, Andrew Dekker wrote: > To preface, please bear with me, my terminology may not be accurate but I'll > try to describe what I've been struggling with this all week. > I am using 7.7 as a router/firewall with multiple lan's > I would like to have multiple eg

Re: here one more array in the pipe prisoner..

2025-07-30 Thread Dan
Finally, here the upload on Github: https://github.com/par7133/webics (MIT) Shell sup for your web integrity check system This is the shell support toolset for your webapps integrity check system in its OpenBSD and Debian version ( sorry for the maskerated code, be creative.. ) Dan --

Re: Multi-egress wireguard vpn's

2025-07-30 Thread deich...@placebonol.com
Does traffic coming in on em1-em4 route to traffic on the other interfaces, or is traffic going out to a specific wg tunnel, only or is there both internal and external flows? diana KI5PGJ On July 29, 2025 6:10:02 PM MDT, Andrew Dekker wrote: >To preface, please bear with me, my terminology

Re: QNAP QDG-1602P

2025-07-29 Thread Lloyd
jslee wrote: > I like the concept but it seems rather spendy given > > * very limited RAM (is it upgradeable?) Max RAM is 64 GB across two SO-DIMM slots. > Also, > > * fans > * 1U, so the fans will be loud Not necessarily. > FWIW I upgraded my APU2s with PCIe adapter boards to host NVMe sto

Re: VMD more than one vCPU per VM and 4+ VMs running simultaneously

2025-07-29 Thread Martin
On Tuesday, July 29th, 2025 at 7:34 PM, Mike Larkin wrote: > On Tue, Jul 29, 2025 at 07:08:16AM +, Martin wrote: > > > Mike, does real interrupt controller implemented in vmd already? It should > > significantly improve the performance of the vmd by allowing real hardclock > > interrupts

Re: QNAP QDG-1602P

2025-07-29 Thread jslee
On Wed, 30 Jul 2025, at 11:08, Lloyd wrote: > With the APU2 going out of production this could be a good routing > platform (though at a big step up in price). I like the concept but it seems rather spendy given * very limited RAM (is it upgradeable?) * DDR4 RAM * 8 year old CPU model Also, *

Re: VMD more than one vCPU per VM and 4+ VMs running simultaneously

2025-07-29 Thread Mike Larkin
On Tue, Jul 29, 2025 at 07:08:16AM +, Martin wrote: > Mike, does real interrupt controller implemented in vmd already? It should > significantly improve the performance of the vmd by allowing real hardclock > interrupts which significantly reduce CPU usage. > vmd emulates a legacy i8259 and

Re: Resources to learn modern C relevant to OpenBSD

2025-07-29 Thread Paul Wisehart
On Tue, Jul 29, 2025 at 03:19:40AM -0700, Neel Chakraborty wrote: > Hello everyone, hope you're having a great day. I am looking for > resources to learn modern C, so that I can understand (and hopefully > someday contribute) to the OpenBSD source code, in areas like device > drivers, kernel and th

Re: Resources to learn modern C relevant to OpenBSD

2025-07-29 Thread jslee
On Tue, 29 Jul 2025, at 22:15, Stephan Beal wrote: > FWIW, about 10 years i read: > > https://www.oreilly.com/library/view/21st-century-c/9781491904428/ +1, this seemed pretty decent and likely a good place to start, regardless of how near or far we are from another update to the standard Maybe

Re: Resources to learn modern C relevant to OpenBSD

2025-07-29 Thread Stephan Beal
On Tue, Jul 29, 2025 at 1:55 PM Maxim wrote: > On Tue, 29 Jul 2025, at 12:19, Neel Chakraborty wrote: > > If anyone could mention some resources to learn from,I would > > appreciate that very much. > FWIW, about 10 years i read: https://www.oreilly.com/library/view/21st-century-c/9781491904428/

Re: Resources to learn modern C relevant to OpenBSD

2025-07-29 Thread Maxim
On Tue, 29 Jul 2025, at 12:19, Neel Chakraborty wrote: > If anyone could mention some resources to learn from,I would > appreciate that very much. There are a few reasonable mentions in this old thread: "Need some advice on C semantics." from Dec 2024, .

Re: Resources to learn modern C relevant to OpenBSD

2025-07-29 Thread Crystal Kolipe
On Tue, Jul 29, 2025 at 03:19:40AM -0700, Neel Chakraborty wrote: > Hello everyone, hope you're having a great day. I am looking for > resources to learn modern C, so that I can understand (and hopefully > someday contribute) to the OpenBSD source code, in areas like device > drivers, kernel and th

Re: VMD more than one vCPU per VM and 4+ VMs running simultaneously

2025-07-29 Thread Martin
Mike, does real interrupt controller implemented in vmd already? It should significantly improve the performance of the vmd by allowing real hardclock interrupts which significantly reduce CPU usage. More vCPUs per VM moves vmd to the near one level of commercial hypervisors but better in many

Re: VMD more than one vCPU per VM and 4+ VMs running simultaneously

2025-07-28 Thread Mike Larkin
On Mon, Jul 28, 2025 at 03:27:15PM +, Martin wrote: > On Monday, July 28th, 2025 at 12:11 PM, Mike Larkin > wrote: > > > On Mon, Jul 28, 2025 at 06:06:46AM +, Martin wrote: > > > > > Hi list! > > > > > > More than one vCPU per VM is implemented/planned? > > > > > > It is really good idea

Re: VMD more than one vCPU per VM and 4+ VMs running simultaneously

2025-07-28 Thread Martin
On Monday, July 28th, 2025 at 12:11 PM, Mike Larkin wrote: > On Mon, Jul 28, 2025 at 06:06:46AM +, Martin wrote: > > > Hi list! > > > > More than one vCPU per VM is implemented/planned? > > It is really good idea to have more than one vCPU per VM. vmd looks stable enough from 7.7 as I c

Re: here one more array in the pipe prisoner.. suggestion

2025-07-28 Thread Dan
Thx.. Crystal Kolipe wrote: > On Mon, Jul 28, 2025 at 01:26:00PM +0200, Dan wrote: > > result [filename] > > > > And programmatically is really appreciable/ted :) > > Have you tried 'sha256 -r'? > Dan -- Blog: https://bsd.gaoxio.com - Repo: https://code.5mode.com Please reply to the

Re: cvs

2025-07-28 Thread Constantine A. Murenin
On Mon, 28 Jul 2025 at 03:28, Tomasz Rola wrote: > > On Fri, Jul 25, 2025 at 10:54:49AM -0500, Constantine A. Murenin wrote: > [...] > > CVS does NOT allow novice users to edit commits. This is a huge > > deal-breaker for any use these days, just see how the "normal" people > > never understood t

Re: help configuring an ipv6 wg vpn

2025-07-28 Thread Stuart Henderson
On 2025-07-27, Omar Polo wrote: > Florian Obser wrote: >> RFC 4291 2.1: >>All interfaces are required to have at least one Link-Local unicast >>address > > thanks for the pointer! Now my question becomes how to add such address > to a wg(4) device however. there's no need for this to ge

Re: help configuring an ipv6 wg vpn

2025-07-28 Thread Stuart Henderson
On 2025-07-27, Omar Polo wrote: > Hello, > > I'm moving my first baby steps in ipv6 land and I'm a bit confused about > routing. I'm trying to build a vpn on wireguard, but only the ipv4 part > of it it's working. I suspect there's an issue in how I'm configuring > the client, but I'm not sure h

Re: here one more array in the pipe prisoner.. suggestion

2025-07-28 Thread Crystal Kolipe
On Mon, Jul 28, 2025 at 01:26:00PM +0200, Dan wrote: > result [filename] > > And programmatically is really appreciable/ted :) Have you tried 'sha256 -r'?

Re: VMD more than one vCPU per VM and 4+ VMs running simultaneously

2025-07-28 Thread Mike Larkin
On Mon, Jul 28, 2025 at 06:06:46AM +, Martin wrote: > Hi list! > > More than one vCPU per VM is implemented/planned? not implemented as of now. > > Can anybody share some way how to increase VM quantity per host (more than > four VMs running simultaneously) if host has CPU with 16 kernels an

Re: help configuring an ipv6 wg vpn

2025-07-28 Thread B. Atticus Grobe
On Mon, Jul 28, 2025, 02:38 Claudio Jeker wrote: > On Sun, Jul 27, 2025 at 11:51:25PM +0200, Omar Polo wrote: > > Florian Obser wrote: > > > RFC 4291 2.1: > > >All interfaces are required to have at least one Link-Local unicast > > >address > > > > thanks for the pointer! Now my questio

Re: here one more array in the pipe prisoner.. suggestion

2025-07-28 Thread Dan
Small portable suggestion to OpenBSD. Tools like these ones in Debian are all consistent in their final result: wc -c jquery-3.6.0.min.js md5sum jquery-3.6.0.min.js shasum -a 256 jquery-3.6.0.min.js result [filename] And programmatically is really appreciable/ted :) Dan -- Blog: https

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-28 Thread Rob Schmersel
On Mon, 28 Jul 2025 08:57:32 + (UTC) dirk coetzee wrote: > Hi Rob, > > Excuse my ignorance, but how do i go about adding azalia device to > pcidevs? > * You need to check out the source and rebuild the kernel: https://www.openbsd.org/faq/faq5.html * make the change in: /sys/dev/pci/

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-28 Thread dirk coetzee
Hi Rob, Excuse my ignorance, but how do i go about adding azalia device to pcidevs?

Re: cvs

2025-07-28 Thread Tomasz Rola
On Fri, Jul 25, 2025 at 10:54:49AM -0500, Constantine A. Murenin wrote: [...] > > You're basically using the fact that CVS cannot be archived easily on > a third-party service as a BENEFIT of CVS? How does that make any > sense? It is possible to set up cvs-based repository and make it usable ov

Re: help configuring an ipv6 wg vpn

2025-07-28 Thread Claudio Jeker
On Mon, Jul 28, 2025 at 08:41:40AM +0200, Florian Obser wrote: > On 2025-07-28 07:25 +02, Claudio Jeker wrote: > > On Sun, Jul 27, 2025 at 11:51:25PM +0200, Omar Polo wrote: > >> Florian Obser wrote: > >> > RFC 4291 2.1: > >> >All interfaces are required to have at least one Link-Local unicas

Re: help configuring an ipv6 wg vpn

2025-07-27 Thread Florian Obser
On 2025-07-28 07:25 +02, Claudio Jeker wrote: > On Sun, Jul 27, 2025 at 11:51:25PM +0200, Omar Polo wrote: >> Florian Obser wrote: >> > RFC 4291 2.1: >> >All interfaces are required to have at least one Link-Local unicast >> >address >> >> thanks for the pointer! Now my question becomes

Re: VMD more than one vCPU per VM and 4+ VMs running simultaneously

2025-07-27 Thread Crystal Kolipe
On Mon, Jul 28, 2025 at 06:06:46AM +, Martin wrote: > Can anybody share some way how to increase VM quantity per host (more than > four VMs running simultaneously) You probably need to add more tap devices in /dev... # cd /dev # ./MAKEDEV tap4 # ./MAKEDEV tap5 [...]

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-27 Thread Rob Schmersel
On Sun, 27 Jul 2025 05:51:35 + (UTC) dirk coetzee wrote: > Hi Crystal, > > The azalia driver has never worked. I have never had audio on my Dell > 9315, since installing OpenBSD (from memory i started with OpenBSD > 7.5 stable) > > > pcidump output pasted below: > > > ===

Re: help configuring an ipv6 wg vpn

2025-07-27 Thread Claudio Jeker
On Sun, Jul 27, 2025 at 11:51:25PM +0200, Omar Polo wrote: > Florian Obser wrote: > > RFC 4291 2.1: > >All interfaces are required to have at least one Link-Local unicast > >address > > thanks for the pointer! Now my question becomes how to add such address > to a wg(4) device however. >

Re: help configuring an ipv6 wg vpn

2025-07-27 Thread Omar Polo
Florian Obser wrote: > RFC 4291 2.1: >All interfaces are required to have at least one Link-Local unicast >address thanks for the pointer! Now my question becomes how to add such address to a wg(4) device however. I've tried with a (dumb, but here's all i know) `inet6 autoconf' on the w

Re: purpose of the www group?

2025-07-27 Thread Andy Bradford
Thus said Lloyd on Sun, 27 Jul 2025 18:31:06 -: > What is the purpose of the 'www' group? Is it just vestigial > association with the www user? I use it to allow the httpd to write files from slowcgi scripts. I don't know if that's "the purpose", but it works for me. Andy

Re: help configuring an ipv6 wg vpn

2025-07-27 Thread Florian Obser
RFC 4291 2.1: All interfaces are required to have at least one Link-Local unicast address With that in mind, read in6_ifattach() and weep. On 2025-07-27 19:29 +02, "Omar Polo" wrote: > Hello, > > I'm moving my first baby steps in ipv6 land and I'm a bit confused about > routing. I'm tryin

Re: usb microphone on X1 Carbon

2025-07-27 Thread Raymond, David
You could avoid restarting sndiod in most cases: There's a 'server.device' control exposed by sndioctl(1), to switch between devices with similar capabilities. Ah, makes it much easier! Thanks! Dave David J. Raymond david.raym...@nmt.edu http://kestrel.nmt.edu/~raymond On Sat, Jul 26, 2025

Re: program to indent C code?

2025-07-27 Thread Marc Chantreux
hello, > :!clang-format -i % > > the first time, or > > :! > > followed by arrow-up and Enter on subsequent invocations (persisting > across vim sessions) to tidy it up. Paul told us he's using vi, not vim, so what vi can instead is to call the last filter or command :!!

Re: program to indent C code?

2025-07-27 Thread Страхиња Радић
Дана 25/07/23 04:00PM, Paul Wisehart написа: > Do other OpenBSD C programmers use code formatters? > What do they use? > Should I just be more comfortable formatting my code > as I type? I find that none of the formatters I tried work 100% accurately for my own personal code style. I tend to use c

Re: here one more array in the pipe prisoner..

2025-07-27 Thread Marc Chantreux
On Sun, Jul 27, 2025 at 09:30:34AM +0200, dan wrote: > Fortunatly/Unfortunatly.. it sounds that after a long night I have > already successfully deployed great! congrats. > Thanks a lot for your help! You're welcome! the more people will master shell, the more they'll use it when it's relevant (

Re: here one more array in the pipe prisoner..

2025-07-27 Thread dan
Marc Chantreux : > Also: those shells and zsh are running both on BSD and linux. > If you revamp your code to remove the need of arrays (who needs arrays > when we have pipes and files?), your code will run for free on > busybox/toybox based systems like alpine. > Fortunatly/Unfortunatly.. it sou

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Marc Chantreux
> > it seems you refer to something very specific while talking about > > "pipe prisoner". can you describe? > Do I need to describe how is as a prisoner of a pipe subshell? :)) I don't get it and I was thinking you're refering to a known topic. > > the code I bought to you was dash/mksh/oksh com

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-26 Thread dirk coetzee
Hi Crystal, The azalia driver has never worked. I have never had audio on my Dell 9315, since installing OpenBSD (from memory i started with OpenBSD 7.5 stable) pcidump output pasted below: Domain /dev/pci0:  0:0:0: Intel Core 12G Host     0x:

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-26 Thread Crystal Kolipe
On Sun, Jul 27, 2025 at 05:06:51AM +, dirk coetzee wrote: > I have the azalia driver as well, on a Dell XPS 9315. The dmesg you posted does not show the audio device connecting to the azalia driver, it is unrecognised. Since this is -current, the first question would be, did it _ever_ work be

Re: usb microphone on X1 Carbon

2025-07-26 Thread Alexandre Ratchov
On Sat, Jul 26, 2025 at 04:29:23PM -0600, Raymond, David wrote: > Hi, > > Thanks for the advice -- I do have a headphone set that works. However, I > needed to get something I could hear/speak from across the room in a zoom > yoga class and to keep things as simple as possible, I got a little USB

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-26 Thread dirk coetzee
Hi I have the azalia driver as well, on a Dell XPS 9315. The FAQ's have not helped me though. I have asked for help on misc before - if anyone has any tips and tricks to help me get audio working it would be sincerely appreciated. Below are commands and the outputs, and dmesg. Thanks in adv

Re: usb microphone on X1 Carbon

2025-07-26 Thread Raymond, David
Hi, Thanks for the advice -- I do have a headphone set that works. However, I needed to get something I could hear/speak from across the room in a zoom yoga class and to keep things as simple as possible, I got a little USB conference speaker/mike. After fussing a while I figured out that this c

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Dan
Thank you again Mark I fixed the code.. Marc Chantreux wrote: > On Sat, Jul 26, 2025 at 10:40:07PM +0200, Dan wrote: > > Working on the *pipe prisoner*'s headache this > > for the purpose works: > > it seems you refer to something very specific while talking about > "pipe prisoner". can yo

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Marc Chantreux
On Sat, Jul 26, 2025 at 10:40:07PM +0200, Dan wrote: > Working on the *pipe prisoner*'s headache this > for the purpose works: it seems you refer to something very specific while talking about "pipe prisoner". can you describe? > for line in $( < $mypath'/'$myfile ) such a fragile version! it

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Dan
Working on the *pipe prisoner*'s headache this for the purpose works: local mypath="/home" local myfile="file.txt" local arg let y=0 local line for line in $( < $mypath'/'$myfile ) do echo "line = $line" arg[$y]=${line} let y=$y+1 done echo "line1 = ${arg[0]}" echo "line2

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-26 Thread Dalton Russell
okay nevermind. I did find the section in the FAQ.. Guess I don't know much about audio and what an external DAC is but this was it.. "For example, to use an external DAC rather than your motherboard's onboard audio, just change sndiod(8)'s startup flags to use that device: # rcctl set sndiod f

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Marc Chantreux
On Sat, Jul 26, 2025 at 09:32:27PM +0200, Dan wrote: > I have just fixed things using the let to fix $y behavior in my *pipe > technique* but nothing change: inside the pipe loop variable $arg (or > $arg1 $arg2 $arg3) seems to have a different scope than from outside > the pipe loop (passing by the

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Dan
I have just fixed things using the let to fix $y behavior in my *pipe technique* but nothing change: inside the pipe loop variable $arg (or $arg1 $arg2 $arg3) seems to have a different scope than from outside the pipe loop (passing by the environment too) .. Dan wrote: > By *the local boat*

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-26 Thread dalton.c.russell
I have tried sdnioctl server.device=1 but it says that's an invalid choice. Dalton Russell On Saturday, July 26th, 2025 at 3:16 PM, Crystal Kolipe wrote: > Have you tried selecting the audio1 device rather than audio0? > > I would expect that one to produce some output on this machine.

Re: No audio on Lenovo Thinkpad X1 Extreme Gen 5

2025-07-26 Thread Crystal Kolipe
Have you tried selecting the audio1 device rather than audio0? I would expect that one to produce some output on this machine.

Re: here one more array in the pipe prisoner..

2025-07-26 Thread dan
Hello Marc, I'm the code prisoner and I'm not reinventing wheels unfortunately, eheh.. It goes beyond the scope of my request of help but just to make it a little more intriguing I'm trying to script a piece of software to check file integrity at "webapp" or "webserver" launch. Basically the so

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Marc Chantreux
Hi Dan, I'm sorry if I missed any prologue as your Subject: let me guess (" one *more* array ...") but I read your code and it seems you're poorly reinventing the xargs command so I would like to know if it's intentionnal. <<% y=0 xargs ksh -c ' for it; do echo new argument: $it; done

Re: openbsd ~/.local

2025-07-26 Thread hahahahacker2009
Vào Th 6, 25 thg 7, 2025 vào lúc 11:57 dalton.c.russell đã viết: > > hey all, > on a lot of linux distributions the home folder ~/.local exists and holds > various user > specific settings, programs etc. does something like this exist on openbsd? > It might be created by third party programs f

Re: Recommended (wireless) trackball mouse

2025-07-26 Thread Chris Narkiewicz
Anything on USB, as there is no Bluetooth support in OpenBSD. As far a hardware compatibility is concerned, all those pointer devies are HID class devices and do not require any special software support. So, the good news is that you can focus on ergonomics. Best regards, Chris Narkiewicz

Re: du strange output on single file

2025-07-26 Thread Crystal Kolipe
On Sat, Jul 26, 2025 at 10:12:35AM -, Stuart Henderson wrote: > Other than wc, I think ls -l | awk is probably the most portable way. That will break badly if you feed it the name of a directory or a device file rather than a regular file. If you're going to use ls -l | awk, then it should pr

Re: du strange output on single file

2025-07-26 Thread Stuart Henderson
On 2025-07-25, Crystal Kolipe wrote: > On Fri, Jul 25, 2025 at 07:30:38PM +0200, Kirill A. Korinsky wrote: >> >> Let me quote a man page du(1): >> >> -k By default, all sizes are reported in 512-byte block counts. >> The >> -k option causes the numbers to be reported in

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Crystal Kolipe
On Sat, Jul 26, 2025 at 11:22:47AM +0200, Dan wrote: > y=0 > arg[$y]="hello" > y=$y+1 > arg[$y]="dan" This piece of code doesn't do what you probably think it does. Although it works here, y is a string variable and not a numeric variable. If you add some extra echo statements you can se

Re: du strange output on single file

2025-07-26 Thread Dan
Thanks for this one too.. Crystal Kolipe wrote: > > If you looking a way to have an accurate size of a file in bytes, > > use wc > > Or stat -f %z Dan -- Blog: https://bsd.gaoxio.com - Repo: https://code.5mode.com Please reply to the mailing-list, leveraging technical stuff.

Re: cvs

2025-07-25 Thread Christian Schulte
Am 25.07.2025 um 11:45 schrieb Tomasz Rola: > On Wed, Jul 23, 2025 at 01:10:23PM +0200, Anders Andersson wrote: >> On Wed, Jul 23, 2025 at 7:13 AM Tomasz Rola wrote: >>> > [...] >>> >>> In contrast to that, cvs is easy enough to be quickly understood and >>> used by oneself. >> >> This is a silly

Re: Recommended (wireless) trackball mouse

2025-07-25 Thread Lloyd
Tito Mari Francis Escaño wrote: > Hi misc,I'm exploring options for a preferably wireless trackball mouse, can > somebody please recommend a verified OpenBSD-friendly working brand and model? Some of the newer Logitech trackballs are dual-mode Bluetooth and USB dongle, with the dongle storage h

Re: du strange output on single file

2025-07-25 Thread Crystal Kolipe
On Fri, Jul 25, 2025 at 07:30:38PM +0200, Kirill A. Korinsky wrote: > On Fri, 25 Jul 2025 19:20:53 +0200, > Dan wrote: > > > > Here I found a strange behavior of du: > > > > wiz$ ls -lsa index.php > > 16 -rw-r--r-- 1 user www 7412 Oct 19 2024 index.php > > wiz$ du index.php > > 16 index.php

Re: du strange output on single file

2025-07-25 Thread Dan
Received, thx.. "Kirill A. Korinsky" wrote: > Let me quote a man page du(1): > > -k By default, all sizes are reported in 512-byte block > counts. The -k option causes the numbers to be reported in kilobyte > counts. > > If you looking a way to have an accurate size of a file in

Re: du strange output on single file

2025-07-25 Thread Dave Voutila
Dan writes: > Hello, > > Here I found a strange behavior of du: > > wiz$ ls -lsa index.php > 16 -rw-r--r-- 1 user www 7412 Oct 19 2024 index.php > wiz$ du index.php > 16index.php <-- this is weird > wiz$ du -h index.php > 8.0K index.php Is it weird? Checking the man page for du(1):

Re: du strange output on single file

2025-07-25 Thread Kirill A . Korinsky
On Fri, 25 Jul 2025 19:20:53 +0200, Dan wrote: > > Here I found a strange behavior of du: > > wiz$ ls -lsa index.php > 16 -rw-r--r-- 1 user www 7412 Oct 19 2024 index.php > wiz$ du index.php > 16index.php <-- this is weird > wiz$ du -h index.php > 8.0K index.php > > 7.7 stable >

Re: cvs

2025-07-25 Thread Constantine A. Murenin
On Fri, 25 Jul 2025 at 04:58, Tomasz Rola wrote: […] > I think you may be conflating cvs use with need to setting up some > service and accessing via the net, even if only through the > localhost. But I do nothing like that. I just mkdir, cvs init and this > is mostly it. No need for big time admi

Re: OT: use case for automate webserver restart

2025-07-25 Thread Matthew Ernisse
ajor version OS upgrades I can just wipe the system and reinstall from scratch and let the configuration management re-apply the needed customizations. Keeps the DR plan fresh, too. -- Please direct replies to the list.

Re: cvs

2025-07-25 Thread Niels Müller Larsen
I teach programming, among other things, while doing that I use git locally all the time. I guess that only about 10% of my local repos find a place on codeberg, gitlab or others. I find it extremely useful in local use. /niels Sent from [Proton Mail](https://proton.me/mail/home) for iOS On Fr

Re: cvs

2025-07-25 Thread mkf9
Tomasz Rola wrote: Right, it is not, but at the same time I cannot recall reading a comment from git user who uses git locally all the time, without interacting with git*.com ... AFAICT git is used mostly to sync source with remote repo, but of course I may be wrong because I do not use it. i d

Re: cvs

2025-07-25 Thread Tomasz Rola
On Wed, Jul 23, 2025 at 01:10:23PM +0200, Anders Andersson wrote: > On Wed, Jul 23, 2025 at 7:13 AM Tomasz Rola wrote: > > [...] > > > > In contrast to that, cvs is easy enough to be quickly understood and > > used by oneself. > > This is a silly argument though, and even incorrect. Git is not gi

Re: openbsd ~/.local

2025-07-24 Thread Kevin Williams
On 7/24/25 5:55 PM, dalton.c.russell wrote: hey all, on a lot of linux distributions the home folder ~/.local exists and holds various user specific settings, programs etc. does something like this exist on openbsd? dalton Yes, various packages might create that folder. In my case, ~/.local

Re: program to indent C code?

2025-07-24 Thread Stuart Henderson
On 2025-07-23, Raymond, David wrote: > Yes, recall the old joke that on airplanes emacs users had to sit on the > left side or are removed from the plane

Re: cvs

2025-07-24 Thread Stuart Henderson
On 2025-07-24, Rubén Llorente wrote: > If you want to contribute to a cvs project, you cvs checkout it, do your > changes, send a patch to the mailing list and get ignored. In Git world > you do end up dealing with the likes of Github and Gitlab this is more about the project than anything - ob

Re: cvs

2025-07-24 Thread Rubén Llorente
Anders Andersson wrote: This is a silly argument though, and even incorrect. Git is not github or gitlab. One could easily have made a similar "cvshub" website. Git is a lot easier to administrate as a single user than CVS is, since the repo is completely self-contained in the project folder wh

Re: program to indent C code?

2025-07-23 Thread m brandenberg
On Wed, 23 Jul 2025, Paul Wisehart wrote: My issue is that I have grown to like code formatters after using them in golang and then python. If you like that model, you might want to try clang-format. You'll still have to do configuration work as there isn't a Papally-decreed style as there is

Re: program to indent C code?

2025-07-23 Thread Paul Wisehart
On Wed, Jul 23, 2025 at 11:46:35PM +0200, Omar Polo wrote: > p.s. there's knfmt by anton@ too, but I haven't used it extensively yet > to comment on it. knfmt works well so far! thanks! I can do :%!knfmt and it works nicely from within vi. (also from commandline.) Also I just tried astyle and i

Re: program to indent C code?

2025-07-23 Thread Raymond, David
Pietro, Yes, recall the old joke that on airplanes emacs users had to sit on the left side and vi users had to sit on the right side! I've used both emacs and vi in my time, so no flames here. Dave David J. Raymond david.raym...@nmt.edu http://kestrel.nmt.edu/~raymond On Wed, Jul 23, 2025

Re: program to indent C code?

2025-07-23 Thread dalton.c.russell
there’s astyle. i’ve used that a bit in the past Dalton On Wed, Jul 23, 2025 at 5:37 PM, Paul Wisehart <[p...@oldcode.org](mailto:On Wed, Jul 23, 2025 at 5:37 PM, Paul Wisehart < wrote: > On Wed, Jul 23, 2025 at 02:20:17PM -0600, Raymond, David wrote: >> I just use emacs formatting. It has form

Re: program to indent C code?

2025-07-23 Thread Omar Polo
Paul Wisehart wrote: > Hi!, > > I have been learning to program in C on OpenBSD > and it is super great. I love that you can > just use builtin stuff to write code, like > the man pages are great. > > My issue is that I have grown to like code > formatters after using them in golang and then >

Re: program to indent C code?

2025-07-23 Thread Paul Wisehart
On Wed, Jul 23, 2025 at 02:20:17PM -0600, Raymond, David wrote: > I just use emacs formatting. It has formatters for most languages and I > have used it on all three that you mention, Clang, Golang, and Python, as > well as shell scripts. Maybe there are better formatters out there, but > emacs f

Re: program to indent C code?

2025-07-23 Thread Pietro Leone Pola Falletti di Villafalletto
> Of course, if you use vi (or some other editor) you are out of luck! Ahi, ahi, I see the seed of a flame war. ; -) Bye, Pietro. Jul 23, 2025 22:25:02 Raymond, David : > Paul, > > I just use emacs formatting.  It has formatters for most languages and I have > used it on all three that you m

Re: program to indent C code?

2025-07-23 Thread Raymond, David
Paul, I just use emacs formatting. It has formatters for most languages and I have used it on all three that you mention, Clang, Golang, and Python, as well as shell scripts. Maybe there are better formatters out there, but emacs formatters work fine for me. Of course, if you use vi (or some ot

Re: program to indent C code?

2025-07-23 Thread Robert Hyman
omg they have the best man page collection! I like to code there! On Wed, Jul 23, 2025 at 15:04 Paul Wisehart wrote: > Hi!, > > I have been learning to program in C on OpenBSD > and it is super great. I love that you can > just use builtin stuff to write code, like > the man pages are great. >

Re: cvs

2025-07-23 Thread Anders Andersson
On Wed, Jul 23, 2025 at 7:13 AM Tomasz Rola wrote: > > On Thu, Jul 10, 2025 at 08:49:38PM -0300, Gustavo Rios wrote: > > Hi folks! > > > > I have a simple question: is cvs still relevant today ? Would you start a > > project today using cvs ? > > To many the answer would be that git is relevant an

Re: usb microphone on X1 Carbon

2025-07-23 Thread Alexandre Ratchov
On Fri, Jul 18, 2025 at 01:28:48PM -0600, Raymond, David wrote: > David J. Raymond > david.raym...@nmt.edu > http://kestrel.nmt.edu/~raymond > > Jan, > > Hmm Not being able to use the microphone and speaker from separate > devices at the same time is a show stopper for me. I guess I will ju

Re: man -Tps wraps lines after one word

2025-07-22 Thread Nathan Carruth
Thanks to Karl and Ingo for the interesting and informative responses. On Tue, Jul 22, 2025 at 05:02:42PM +0200, Ingo Schwarze wrote: > Hello Karl, hello Nathan, > > Karl Pettersson wrote on Tue, Jul 22, 2025 at 09:43:33AM +0200: > > Nathan Carruth writes: > > >> I doubt there is such a tool. >

Re: cvs

2025-07-22 Thread Tomasz Rola
On Thu, Jul 10, 2025 at 08:49:38PM -0300, Gustavo Rios wrote: > Hi folks! > > I have a simple question: is cvs still relevant today ? Would you start a > project today using cvs ? Yes and yes, on a daily basis in my case. But one has to remember that cvs is good for development as it was ~30 year

Re: sys/dev/pci/drm/amd takes up 499MB out of 1.7GB in src...

2025-07-22 Thread Constantine A. Murenin
On Mon, 21 Jul 2025 at 18:54, H. Hartzer wrote: > Hi misc@, > > On 7.7, extracted src.tar.gz and sys.tar.gz is about 1.7GB. > > The sys folder is 634MB. > sys/dev is 590MB. > sys/dev/pci is 543MB. > sys/dev/pci/drm is 525MB. > sys/dev/pci/drm/amd is 499MB. > > And sys/dev/pci/drm/amd/include is 45

Re: man -Tps wraps lines after one word

2025-07-22 Thread Ingo Schwarze
Hello Karl, hello Nathan, Karl Pettersson wrote on Tue, Jul 22, 2025 at 09:43:33AM +0200: > Nathan Carruth writes: >> I doubt there is such a tool. >> >> Having spent a fair amount of time looking into this problem (in the >> context of diffing PDF versions of mathematics papers/interviews), my

Re: OT: use case for automate webserver restart

2025-07-22 Thread Dan
Anders Andersson wrote: > I'm all for *manual* daily restart [...] > Too many things can go wrong > unexpectedly at startup, not necessarily from malicious sources. Generally speaking I agree with you on the manual start-up but at this point I would like to go ahead with a joke to you and ask i

Re: man -Tps wraps lines after one word

2025-07-22 Thread Karl Pettersson
Nathan Carruth writes: > > I doubt there is such a tool. > > Having spent a fair amount of time looking into this problem (in the > context of diffing PDF versions of mathematics papers/interviews), my > take is that such a tool would require running a tree-based diffing > algorithm on the inter

  1   2   3   4   5   6   7   8   9   10   >