Re: fixing a test I don't understand in community-modules

2025-09-25 Thread David Emanuel da Costa Santiago
It seems a test issue. The same test in line 18 returns 2 and at a glance i don't see any change to dir1. Best regards, David Santiago A qua, 24-09-2025 às 23:35 +0200, Marc Chantreux escreveu: > hello people, > > I just fixed a typo in the File::Find module but the CI raise an > error > at

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-16 Thread Marc Chantreux
On Sat, Sep 13, 2025 at 09:18:20AM -0400, Brian Duggan wrote: > The feed operator already sort of fits well here > "example.txt".IO.slurp.subst('Hello','Hi') ==> spurt($filename) I have a mixed feeling there. YA operator. but hey .. it works... -- Marc Chantreux signature.asc Description:

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-13 Thread Brian Duggan
> > Now *that* I find to be an interesting idea. The oneliner would then > > become: > > > > "example.txt".IO.slurp.subst("Hello","Hi").spurt($filename) > > > > which has a nice left-to-right feel. The feed operator already sort of fits well here "example.txt".IO.slurp.subst('Hello','Hi

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-08 Thread Elizabeth Mattijsen
> On 8 Sep 2025, at 04:26, William Michels wrote: > PS If `Str` had a `spurt` method, wouldn't you be in constant fear of a > sensitive string literal (e.g. a password) being accidentally written to > disk? How would that be different from the fear of $io.spurt($sensitive-data) ??

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-08 Thread Marc Chantreux
On Mon, Sep 08, 2025 at 11:36:32AM +0200, Elizabeth Mattijsen wrote: > The reason this doesn't work, is because s:g/Hello/Hi/ requires a > writeable $_, and the invocant of .&{ } is not writeable in this > example. AFAIR, there was also problems with the way I split the lines because it changed

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-08 Thread Elizabeth Mattijsen
> On 8 Sep 2025, at 11:29, Marc Chantreux wrote: > so my dream would be to write liz's example close to this: > > "example.txt".IO.slurp > .&{ g:s/Hello/Hi/ } > .spurt: $filename The reason this doesn't work, is because s:g/Hello/Hi/ requires a writeable $_, and the invocant of .&{ } is not

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-08 Thread Marc Chantreux
hi William, On Sun, Sep 07, 2025 at 07:26:21PM -0700, William Michels via perl6-users wrote: > `~$ raku -e 'my $fh = "ImportantFile_bak".IO; #create filehandle \ >"ImportantFile".IO.slurp.subst(:global, "Hello ", "Hi ") andthen > spurt($fh, $_, :createonly);' ` this is way behond t

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-08 Thread Elizabeth Mattijsen
> On 8 Sep 2025, at 04:26, William Michels wrote: > PS If `Str` had a `spurt` method, wouldn't you be in constant fear of a > sensitive string literal (e.g. a password) being accidentally written to disk? How would that be different from the fear of $io.spurt($sensitive-data) ??

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-07 Thread William Michels via perl6-users
Greetings, I much prefer this syntax: `~$ raku -e 'my $fh = "ImportantFile_bak".IO; #create filehandle \ "ImportantFile".IO.slurp.subst(:global, "Hello ", "Hi ") andthen spurt($fh, $_, :createonly);' ` It has a nice left-to-right feel and keeps you from clobbering an `ImportantF

Re: DateTime: (now.Int) always 37 seconds off from (now)

2025-09-07 Thread William Michels via perl6-users
5AI1vNQzSO0KGjl4nbi2Q0M1QLJX9BeE&r=H_4IX2PNs5J8Am4L9k8XPDKLi8_PeuhJoKcQtnXHZ4c&m=A83LDo7Xg3i5Wz0BEZ59mdh4AUvU95kuqekP5JO4JizPYEdOlOiHkpw950dx6yPz&s=N6rINXA5jyzFrI9qNysvvdPsmyFWe7BzTONJ8pIv-CE&e=>, > but I’ve got it now. > > Thanks! > > Mark > > > From: Br

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-07 Thread Elizabeth Mattijsen
> On 7 Sep 2025, at 20:31, Marc Chantreux wrote: >>> with "example.txt".IO.slurp { >>> s/Hello/Hi/; >>> .spurt: $filename; >>> } >> >> Now *that* I find to be an interesting idea. The oneliner would then become: >> >> "example.txt".IO.slurp.subst("Hello","Hi").spurt($filename) >> >> which has

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-07 Thread Marc Chantreux
Hello Liz, On Sun, Sep 07, 2025 at 11:02:10AM +0200, Elizabeth Mattijsen wrote: > > my $content = "example.txt".IO.slurp; # Read file > > $content ~~ s/Hello/Hi/;# Modify content > > spurt $filename, $content; # Write back to file > FWIW, I don't know wh

Re: the new raku.org is really beautiful (and tought about spurt)

2025-09-07 Thread Elizabeth Mattijsen
> On 7 Sep 2025, at 10:51, Marc Chantreux wrote: > I just gave a look on the new raku.org website and would like to > congrat as it's really beautiful. It is :-) > Aside, I saw the example which reminds me an old dicsussion about > "spurt parameters should be flipped" and there is a perfect ex

Re: DateTime: (now.Int) always 37 seconds off from (now)

2025-08-29 Thread yary
> > > > > *From:* Bruce Gray > *Sent:* Friday, August 29, 2025 10:24 AM > *To:* Mark Devine > *Cc:* perl6-users > *Subject:* Re: DateTime: (now.Int) always 37 seconds off from (now) > > > > > > > > On Aug 29, 2025, at 09:14, Mark Devine wrote:

RE: DateTime: (now.Int) always 37 seconds off from (now)

2025-08-29 Thread Mark Devine
e when scanning class DateTime | Raku Documentation<https://docs.raku.org/type/DateTime>, but I’ve got it now. Thanks! Mark From: Bruce Gray Sent: Friday, August 29, 2025 10:24 AM To: Mark Devine Cc: perl6-users Subject: Re: DateTime: (now.Int) always 37 seconds off from (now) On

Re: DateTime: (now.Int) always 37 seconds off from (now)

2025-08-29 Thread Andy Bach
raku -e 'my $inst = now; put $inst, "\t", $inst.Int; put DateTime.new($inst).local, "\t", DateTime.new($inst.Int).local,"\t", DateTime.new($inst).local.truncated-to("second")' Instant:1756479067.146121 1756479067 2025-08-29T09:50:30.146121-05:00 2025-08-29T09:51:07-05:00 2025-08-29T09:50:30-05:00

Re: DateTime: (now.Int) always 37 seconds off from (now)

2025-08-29 Thread Bruce Gray
> On Aug 29, 2025, at 09:14, Mark Devine wrote: > > Rakoons, --snip-- > In the end, I’m looking for elegant mechanics to get DateTime objects from > multiple sources (including now), perform calculations, etc., then produce > this format using .Str: > -MM-DDTHH:MM:SS-04:00 > not this for

Re: vpaste alternative?

2025-08-26 Thread ToddAndMargo via perl6-users
On Mon, Aug 25, 2025 at 5:38 PM ToddAndMargo via perl6-users us...@perl.org > wrote: On 8/25/25 7:43 AM, Andy Bach wrote: > # echo hi mom | nc termbin.com > https://termbin.com/o084 > # curl https

Re: vpaste alternative?

2025-08-26 Thread Tom Browder
On Tue, Aug 26, 2025 at 08:09 yary wrote: > Port accepts a message of what to write. You’ll notice that when you > go to read it it’s not anymore. > I like to use github’s gists -Tom @tbrowder

Re: vpaste alternative?

2025-08-26 Thread yary
Port accepts a message of what to write. You’ll notice that when you go to read it it’s not anymore. -y On Mon, Aug 25, 2025 at 5:38 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 8/25/25 7:43 AM, Andy Bach wrote: > > # echo hi mom | nc termbin.com > > https:

Re: vpaste alternative?

2025-08-25 Thread ToddAndMargo via perl6-users
On 8/25/25 7:43 AM, Andy Bach wrote: # echo hi mom | nc termbin.com https://termbin.com/o084 # curl https://termbin.com/o084 hi mom termbin returns the url to refetch the "pasted" text. That makes sense now. I thought was the TCP port? Is is also the refetch code?

Re: vpaste alternative?

2025-08-25 Thread Andy Bach
.@perl.org Subject: Re: vpaste alternative? CAUTION - EXTERNAL: On 8/23/25 1:37 AM, ToddAndMargo via perl6-users wrote: > On 8/22/25 5:30 PM, William Michels via perl6-users wrote: >> People on the Raku Discord seem to like TermBin: >> >> https://termbin.com/ <https:/

Re: vpaste alternative?

2025-08-23 Thread ToddAndMargo via perl6-users
On 8/23/25 1:37 AM, ToddAndMargo via perl6-users wrote: On 8/22/25 5:30 PM, William Michels via perl6-users wrote: People on the Raku Discord seem to like TermBin: https://termbin.com/ I really do not understand how its is used From: https://termbin.com/ Send so

Re: vpaste alternative?

2025-08-23 Thread ToddAndMargo via perl6-users
On 8/22/25 5:30 PM, William Michels via perl6-users wrote: People on the Raku Discord seem to like TermBin: https://termbin.com/ I really do not understand how its is used

Re: vpaste alternative?

2025-08-22 Thread William Michels via perl6-users
People on the Raku Discord seem to like TermBin: https://termbin.com/ > On Aug 21, 2025, at 16:35, ToddAndMargo via perl6-users > wrote: > > Hi All, > > vpaste.net seems to be permanently down: > > https://urldefense.proofpoint.com/v2/url?u=https-3A__www.isitdownrightnow.com_vpaste.net.html&

Re: #raku et alii down!

2025-07-10 Thread Will Coleda
What do you mean? I'm on IRC right now. On Thu, Jul 10, 2025 at 8:22 AM Tom Browder wrote: > Hi, any idea when the #raku* channels will be back up? I miss my daily > doses of Raku wisdom! > > -Tom (@tbrowder) >

Re: Exit code: -1073741515 ???

2025-07-09 Thread ToddAndMargo via perl6-users
On 7/9/25 4:09 PM, ToddAndMargo via perl6-users wrote: Hi All, Windows 11 I have seen this on two customers now.  It happens randomly. This is Cobian Reflector reading back the exit codes from my programs, which Cobian calls: "ERR The exit code of the program "C:\Program Files\Rakudo\bin\raku

Re: Discussion of problems with $/?

2025-06-22 Thread Elizabeth Mattijsen
Perhaps https://github.com/raku/problem-solving/issues/406 ? > On 22 Jun 2025, at 23:43, Joseph Brenner via perl6-users > wrote: > > I remember seeing something like a problem-solving issue talking about > problems with $/ (or the current behavior of it), and I can't find it at the > moment.

Re: VSS?

2025-06-13 Thread ToddAndMargo via perl6-users
On 6/12/25 6:27 AM, ToddAndMargo via perl6-users wrote: Hi All, Is there any Raku support for Windows VSS (Volume Shadow Copy)? Many thanks, -T I looking to make a shadow copy of a directory or directories, copy from it/them, then remove the shadow. Best I could find is calls to powershell.

Re: How do I do this pop up?

2025-06-12 Thread Timo Paulssen via perl6-users
Hi Todd, for a popup such as this, you will probably need a full GUI library. There are utilities to show very simple GUI dialogs like KDialog (probably linux-only), Zenity (two different windows ports exist, both have been abandoned almost a decade ago). These are all inspired by "dialog" w

Re: How do I do this pop up?

2025-06-12 Thread ToddAndMargo via perl6-users
On 5/21/25 12:19 AM, ToddAndMargo via perl6-users wrote: Hi All, Windows 10/11 How do I do a popup like this?  Well somewhat like this. https://ibb.co/7JQdGJP4 Many thanks, -T Any third party utility that works with Raku to accomplish this?

Re: how do I hide a variable from viewing

2025-06-09 Thread David Vergin
On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users wrote: > > > *From:* ToddAndMargo via perl6-users > > > *Sent:* Tuesday, May 20, 2025 5:29 AM > > > *To:* perl6-users > > > *Subject:* how do I hide a variable from viewing > > > Hi All, > > > > > > Fedora 41 (Linux) > > > >

Re: [Raku/old-design-docs] 1c4e60: Remove Larry's email address.

2025-06-08 Thread Hal Wigoda
I figured that was why. But I had to know (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Jun 8, 2025, at 7:50 AM, Elizabeth Mattijsen wrote: > > No, as far as we know, Larry's fine! Just not that active anymore, > effectively

Re: [Raku/old-design-docs] 1c4e60: Remove Larry's email address.

2025-06-08 Thread Elizabeth Mattijsen
No, as far as we know, Larry's fine! Just not that active anymore, effectively retired. And known to not be very responsive to emails. So it felt like a good idea to make sure that a. he won't be bothered by unnecessary emails, and b. that people with questions will add an issue to the repo o

Re: [Raku/old-design-docs] 1c4e60: Remove Larry's email address.

2025-06-08 Thread Hal Wigoda
why remove Larry Wall’s email? Did he die? (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Jun 8, 2025, at 7:18 AM, Will Coleda via perl6-language > wrote: > >  Branch: refs/heads/master > Home: https://github.com/Raku/old-des

Re: ones and twos compliment

2025-06-07 Thread Bruce Gray
> On Jun 6, 2025, at 21:53, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Is there an easy way to print ones' and two's compliment > of a 32 bit integer? > > Many thanks, > -T > > > sub ones-complement(Int $num) { >my $binary = $num.base(2); >my $complement = ''; >for

Re: ones and twos compliment

2025-06-07 Thread ToddAndMargo via perl6-users
On 6/7/25 12:57 PM, Elizabeth Mattijsen wrote: On 7 Jun 2025, at 21:12, ToddAndMargo via perl6-users wrote: [0] > my int32 $y=-1073741510 -1073741510 [1] > my $ones-complement = +^$y; Bytecode validation error at offset 164, instruction 23: operand type 32 does not match register type 24 for o

Re: ones and twos compliment

2025-06-07 Thread Elizabeth Mattijsen
> On 7 Jun 2025, at 21:12, ToddAndMargo via perl6-users > wrote: > [0] > my int32 $y=-1073741510 > -1073741510 > > [1] > my $ones-complement = +^$y; > Bytecode validation error at offset 164, instruction 23: > operand type 32 does not match register type 24 for op getlex_ni in frame > > > [1]

Re: ones and twos compliment

2025-06-07 Thread ToddAndMargo via perl6-users
On Sat, Jun 7, 2025 at 4:53 AM ToddAndMargo via perl6-users wrote: Is there an easy way to print ones' and two's compliment of a 32 bit integer? Many thanks, -T On 6/7/25 10:22 AM, Paul Procacci wrote: > my $number = 42; > my $ones-complement = +^$number; > my $twos-complement = +^$number

Re: ones and twos compliment

2025-06-07 Thread Paul Procacci
my $number = 42; my $ones-complement = +^$number; my $twos-complement = +^$number + 1; ~Paul On Sat, Jun 7, 2025 at 11:26 AM Will Coleda wrote: > > (You may have to manually paste that URL, gmail cut off the trailing ^ here > when I clicked on my own link) > > On Sat, Jun 7, 2025 at 4:50 PM Wil

Re: ones and twos compliment

2025-06-07 Thread Will Coleda
(You may have to manually paste that URL, gmail cut off the trailing ^ here when I clicked on my own link) On Sat, Jun 7, 2025 at 4:50 PM Will Coleda wrote: > Two's complement (from google search of the docs site): > https://docs.raku.org/language/operators#prefix_+^ > > > > On Sat, Jun 7, 2025

Re: ones and twos compliment

2025-06-07 Thread Will Coleda
Two's complement (from google search of the docs site): https://docs.raku.org/language/operators#prefix_+^ On Sat, Jun 7, 2025 at 4:53 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Is there an easy way to print ones' and two's compliment > of a 32 bit integer? > >

Re: Ecosystem module version v1 to 1?

2025-06-07 Thread Will Coleda
Create a new release with a new version that is in the correct format, e,g. '1.0.1'. You can't edit an existing release. --Regards. On Fri, Jun 6, 2025 at 6:52 PM rir via perl6-users wrote: > It appears that the ecosystem or community prefers modules' strings > without a leading 'v'. > > Since

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-27 Thread Sean McAfee
On Mon, May 26, 2025 at 6:50 AM Richard Hainsworth wrote: > My understanding is that there is a default test so that '.' and '..' > are not returned. So if :test is not specified thats the behaviour you get. > The page I linked to earlier doesn't read that way to me at all: Returns a lazy list

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-26 Thread Richard Hainsworth
On 26/05/2025 12:13, Elizabeth Mattijsen wrote: On 26 May 2025, at 00:34, Sean McAfee wrote: On Sun, May 25, 2025 at 12:32 PM Sean McAfee wrote: I'll have to play around with your code a bit. Normally I would use `.dir(test => /:i \.pdf / )` to pull out PDF files. Oh yeah, that's a bit bett

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-26 Thread Elizabeth Mattijsen
> On 26 May 2025, at 00:34, Sean McAfee wrote: > > On Sun, May 25, 2025 at 12:32 PM Sean McAfee wrote: > I'll have to play around with your code a bit. Normally I would use > `.dir(test => /:i \.pdf / )` to pull out PDF files. > > Oh yeah, that's a bit better. I'm not as familiar with the p

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-25 Thread Sean McAfee
On Sun, May 25, 2025 at 12:32 PM Sean McAfee wrote: > I'll have to play around with your code a bit. Normally I would use >> `.dir(test => /:i \.pdf / )` to pull out PDF files. >> > > Oh yeah, that's a bit better. I'm not as familiar with the path API as I > could be. > ...Huh. I was just mes

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-25 Thread Sean McAfee
On Sat, May 24, 2025 at 2:31 AM William Michels wrote: > Thanks, Sean! > > Do any of the various `PDF` modules work to solve your page-counting quest? > My task was just a one-off, so I didn't look. If I were working on a more permanent program, I'd try to reduce external dependencies in that w

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-24 Thread Clifton Wood
My previous message should read ".say for" instead of "say for". Sorry On Sat, May 24, 2025 at 6:28 AM Clifton Wood wrote: > Just for fun, here's a similar one-liner using File::Find and PDF::Class: > > # Formatted for clarity; > use File::Find; > use PDF::Class; . > say for find( dir => ".", na

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-24 Thread Clifton Wood
Just for fun, here's a similar one-liner using File::Find and PDF::Class: # Formatted for clarity; use File::Find; use PDF::Class; . say for find( dir => ".", name => *.ends-with(".pdf") ).map( sub ($_) { CATCH { default { return 0 } }; say "Checking { .absolute }..."; PDF::Class.ope

Re: raku-toml confusion

2025-05-24 Thread ToddAndMargo via perl6-users
On 5/24/25 2:40 AM, Peter Pentchev wrote: On Fri, May 23, 2025 at 05:44:01PM -0700, ToddAndMargo via perl6-users wrote: Hi All, https://github.com/tony-o/raku-toml In the usage parsing example: Parsing TOML use TOML; my $config = from-toml("config.toml".IO.slurp); # use $c

Re: raku-toml confusion

2025-05-24 Thread Peter Pentchev
On Fri, May 23, 2025 at 05:44:01PM -0700, ToddAndMargo via perl6-users wrote: > Hi All, > > https://github.com/tony-o/raku-toml > > In the usage parsing example: > > Parsing TOML > use TOML; > my $config = from-toml("config.toml".IO.slurp); > # use $config like any ol' hash > >

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-24 Thread William Michels via perl6-users
Thanks, Sean! Do any of the various `PDF` modules work to solve your page-counting quest? I'll have to play around with your code a bit. Normally I would use `.dir(test => /:i \.pdf / )` to pull out PDF files. The closest U&L answer posted for your issue might be: https://unix.stackexchange.c

Re: how do I hide a variable from viewing

2025-05-21 Thread ToddAndMargo via perl6-users
On 5/21/25 5:31 PM, Peter Pentchev wrote: The format itself is described athttps://toml.io/en/ There are libraries for reading and writing TOML files in all of the popular programming languages. Thank you!

Re: how do I hide a variable from viewing

2025-05-21 Thread raf via perl6-users
On Wed, May 21, 2025 at 03:02:58PM +0300, Peter Pentchev wrote: > On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users wrote: > > > > *From:* ToddAndMargo via perl6-users > > > > *Sent:* Tuesday, May 20, 2025 5:29 AM > > > > *To:* perl6-users > > > > *Subject:* how do I hide

Re: how do I hide a variable from viewing

2025-05-21 Thread ToddAndMargo via perl6-users
On 5/21/25 5:31 PM, Peter Pentchev wrote: When you do '. file.ini', you are NOT telling the shell to read an INI-style file, you are telling it to EXECUTE shell commands. Hi Peter, Your exposition was much better written and explained than mine. The only thing I would add is that it becomes p

Re: how do I hide a variable from viewing

2025-05-21 Thread Peter Pentchev
On Wed, May 21, 2025 at 02:51:28PM -0700, ToddAndMargo via perl6-users wrote: > On 5/21/25 5:02 AM, Peter Pentchev wrote: > > On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users > > wrote: > > > > > *From:* ToddAndMargo via perl6-users > > > > > *Sent:* Tuesday, May 20, 2025 5:

Re: how do I hide a variable from viewing

2025-05-21 Thread ToddAndMargo via perl6-users
On 5/21/25 5:02 AM, Peter Pentchev wrote: On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users wrote: *From:* ToddAndMargo via perl6-users *Sent:* Tuesday, May 20, 2025 5:29 AM *To:* perl6-users *Subject:* how do I hide a variable from viewing Hi All, Fedora 41 (Linux) Sinc

Re: Raku one-liners posted on Unix & Linux StackExchange

2025-05-21 Thread Sean McAfee
On Tue, May 20, 2025 at 12:51 PM William Michels via perl6-users < perl6-us...@perl.org> wrote: > If you haven't visited U&L StackExchange, you should! It's much less > 'siloed' than StackOverflow in that an OP might post a question requesting > a bash/sed/awk answer, but other answers are readily

Re: how do I hide a variable from viewing

2025-05-21 Thread Peter Pentchev
On Tue, May 20, 2025 at 10:10:06PM -0700, ToddAndMargo via perl6-users wrote: > > > *From:* ToddAndMargo via perl6-users > > > *Sent:* Tuesday, May 20, 2025 5:29 AM > > > *To:* perl6-users > > > *Subject:* how do I hide a variable from viewing > > > Hi All, > > > > > > Fedora 41 (Linux) > > > >

Re: how do I hide a variable from viewing

2025-05-20 Thread ToddAndMargo via perl6-users
*From:* ToddAndMargo via perl6-users *Sent:* Tuesday, May 20, 2025 5:29 AM *To:* perl6-users *Subject:* how do I hide a variable from viewing Hi All, Fedora 41 (Linux) Since my *.raku can be publicly read, how do I obscure the contents of a variable so other can not read it? Currently what I

Re: how do I hide a variable from viewing

2025-05-20 Thread Mark Devine
Todd, I got tired of having clear-text passwords and other sensitive strings in my raku scripts, so I wrote KHPH for myself for use on Linux/UNIX, then published it. The idea catches criticism because it isn't encryption, but rather just a little obfuscation. Sometimes a little obfuscation is

Re: new win rakudo

2025-05-17 Thread ToddAndMargo via perl6-users
On 5/17/25 5:06 PM, Tom Browder wrote: On Sat, May 17, 2025 at 18:02 ToddAndMargo via perl6-users us...@perl.org > wrote: Hi All, My update program just caught a new update for Windows Rakudo: GetWinRakudo  new update downloaded  2025.04.01 --> 2025.

Re: new win rakudo

2025-05-17 Thread Tom Browder
On Sat, May 17, 2025 at 18:02 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > My update program just caught a new update for Windows Rakudo: > > GetWinRakudo new update downloaded 2025.04.01 --> 2025.05.0 > > https://rakudo.org/downloads > > No idea what the changes are

Re: Who owns the code?

2025-05-17 Thread ToddAndMargo via perl6-users
On Tue, May 13, 2025, 5:24 AM ToddAndMargo via perl6-users us...@perl.org > wrote: Ooops.  that should have said "who" not "how" in the subject line. On 5/13/25 2:22 AM, ToddAndMargo via perl6-users wrote: > Hi All, > > I just got off a

Re: Who owns the code?

2025-05-17 Thread yary
I'm guessing that you are in the USA same as me. Since the contracts didn't say they were buying code they don't own the code. Copyright law would say you own the code. -y On Tue, May 13, 2025, 5:24 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Ooops. that should have said "w

Re: How owns the code?

2025-05-15 Thread ToddAndMargo via perl6-users
On 14 May 2025, at 19:54, ToddAndMargo via perl6-users wrote: On 5/14/25 5:13 AM, Lars Noodén wrote: On 5/14/25 06:54, Clifton Wood wrote: So for sure you own all of the code*prior* to your modifications. As Liz has stated, unless you discuss things with the customer and *he chooses to rel

Re: How owns the code?

2025-05-14 Thread Elizabeth Mattijsen
If you were paid in cash, I wouldn't worry about anything and consider the code yours. > On 14 May 2025, at 19:54, ToddAndMargo via perl6-users > wrote: > > On 5/14/25 5:13 AM, Lars Noodén wrote: >> On 5/14/25 06:54, Clifton Wood wrote: >>> So for sure you own all of the code*prior* to your mo

Re: How owns the code?

2025-05-14 Thread ToddAndMargo via perl6-users
On 5/14/25 5:13 AM, Lars Noodén wrote: On 5/14/25 06:54, Clifton Wood wrote: So for sure you own all of the code*prior* to your modifications. As Liz has stated, unless you discuss things with the customer and *he chooses to relinquish his rights in writing*, then your modifications belong to

Re: How owns the code?

2025-05-13 Thread ToddAndMargo via perl6-users
On 5/13/25 8:54 PM, Clifton Wood wrote: So for sure you own all of the code /prior/ to your modifications. As Liz has stated, unless you discuss things with the customer and /he chooses to relinquish his rights in writing/, then your modifications belong to him. You can't hurt to start a disc

Re: How owns the code?

2025-05-13 Thread Clifton Wood
So for sure you own all of the code *prior* to your modifications. As Liz has stated, unless you discuss things with the customer and *he chooses to relinquish his rights in writing*, then your modifications belong to him. You can't hurt to start a discussion. That would be the best first step.

Re: How owns the code?

2025-05-13 Thread ToddAndMargo via perl6-users
On 5/13/25 3:46 AM, Elizabeth Mattijsen wrote: I'd say, unless you made prior arrangements with the client specifically stating that you own the copyright on the programming work you did, the client owns the rights to the code. Oh it is specific to his installation. And the specific code I w

Re: How owns the code?

2025-05-13 Thread Elizabeth Mattijsen
> On 13 May 2025, at 12:35, ToddAndMargo via perl6-users > wrote: > > On 5/13/25 2:56 AM, Elizabeth Mattijsen wrote: >>> On 13 May 2025, at 11:22, ToddAndMargo via perl6-users >>> wrote: >>> I just got off a YUGE jobs where I installed two servers, a >>> firewall, and redid their networking

Re: How owns the code?

2025-05-13 Thread ToddAndMargo via perl6-users
On 5/13/25 2:56 AM, Elizabeth Mattijsen wrote: On 13 May 2025, at 11:22, ToddAndMargo via perl6-users wrote: I just got off a YUGE jobs where I installed two servers, a firewall, and redid their networking. Part of what I did was a lot of coding to getting things all working as expected. Ques

Re: How owns the code?

2025-05-13 Thread Elizabeth Mattijsen
> On 13 May 2025, at 11:22, ToddAndMargo via perl6-users > wrote: > I just got off a YUGE jobs where I installed two servers, a > firewall, and redid their networking. Part of what I did > was a lot of coding to getting things all working as expected. > > Question: who own the code I created.

Re: Who owns the code?

2025-05-13 Thread ToddAndMargo via perl6-users
Ooops. that should have said "who" not "how" in the subject line. On 5/13/25 2:22 AM, ToddAndMargo via perl6-users wrote: Hi All, I just got off a YUGE jobs where I installed two servers, a firewall, and redid their networking.  Part of what I did was a lot of coding to getting things all work

Re: How do I print a structure?

2025-04-12 Thread ToddAndMargo via perl6-users
`.Str` will only return the object’s identifier by default, but calling `.gist` (or `.raku`) will return code you can run to re-create the object. So to get the same output with `print` like you did with `say`, only without the newline, you can do `print $Partition.gist` or `print $Partition.raku

Re: H9w do I print a structure?

2025-04-12 Thread Tirifto
identifier by default, but calling `.gist` (or `.raku`) will return code you can run to re-create the object. So to get the same output with `print` like you did with `say`, only without the newline, you can do `print $Partition.gist` or `print $Partition.raku`. (`.gist` might not show the entire

Re: rename and unc

2025-04-11 Thread ToddAndMargo via perl6-users
On Apr 3, 2025, at 19:05, ToddAndMargo via perl6-users us...@perl.org> wrote: > On Thu, Apr 3, 2025 at 2:14 AM ToddAndMargo via perl6-users us...@perl.org > wrote: > > And another IO ffunctio that does ot work: > > RotateArchives: renaming directory >

Re: rename and unc

2025-04-11 Thread William Michels via perl6-users
From Raku's `rename` man-page: "Note: some renames will always fail, such as when the new name is on a different storage device. See also: move." https://docs.raku.org/routine/rename HTH, Bill. PS. If you want Raku code fitting a 'create-backup; unlink-original; copy-backup-to-original-locati

Re: I need help with .IO.d.Bool

2025-04-06 Thread ToddAndMargo via perl6-users
On 4/5/25 6:58 PM, ToddAndMargo via perl6-users wrote: sub Directory I changed the name to DirectoryExists The new name is more human friendly

Re: I need help with .IO.d.Bool

2025-04-05 Thread ToddAndMargo via perl6-users
On 4/2/25 6:08 PM, Bruce Gray wrote: On Apr 2, 2025, at 19:47, ToddAndMargo via perl6-users wrote: --snip-- raku -e "say '\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1'.IO.d.Bool;" False --snip-- Moving this one-liner into a .raku file (to remove the complication of Wi

Re: I need help with .IO.d.Bool

2025-04-05 Thread Bruce Gray
> On Apr 2, 2025, at 19:47, ToddAndMargo via perl6-users > wrote: --snip-- > raku -e "say > '\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1'.IO.d.Bool;" > False --snip-- Moving this one-liner into a .raku file (to remove the complication of Windows needing double-quotes for o

Re: rename and unc

2025-04-03 Thread ToddAndMargo via perl6-users
> On Thu, Apr 3, 2025 at 2:14 AM ToddAndMargo via perl6-users us...@perl.org > wrote: > > And another IO ffunctio that does ot work: > > RotateArchives: renaming directory > \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6 to > \\192.168.240.10\o

Re: unc "for" bug

2025-04-03 Thread ToddAndMargo via perl6-users
On Wed, Apr 2, 2025 at 11:37 PM ToddAndMargo via perl6-users us...@perl.org > wrote: Hi All, Windows Server 2025 (souped up W11) raku -v Welcome to RakudoΓäó v2025.02. Now this has to be a bug! Good result: raku -e "for dir Q[C:

Re: unc "for" bug

2025-04-03 Thread yary
What does cmd shell output from dir \\192.168.240.10\oldserver\Backup\MyDocsBackup ? -y On Wed, Apr 2, 2025 at 11:37 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Windows Server 2025 (souped up W11) > > raku -v > Welcome to RakudoΓäó v2025.02. > > Now this has t

Re: rename and unc

2025-04-03 Thread yary
The first 3 characters of the error is telling you the problem C:\192 it's same as in another thread, use Q[\\192 ... instead of '\\192 ... , so that you preserve the backslashes. OR double each backslash- `192.168.240.10\\oldserver ... and then you can keep using variables as you normally

Re: I need help with get-options

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/2/25 8:22 AM, Bruce Gray wrote: my $CommandLine = CommandLineClass.new{    help   => False,    debug  => False,    UNC_BackupPath => Q[\\192.168.240.10\MyDocsBackup\backup1],    rotates    => 2,    ParentDir  => "/" }; The problem is with the syntax of the `new`. Y

Re: I need help with .IO.d.Bool

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/2/25 9:53 PM, ToddAndMargo via perl6-users wrote: On 4/2/25 6:26 PM, Will Coleda wrote: Try printing the Str before you do anything with it to see what happens. I moved to powershell I mean I did a call to powershell to find if a directory existed

Re: I need help with .IO.d.Bool

2025-04-02 Thread Will Coleda
Try printing the Str before you do anything with it to see what happens. (Hint - the backslash character escapes characters in literal strings) On Wed, Apr 2, 2025 at 8:47 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Windows Server 2025 (souped up W11) > > raku -v

Re: I need help with .IO.d.Bool

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/2/25 6:26 PM, Will Coleda wrote: Try printing the Str before you do anything with it to see what happens. I moved to powershell

Re: I need help with .IO.d.Bool

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/2/25 6:08 PM, Bruce Gray wrote: On Apr 2, 2025, at 19:47, ToddAndMargo via perl6-users wrote: --snip-- raku -e "say '\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1'.IO.d.Bool;" False --snip-- Moving this one-liner into a .raku file (to remove the complication of Wi

Re: I need help with get-options

2025-04-02 Thread Bruce Gray
> On Apr 2, 2025, at 05:47, ToddAndMargo via perl6-users > wrote: --snip-- > Hi Bruce, > > Sorry. I do know I am suppose to post some minimal code. > I was programming for 11 straight hours and was not > thinking too clearly. I understand. > I was trying to do what you said. Read it into

Re: I need help with get-options

2025-04-02 Thread ToddAndMargo via perl6-users
On 4/1/25 4:04 PM, Bruce Gray wrote: On Apr 1, 2025, at 03:55, ToddAndMargo via perl6-users wrote: --snip-- I have the following run string: raku C:\NtUtil\RLA.Backup.raku --rotates 345 --UNC_BackupPath \\192.168.240.10\Backup\MyDocsBackup\backup1 --debug use Getopt::Long; # get-opti

Re: I need help with get-options

2025-04-01 Thread Bruce Gray
> On Apr 1, 2025, at 03:55, ToddAndMargo via perl6-users > wrote: --snip-- > I have the following run string: > raku C:\NtUtil\RLA.Backup.raku --rotates 345 --UNC_BackupPath > \\192.168.240.10\Backup\MyDocsBackup\backup1 --debug > > > use Getopt::Long; # get-options > get-options('debug'

Re: I need help with get-options

2025-04-01 Thread ToddAndMargo via perl6-users
Should have said "I need help with get-options"

Re: I need help understanding a match

2025-01-16 Thread ToddAndMargo via perl6-users
On 1/16/25 1:41 AM, Todd Chester via perl6-users wrote: First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. Hi Bill, Don't apologize. You are teaching me at trans light spe

Re: I need help understanding a match

2025-01-16 Thread Todd Chester via perl6-users
Thank you! On 1/13/25 18:20, William Michels via perl6-users wrote: Hi Todd, First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. As per usual I tried a few different appro

Re: Q[] question

2025-01-13 Thread ToddAndMargo via perl6-users
On 1/13/25 2:25 AM, Elizabeth Mattijsen wrote: On 12 Jan 2025, at 04:46, Kevin Pye wrote: On Sun, 12 Jan 2025, at 14:01, ToddAndMargo via perl6-users wrote: Hi All, Is Q[...] the same thing as <...> ? No. Q[…] is the bare quoting construct. There'll be no interpolation of variable

Re: I need help understanding a match

2025-01-13 Thread William Michels via perl6-users
Hi Todd, First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. As per usual I tried a few different approaches to your regex problem, and posted what I thought was the best o

  1   2   3   4   5   6   7   8   9   10   >