Re: Open Source PHP Trouble Ticket System

2025-07-18 Thread Michel Verdier
On 2025-07-18, Timothy M Butterworth wrote: >> This one ([1]) is in PHP. >> >> [1] https://glpi-project.org/ >> >> -- >> John Doe >> >> > I looked at this one and it looked promising. I downloaded it and tried to > install it but it requires docker. I am not really interested in running > docker

Re: Open Source PHP Trouble Ticket System

2025-07-18 Thread john doe
On 7/18/25 21:01, Timothy M Butterworth wrote: On Fri, Jul 18, 2025 at 8:19 AM john doe wrote: On 7/18/25 09:21, Timothy M Butterworth wrote: Hello, I have been Googling around trying to find a Trouble Ticket System written in PHP, JavaScript and MariaDB. Does anyone know of any good ones?

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Michael Paoli
echo \ $(( $( d12='\([0-9]\{1,2\}\)' echo 09:10:11 | sed -e ' s/^/ / s/:/ /g s/ 0*\([0-9]\)/ \1/g '" s/^ $d12 $d12 $d12"'$/3600 * \1 + 60 * \2 + \3/ ' ) )) On Fri, Jul 18, 2025 at 7:09 PM Greg Wooledge wrote: > > On Fri, Jul 18, 2025 at 18:59:06 -0700, Michael Paoli

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Max Nikulin
On 18/07/2025 05:52, Greg Wooledge wrote: On Thu, Jul 17, 2025 at 23:39:02 +0200, lbrt...@tutamail.com wrote: Video durations are formatted in youtube's .info.json files as "HH:MM:SS"; jq '.duration_string,.duration' m.info.json "2:10:14" 7814 Taking into account earlier posts, I think that o

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Greg Wooledge
On Fri, Jul 18, 2025 at 18:59:06 -0700, Michael Paoli wrote: > echo $(( $(echo 07:08:09 | sed -e 's/^0*\([0-9]\)/3600 * \1 + > /;s/:0*\([0-9]:\)/60 * \1/;s/:0*\([0-9]\)$/ + \1/;') )) This one is missing some * operators. You're only capturing a single digit in each segment, but there could be two

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Michael Paoli
echo $(( $(echo 07:08:09 | sed -e 's/^0*\([0-9]\)/3600 * \1 + /;s/:0*\([0-9]:\)/60 * \1/;s/:0*\([0-9]\)$/ + \1/;') )) On Fri, Jul 18, 2025 at 1:31 PM Greg Wooledge wrote: > > On Fri, Jul 18, 2025 at 13:16:17 -0700, Michael Paoli wrote: > > E.g.: > > printf 01:02:03 | (IFS=: read h m s; printf '%s

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Greg Wooledge
On Fri, Jul 18, 2025 at 13:16:17 -0700, Michael Paoli wrote: > E.g.: > printf 01:02:03 | (IFS=: read h m s; printf '%s\n' $(( $((h * 3600)) + > $((m * 60)) + $s ))) You still need to strip leading zeroes. hobbit:~$ echo 01:08:09 | (IFS=: read h m s; printf '%s\n' $(( $((h * 3600)) + > $((m * 60))

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Michael Paoli
E.g.: printf 01:02:03 | (IFS=: read h m s; printf '%s\n' $(( $((h * 3600)) + $((m * 60)) + $s ))) On Thu, Jul 17, 2025 at 2:39 PM wrote: > > Video durations are formatted in youtube's .info.json files as "HH:MM:SS"; > so, I went monkey and did the conversion myself, but I got two errors which I

Re: Open Source PHP Trouble Ticket System

2025-07-18 Thread Timothy M Butterworth
On Fri, Jul 18, 2025 at 8:19 AM john doe wrote: > On 7/18/25 09:21, Timothy M Butterworth wrote: > > Hello, > > > > I have been Googling around trying to find a Trouble Ticket System > written > > in PHP, JavaScript and MariaDB. Does anyone know of any good ones? > > > > Good is subjective! ;^) >

Re: more trouble with HP Laser Jet Pro 4301 8023 CB

2025-07-18 Thread Greg
On 2025-07-10, Maureen L Thomas wrote: > > I have no idea what to do.  I spent two hours on HP looking for any > explanation and could not get any help from them at all.  I cannot > afford another printer and I have three un-used color cartridges.  It > does say it is low on ink but according t

Re: Where does pure-ftpd store files when anonymous logs in?

2025-07-18 Thread Greg
On 2025-07-11, Nicolas George wrote: > hw (HE12025-07-11): >> (S)FTP is still in use like for cameras, scanners (printers) and phones. > > Do you have a few examples of brand and models of cameras and phones > that use FTP? Some high-end cameras use it. Phones, not so much.

Re: Open Source PHP Trouble Ticket System

2025-07-18 Thread Dan Ritter
Timothy M Butterworth wrote: > Hello, > > I have been Googling around trying to find a Trouble Ticket System written > in PHP, JavaScript and MariaDB. Does anyone know of any good ones? I know the best one, but it's not written in PHP. apt install request-tracker5 -dsr-

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Greg Wooledge
On Fri, Jul 18, 2025 at 12:34:36 +0200, Michael wrote: > On Friday, July 18, 2025 12:52:03 AM CEST, Greg Wooledge wrote: > > As far as the code goes, I'd rather start from scratch. > > just out of curiosity: > > i don't like fix global return values (like $r in your code). i'd rather > give the f

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread rhkramer
On Thursday, July 17, 2025 06:52:03 PM Greg Wooledge wrote: > If you don't want to see an explanation of the function, you can stop > reading here. The rest is just tutorial. I'm not the OP, but tutorial(s) good -- thanks! I assume it is (or will be) on your (Greg's wiki) -- if so, I'll probably

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...

2025-07-18 Thread Michael
On Friday, July 18, 2025 12:52:03 AM CEST, Greg Wooledge wrote: As far as the code goes, I'd rather start from scratch. just out of curiosity: i don't like fix global return values (like $r in your code). i'd rather give the function a variable name to put the result in. do you have any obj

Re: Open Source PHP Trouble Ticket System

2025-07-18 Thread john doe
On 7/18/25 09:21, Timothy M Butterworth wrote: Hello, I have been Googling around trying to find a Trouble Ticket System written in PHP, JavaScript and MariaDB. Does anyone know of any good ones? Good is subjective! ;^) This one ([1]) is in PHP. [1] https://glpi-project.org/ -- John Doe

Open Source PHP Trouble Ticket System

2025-07-18 Thread Timothy M Butterworth
Hello, I have been Googling around trying to find a Trouble Ticket System written in PHP, JavaScript and MariaDB. Does anyone know of any good ones? Thanks Tim -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀