How do I open Raku in the background?

2020-03-29 Thread ToddAndMargo via perl6-users
Hi All, Windows 10-1909 Pro raku -v This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 implementing Perl 6.d. I am opening Raku from the registry with [HKEY_CLASSES_ROOT\*\shell\OpenWithFileAttributes.pl6\command] @="\"C:\\rakudo\\bin\\raku.exe\"

Re: Tip: if you are chasing ghosts...

2020-04-01 Thread ToddAndMargo via perl6-users
On Wed, Apr 1, 2020 at 4:09 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: all around the Windows version of Raku and are about to pull all your hair out and have run out of swear words (not an admission that I cuss), add --optimize=0 to yo

$FileName.IO.e.Bool and hidden files

2020-04-01 Thread ToddAndMargo via perl6-users
Hi All, In Windows, is there a way to get $FileName.IO.e.Bool to show hidden files? attrib C:\pagefile.sys A SH C:\pagefile.sys raku -e "say 'c:\\pagefile.sys'.IO.e.Bool;" False raku -e "say 'c:\pagefile.sys'.IO.e.Bool;" False Many thanks, -T

Re: Tip: if you are chasing ghosts...

2020-04-01 Thread ToddAndMargo via perl6-users
On 2020-04-01 04:37, Tessa Plum wrote: On 2020/4/1 4:09 下午, ToddAndMargo via perl6-users wrote:     raku --optimize=0 FileAttributes.pl6 I never used this argument. what does it bring to us? Thanks. Hi Tessa, I am not exactly sure what it does. "Optimize" typically works at

Re: Tip: if you are chasing ghosts...

2020-04-01 Thread ToddAndMargo via perl6-users
On 2020-04-01 17:24, ToddAndMargo via perl6-users wrote: It is looking for faster ways of doing what you want. An example would be jump 2 jump 4 jump 6 optimized into jump 12

I need help with the copy command

2020-05-01 Thread ToddAndMargo via perl6-users
Hi All, https://docs.perl6.org/routine/copy (IO::Path) routine copy Defined as: method copy(IO::Path:D: IO() $to, :$createonly --> Bool:D) subcopy(IO() $from, IO() $to, :$createonly --> Bool:D) Copies a file. Returns True on success; fails with X::IO::Copy if

Re: I need help with the copy command

2020-05-01 Thread ToddAndMargo via perl6-users
On Fri, May 1, 2020 at 11:40 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, https://docs.perl6.org/routine/copy (IO::Path) routine copy Defined as: method copy(IO::Path:D: IO() $to, :$createonly --> Bool:D)

I need help with sub MAIN

2020-05-04 Thread ToddAndMargo via perl6-users
Hi All, Just to prove I read the stinker: https://docs.raku.org/routine/MAIN I am trying to get the following to do #!/usr/bin/env perl6 sub MAIN(:$these ="These", :$are="Are") { say "$these $are"; } This is working: $ MainTest.pl6 --are=our --these=those those our These two are not: 1) I

Re: fill in form

2020-05-11 Thread ToddAndMargo via perl6-users
On 2020-05-11 15:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T GTK::Simple does work in Window, but I am at a loss

fill in form

2020-05-11 Thread ToddAndMargo via perl6-users
Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T

Re: How do I handle Getopt::Long stray entries?

2020-05-11 Thread ToddAndMargo via perl6-users
On 2020-05-11 11:48, Peter Pentchev wrote: On Mon, May 11, 2020 at 12:40:05AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-10 23:47, Peter Pentchev wrote: On Sun, May 10, 2020 at 06:20:02PM -0700, ToddAndMargo via perl6-users wrote: Hi All, https://modules.raku.org/dist/Getopt

Re: fill in form

2020-05-12 Thread ToddAndMargo via perl6-users
On 2020-05-11 17:14, ToddAndMargo via perl6-users wrote: On 2020-05-11 15:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city, state, etc., you fill in the data. Is there some library out there for that? Any words of wisdom? Many thanks, -T

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
> Le sam. 16 mai 2020 à 12:16, ToddAndMargo via perl6-users > mailto:perl6-users@perl.org>> a écrit : > > On 2020-05-15 22:30, ToddAndMargo via perl6-users wrote: > > Hi All,. > > > > Windows 7, sp1, x64 > > > > >ra

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-16 05:34, Kevin Pye wrote: The documentation for .d states: Returns |True| if the invocant is a path that exists and is a directory. The method will |fail|  with |X::IO::DoesNotExist| if the path points to a non-existent filesystem entity.

Re: sqrt and Buf question

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-16 14:48, William Michels via perl6-users wrote: Yes, ** stands for exponentiation Thank you!

Re: sqrt and Buf question

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-14 22:26, Peter Pentchev wrote: And what is `2 * 100 ** 2000 `? Is that `(2 x 100)^ 2000` ((2 times 100) to the 2000 power? Point 1: exponentiation has a higher priority than multiplication. Point 2:https://rosettacode.org/wiki/Integer_roots Any chance of you answering the

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-16 06:38, Peter Pentchev wrote: $ raku *-e* "your one-liner script here" And also you might want to put some quotes around the paths to let Raku know that those are strings and not some identifiers or something. G'luck, Peter Hi Peter, This is what goofed me up: $ alias p5

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-16 17:44, Peter Pentchev wrote: On Sat, May 16, 2020 at 03:19:05PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-16 06:38, Peter Pentchev wrote: $ raku *-e* "your one-liner script here" And also you might want to put some quotes around the paths to let Raku know

How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
Hi All, Windows 7 & 10 I want to know if a drive letter exists: K:\Windows\NtUtil>df -kPT Filesystem Type 1024-blocks Used Available Capacity Mounted on C:/Program Files/Git ntfs 40585620 15044068 25541552 38% / D: udf 5294394 5294394

Re: How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 00:52, ToddAndMargo via perl6-users wrote: Hi All, Windows 7 & 10 I want to know if a drive letter exists: K:\Windows\NtUtil>df -kPT Filesystem   Type  1024-blocks  Used Available Capacity Mounted on C:/Program Files/Git ntfs 40585620  15044068  2

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 01:23, Peter Pentchev wrote: On Sat, May 16, 2020 at 06:57:53PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-16 17:44, Peter Pentchev wrote: On Sat, May 16, 2020 at 03:19:05PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-16 06:38, Peter Pentchev wrote: $ raku

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 02:30, Peter Pentchev wrote: You said that you would tack Bool at the end in "if" statements, too. Hi Peter, No wonder. I do not remember saying that, but I could have. My `if` statements look like: if not "%Options".IO.d.Bool { say "Creating %Options";

Re: How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 07:47, Brad Gilbert wrote: Why do you have `.Bool` on all of the `.e` tests? Hi Brad, I do this because it keeps me out of trouble. I want back a yes or no answer, not True or Fail (X::IO::DoesNotExist). And I never remember which IO. will return a True or Fail or which

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 13:04, Peter Pentchev wrote: On Sun, May 17, 2020 at 12:12:51PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-17 03:36, Peter Pentchev wrote: On Sun, May 17, 2020 at 03:01:34AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-17 02:30, Peter Pentchev wrote: You

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 03:50, Elizabeth Mattijsen wrote: [11:50:21]you don.t need the .Bool, .e already returns a Bool [11:53:07] sometimes IO.someletter returns True of Fail, not False. Tacking .Bool on the end, means I don't have to remember which ones [11:57:23] True or Fail. Typo

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 03:36, Peter Pentchev wrote: On Sun, May 17, 2020 at 03:01:34AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-17 02:30, Peter Pentchev wrote: You said that you would tack Bool at the end in "if" statements, too. Hi Peter, No wonder. I do not remem

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 20:28, Paul Procacci wrote: So tack a .Bool at the end. You are coercing a bool to a bool by doing so and hopefully the optimizer is smart enough for people who like to be redundant. ;) Hi Paul, Especially when I can never remember when IO.someletter will return a full True

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 14:43, ToddAndMargo via perl6-users wrote: Although    "say 'yes' if 'h:/'.IO.d" is obscure to me and    "say 'h:/'.IO.d.Bool" is very easy for me to understand. Hi Peter, I think it would help if you knew how my mind worked. `if` to me i

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 21:19, ToddAndMargo via perl6-users wrote: On 2020-05-17 20:28, Paul Procacci wrote: So tack a .Bool at the end. You are coercing a bool to a bool by doing so and hopefully the optimizer is smart enough for people who like to be redundant. ;) Hi Paul, Especially when I can

Re: I need help with IO.e

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 21:48, Paul Procacci wrote: You can check this yourself by looking at the QAST nodes after the static analyzer has had its fill: # diff -u <(perl6 --target=optimize -e '"test".IO.e') <(perl6 --target=optimize -e '"test".IO.e.Bool') Huh. Not sure what I am looking at $ diff

Re: How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
Follow up: When I go to maintain this thing in five days or five years and I have one of those "what the h*** is IO.d.Bool suppose to mean?" moments, I created the follow subs to make the code more readable/maintainable. And mind you I can always look up what IO.d.Bool means in my own IO

Re: How to find if a drive letter exists?

2020-05-17 Thread ToddAndMargo via perl6-users
On 2020-05-17 21:56, ToddAndMargo via perl6-users wrote: Follow up: Thank you for all the help figuring all this out!

Re: I need help with sub MAIN

2020-05-05 Thread ToddAndMargo via perl6-users
On Tue, 5 May 2020, 06:46 ToddAndMargo via perl6-users, mailto:perl6-users@perl.org>> wrote: Hi All, Just to prove I read the stinker: https://docs.raku.org/routine/MAIN I am trying to get the following to do #!/usr/bin/env perl6 su

Re: I need help with sub MAIN

2020-05-10 Thread ToddAndMargo via perl6-users
On 2020-05-05 12:28, yary wrote: Oops my example was missing the important $*USAGE message. And it makes sense to show the wrong named args before the wrong list args. example.raku:   multi sub MAIN(:$these ="These", :$are="Are") { say "$these $are"; };   multi sub MAIN(*@wrong-list,:$these

How do I handle Getopt::Long stray entries?

2020-05-10 Thread ToddAndMargo via perl6-users
Hi All, https://modules.raku.org/dist/Getopt::Long:cpan:LEONT How do I handle stray entries (unknown options) without crashing? Is there some grab bag I can stick all those into? $ GetOptLongTest.pl6 --SomethingExtra Unknown option SomethingExtra in sub get-option at

Re: How do I handle Getopt::Long stray entries?

2020-05-11 Thread ToddAndMargo via perl6-users
On 2020-05-10 23:47, Peter Pentchev wrote: On Sun, May 10, 2020 at 06:20:02PM -0700, ToddAndMargo via perl6-users wrote: Hi All, https://modules.raku.org/dist/Getopt::Long:cpan:LEONT How do I handle stray entries (unknown options) without crashing? Is there some grab bag I can stick all

Re: How do I handle Getopt::Long stray entries?

2020-05-11 Thread ToddAndMargo via perl6-users
On 2020-05-10 23:47, Peter Pentchev wrote: On Sun, May 10, 2020 at 06:20:02PM -0700, ToddAndMargo via perl6-users wrote: Hi All, https://modules.raku.org/dist/Getopt::Long:cpan:LEONT How do I handle stray entries (unknown options) without crashing? Is there some grab bag I can stick all

bash "."?

2020-05-13 Thread ToddAndMargo via perl6-users
Hi All, Do we have anything like Bash's "." statement where we can read in a bunch of values from a .cfg file? (I think it is called "include", but I am not sure.) . /etc/sysconfig/network-scripts/ifcfg-br0 which populates these (and other) variables DEVICE=br0 TYPE=Bridge ONBOOT=yes

Re: fill in form

2020-05-13 Thread ToddAndMargo via perl6-users
On 2020-05-13 14:05, Peter Pentchev wrote: On Wed, May 13, 2020 at 07:58:08AM -0700, Todd Chester via perl6-users wrote: On 12/05/2020 20:44, ToddAndMargo via perl6-users wrote: On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: Hi All, I want to create a fill in form in Windows: city

Re: fill in form

2020-05-13 Thread ToddAndMargo via perl6-users
On 2020-05-13 15:29, ToddAndMargo via perl6-users wrote: 03-grid.p6 does not show how to extract the information. But he does make this comment: Once again we're free to directly define and assign a variable to hold the widget for later on. Which totally blows my mind.

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 01:43, Shlomi Fish wrote: Hi Todd! On Fri, 15 May 2020 00:26:28 -0700 ToddAndMargo via perl6-users wrote: On 2020-05-14 23:57, Shlomi Fish wrote: The INI formats have no official (ISO/etc.) standard, and there are many variations of them. See, for example, the various options

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 01:49, Peter Pentchev wrote: On Fri, May 15, 2020 at 01:24:27AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-15 00:26, ToddAndMargo via perl6-users wrote: On 2020-05-14 23:57, Shlomi Fish wrote: The INI formats have no official (ISO/etc.) standard, and there are many

Re: bash "."?

2020-05-13 Thread ToddAndMargo via perl6-users
On 2020-05-13 22:27, Bruce Gray wrote: On May 13, 2020, at 9:37 PM, ToddAndMargo via perl6-users wrote: Hi All, Do we have anything like Bash's "." statement where we can read in a bunch of values from a .cfg file? (I think it is called "include", but I am not sure

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 15 May 2020, at 20:08, ToddAndMargo via perl6-users wrote: On 2020-05-15 10:37, Elizabeth Mattijsen wrote: There will never be a Perl 6 version. what would you use in place of it? On 2020-05-15 11:28, Elizabeth Mattijsen wrote: > There might be a Raku version > If Shlo

Re: fill in form

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-13 14:05, Peter Pentchev wrote: So... I believe Timo gave you that as an example how to use a grid to position the various controls (buttons, text labels, input fields). You start there, you figure out what text labels, what input fields, what buttons you need, and then you use the

Re: fill in form

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 15:23, Peter Pentchev wrote: On Fri, May 15, 2020 at 02:51:10PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-13 14:05, Peter Pentchev wrote: So... I believe Timo gave you that as an example how to use a grid to position the various controls (buttons, text labels, input

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 17:26, Tom Browder wrote: On Fri, May 15, 2020 at 13:47 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: >> On 15 May 2020, at 20:08, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: >> >>

I need help with IO.e

2020-05-15 Thread ToddAndMargo via perl6-users
Hi All,. Windows 7, sp1, x64 >raku -v This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 implementing Perl 6.d. I am trying to get perl to tell me if a drive letter exists This is from Git's df command: >df -kPT H:\ Filesystem Type 1024-blocks Used Available Capacity

Re: I need help with IO.e

2020-05-16 Thread ToddAndMargo via perl6-users
On 2020-05-15 22:30, ToddAndMargo via perl6-users wrote: Hi All,. Windows 7, sp1, x64 >raku -v This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 implementing Perl 6.d. I am trying to get perl to tell me if a drive letter exists This is from Git's df command: >df

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 13:28, Tom Browder wrote: On Mon, May 18, 2020 at 14:36 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-05-17 22:28, Paul Procacci wrote: ... 'say if "test".IO.d',  and 'say "test".IO.d.Bool' Try: 'say so &quo

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 14:35, Peter Pentchev wrote: My point is that you put a bare "say" without telling it*what* to say, which does something quite specific in both Perl and Raku. That should, at least, explain the error-like message. G'luck, Peter What I was after was to see what impact I had

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 14:22, Peter Pentchev wrote: Please note that in my example a couple of messages ago I did not write "say if 'h:/'.IO.d", I wrote "say 'yes' if 'h:/'.IO.d". The difference is very important and leads directly to the error-like message you got. Hi Peter, I as interested in the

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-17 22:28, Paul Procacci wrote: Don't 'say' anything.  Just let the optimizer spit out the QAST that you are interested in looking at. The following spits out a diff after optimization: # diff -u <(perl6 --target=optimize -e '"test".IO.e') <(perl6 --target=optimize -e

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 15:38, Peter Pentchev wrote: On Mon, May 18, 2020 at 03:18:26PM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-18 14:35, Peter Pentchev wrote: My point is that you put a bare "say" without telling it*what* to say, which does something quite specific in both Per

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
In 2020-05-18 16:11, Peter Pentchev wrote: As an exercise for the reader: once the above sinks in, what exactly will "say if 'h:/'.IO.d" do? It returns the the result of the expression that "if" evaluated. I do know all this. It is easier for me to read the other way.

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 15:44, Tom Browder wrote: On Mon, May 18, 2020 at 16:19 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-05-18 13:28, Tom Browder wrote: ... > Try: > > 'say so "test".IO.d' Todd, you didn't try what I su

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 16:01, Tom Browder wrote: Since you don't like to listen to advice I give up. Tom! I listen to your advice ALL-THE-TIME. I was just interested in something else. And when I did not understand the result, your way or my way, I abandoned the effort, especially since I did not

Re: I need help with IO.e

2020-05-18 Thread ToddAndMargo via perl6-users
On 2020-05-18 17:14, Peter Pentchev wrote: On Mon, May 18, 2020 at 04:53:31PM -0700, ToddAndMargo via perl6-users wrote: In 2020-05-18 16:11, Peter Pentchev wrote: As an exercise for the reader: once the above sinks in, what exactly will "say if 'h:/'.IO.d" do? It returns the

Re: I need help with IO.e

2020-05-19 Thread ToddAndMargo via perl6-users
On 2020-05-18 22:58, ToddAndMargo via perl6-users wrote: On 2020-05-18 17:14, Peter Pentchev wrote: On Mon, May 18, 2020 at 04:53:31PM -0700, ToddAndMargo via perl6-users wrote: In 2020-05-18 16:11, Peter Pentchev wrote: As an exercise for the reader: once the above sinks in, what exactly

Re: sqrt and Buf question

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-14 08:13, Bruce Gray wrote: On May 14, 2020, at 7:27 AM, ToddAndMargo via perl6-users wrote: Hi All, 1) how do I get 40 or more digits out of sqrt? —snip— Use an Integer Root algorithm on ($number-you-want-the-root-of * 100 ** $number-of-digits-you-want), then shift

Re: How do I handle Getopt::Long stray entries?

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-11 21:19, Peter Pentchev wrote: #!/usr/bin/env raku use v6.d; use Getopt::Long; sub cmd_install($cmd, Array[Str] :$enablerepo = [], Bool :$y = False, *@rest --> int) { say 'install'; dd $cmd; dd @rest; dd $enablerepo; dd $y; return

Re: bash "."?

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-14 08:22, Peter Pentchev wrote: On Thu, May 14, 2020 at 04:39:18AM -0700, ToddAndMargo via perl6-users wrote: On 2020-05-13 22:27, Bruce Gray wrote: On May 13, 2020, at 9:37 PM, ToddAndMargo via perl6-users wrote: Hi All, Do we have anything like Bash's "." statemen

Re: sqrt and Buf question

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-14 05:51, Tobias Boege wrote: On Thu, 14 May 2020, ToddAndMargo via perl6-users wrote: Hi All, 1) how do I get 40 or more digits out of sqrt? Meaningful digits? In this instance, I do not care about meaningful. I only care about the noise. Just has to be repeatable. I may

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-14 23:57, Shlomi Fish wrote: (note that I comaintain it now). Then it will be awesome! Thank yuo!

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-14 23:57, Shlomi Fish wrote: The INI formats have no official (ISO/etc.) standard, and there are many variations of them. See, for example, the various options that https://metacpan.org/pod/Config::IniFiles accepts (note that I comaintain it now). I will be playing with them

Re: sqrt and Buf question

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-14 05:51, Tobias Boege wrote: On Thu, 14 May 2020, ToddAndMargo via perl6-users wrote: Hi All, 1) how do I get 40 or more digits out of sqrt? Meaningful digits? Not possible as sqrt uses limited precision. I think the IEEE 754 doubles that I would suspect to be used internally

Re: bash "."?

2020-05-15 Thread ToddAndMargo via perl6-users
On 2020-05-15 00:26, ToddAndMargo via perl6-users wrote: On 2020-05-14 23:57, Shlomi Fish wrote: The INI formats have no official (ISO/etc.) standard, and there are many variations of them. See, for example, the various options that https://metacpan.org/pod/Config::IniFiles  accepts (note

sqrt and Buf question

2020-05-14 Thread ToddAndMargo via perl6-users
Hi All, 1) how do I get 40 or more digits out of sqrt? 2) how to I assist those bytes to a 40 (or more) byte long Buf? This obviously does not work: my Num $x = 3.sqrt; my Buf $y = Buf.new($x) Type check failed in initializing element #0 to Buf; expected uint8 but got Num

Re: bash "."?

2020-05-14 Thread ToddAndMargo via perl6-users
On 2020-05-13 22:27, Bruce Gray wrote: On May 13, 2020, at 9:37 PM, ToddAndMargo via perl6-users wrote: Hi All, Do we have anything like Bash's "." statement where we can read in a bunch of values from a .cfg file? (I think it is called "include", but I am not sure

Re: fill in form

2020-05-12 Thread ToddAndMargo via perl6-users
> On 12/05/2020 00:47, ToddAndMargo via perl6-users wrote: >> Hi All, >> >> I want to create a fill in form in Windows: city, >> state, etc., you fill in the data. >> >> Is there some library out there for that? >> >> Any words of wisdom? &

OAuth2?

2020-03-18 Thread ToddAndMargo via perl6-users
Hi Guys, This is a long shot, but have any of you figured out how to send eMail through G-Mail with OAuth2? I have a module that uses cURL, but I can't figure out how to get it to work with OAuth2. RFE: please support OAuth2 https://github.com/retupmoca/P6-Net-SMTP/issues/24 Is in the works,

Re: OAuth2?

2020-03-21 Thread ToddAndMargo via perl6-users
On 2020-03-18 18:42, ToddAndMargo via perl6-users wrote: Hi Guys, This is a long shot, but have any of you figured out how to send eMail through G-Mail with OAuth2? I have a module that uses cURL, but I can't figure out how to get it to work with OAuth2. RFE: please support OAuth2 https

star 2020.02 ?

2020-03-22 Thread ToddAndMargo via perl6-users
I am not finding 2020.02 over on https://rakudo.org/downloads/star/ Am I missing something?

Re: star 2020.02 ?

2020-03-22 Thread ToddAndMargo via perl6-users
On 2020-03-22 02:19, ToddAndMargo via perl6-users wrote: El dom., 22 mar. 2020 a las 9:50, ToddAndMargo via perl6-users (mailto:perl6-users@perl.org>>) escribió: I am not finding 2020.02 over on https://rakudo.org/downloads/star/ Am I missing something? -- JJ On 2020

Re: star 2020.02 ?

2020-03-22 Thread ToddAndMargo via perl6-users
El dom., 22 mar. 2020 a las 9:50, ToddAndMargo via perl6-users (<perl6-users@perl.org>) escribió: I am not finding 2020.02 over on https://rakudo.org/downloads/star/

Re: OAuth2?

2020-03-22 Thread ToddAndMargo via perl6-users
On 2020-03-21 22:56, Peter Scott wrote: On 3/21/20 2:20 PM, ToddAndMargo via perl6-users wrote: On 2020-03-18 18:42, ToddAndMargo via perl6-users wrote: This is a long shot, but have any of you figured out how to send eMail through G-Mail with OAuth2? I have a module that uses cURL, but I

Re: star 2020.02 ?

2020-03-22 Thread ToddAndMargo via perl6-users
On 2020-03-22 04:38, JJ Merelo wrote: El dom., 22 mar. 2020 a las 10:20, ToddAndMargo via perl6-users (mailto:perl6-users@perl.org>>) escribió: El dom., 22 mar. 2020 a las 9:50, ToddAndMargo via perl6-users (mailto:perl6-users@perl.org>>) escribió: I am

Re: OAuth2?

2020-03-22 Thread ToddAndMargo via perl6-users
On 2020-03-21 22:56, Peter Scott wrote: On 3/21/20 2:20 PM, ToddAndMargo via perl6-users wrote: On 2020-03-18 18:42, ToddAndMargo via perl6-users wrote: This is a long shot, but have any of you figured out how to send eMail through G-Mail with OAuth2? I have a module that uses cURL, but I

Re: OAuth2?

2020-03-22 Thread ToddAndMargo via perl6-users
On 2020-03-22 10:39, Tom Browder wrote: On Sun, Mar 22, 2020 at 8:25 AM Gerard ONeill > wrote: Just looked at the stackoverflow post — there are 3 updates with respect to needing to reauthenticate. Have you folks checked out Raku module

Re: OAuth2?

2020-03-22 Thread ToddAndMargo via perl6-users
On 2020-03-22 16:43, Tom Browder wrote: On Sun, Mar 22, 2020 at 17:05 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-03-22 10:39, Tom Browder wrote: > Have you folks checked out Raku module "OAuth2::Client::Google"? ... Any chance

Re: OAuth2?

2020-03-22 Thread ToddAndMargo via perl6-users
On 2020-03-22 16:43, Tom Browder wrote: On Sun, Mar 22, 2020 at 17:05 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-03-22 10:39, Tom Browder wrote: > Have you folks checked out Raku module "OAuth2::Client::Google"? ... Any chance

Re: OAuth2?

2020-03-23 Thread ToddAndMargo via perl6-users
On 23/03/2020 04:34, ToddAndMargo via perl6-users wrote: On 2020-03-22 16:43, Tom Browder wrote: On Sun, Mar 22, 2020 at 17:05 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote:     On 2020-03-22 10:39, Tom Browder wrote: > Have you folks checked out Raku modul

Re: OAuth2?

2020-03-23 Thread ToddAndMargo via perl6-users
On 2020-03-23 18:31, Timo Paulssen wrote: The link was just missing a "../" at the beginning. The example code lives here: https://github.com/tbrowder/Google-API-Client/blob/master/eg/get-calendar-data.p6 Hope that helps   - Timo $ raku SendMailOAuth.pm6 No client_id.json in block

zef and tar.gz

2020-03-23 Thread ToddAndMargo via perl6-users
Hi All, What is this all about? Rakudo Star forget another dependency? psunzip? Windows 7, x64 SP1 K:\Windows\NtUtil>raku -v This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 implementing Perl 6.d. K:\Windows\NtUtil>zef install OAuth2::Client::Google ===> Searching for:

I need help sorting a list

2020-05-24 Thread ToddAndMargo via perl6-users
Hi All, https://docs.raku.org/routine/sort I need help sorting a list. This is the list of values I want to sort: H:\MyDocsBackup\backup1 H:\MyDocsBackup\backup2 H:\MyDocsBackup\backup126 H:\MyDocsBackup\backup3 H:\MyDocsBackup\backup33 H:\MyDocsBackup\backup6 This is what I want back:

Tip: erase an array

2020-05-23 Thread ToddAndMargo via perl6-users
Hi All, How to erase an array is missing from the docs. I just open a case on it: https://github.com/Raku/doc/issues/3423 In the mean time, to erase/empty an array: @x = Empty; @x = (); Both work. `Empty` is a bit more human readable :-) -T

Re: liens and :chomp question

2020-08-30 Thread ToddAndMargo via perl6-users
On 2020-08-29 23:09, Tobias Boege wrote: On Sat, 29 Aug 2020, ToddAndMargo via perl6-users wrote: Hi All, I am trying to figure out how to use line with :$chomp. Now what am I doing wrong? $ alias p6 alias p6='perl6 -e' $ p6 'say "Lines.txt".IO.open.lines(:chomp)[3,2];' (Lin

Re: liens and :chomp question

2020-08-30 Thread ToddAndMargo via perl6-users
On 2020-08-30 00:35, Tobias Boege wrote: On Sun, 30 Aug 2020, ToddAndMargo via perl6-users wrote: - You are calling .lines on the value of .IO.open which is an IO::Handle. IO::Handle.lines does not take a named argument :chomp, so passing one is useless. That explains

Re: lines :$nl-in question

2020-08-30 Thread ToddAndMargo via perl6-users
On 2020-08-30 00:48, Brad Gilbert wrote: Invocant is in the dictionary though. In fact it is from Latin. Origin & history:   Derived from in- + vocō ("I call"). Verb:   I invoke   I call (by name) In fact that is pretty close to the same meaning as it is used in the Raku docs. It is

Re: lines :$nl-in question

2020-08-30 Thread ToddAndMargo via perl6-users
On Sat, Aug 29, 2020 at 9:05 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: And if you would not mind, what is the official name of variables that begin with ":" On 2020-08-30 00:43, Brad Gilbert wrote: There are no vari

How to I modify what is a new line in lines?

2020-08-30 Thread ToddAndMargo via perl6-users
Hi All, https://docs.raku.org/type/IO::Path#method_lines method lines(IO::Path:D: :$chomp = True, :$enc = 'utf8', :$nl-in = ["\x0A", "\r\n"], |c --> Seq:D) How do I change what lines sees as a new line. Is it :$nl-in? A tab in this case. Some of my missteps: $ p6 'my $x="a\tb\tc\td\t";

Re: lines :$nl-in question

2020-08-29 Thread ToddAndMargo via perl6-users
On 2020-08-29 17:04, ToddAndMargo via perl6-users wrote: On 2020-08-28 23:51, Tobias Boege wrote:    - :$chomp, :$enc, :$nl-in which are passed on to the open call in the first bullet point above, Hi Tobias, I am in process of revising my keeper on lines. May I talk you out of examples

liens and :chomp question

2020-08-29 Thread ToddAndMargo via perl6-users
Hi All, I am trying to figure out how to use line with :$chomp. Now what am I doing wrong? $ alias p6 alias p6='perl6 -e' $ p6 'say "Lines.txt".IO.open.lines(:chomp)[3,2];' (Line 3 Line 2) $ p6 'say "Lines.txt".IO.open.lines(:!chomp)[3,2];' (Line 3 Line 2) I am looking for Line 3 Line 2

Re: Reminder: Fill Raku's user survey!

2020-08-30 Thread ToddAndMargo via perl6-users
El dom., 30 ago. 2020 a las 11:34, ToddAndMargo (>) escribió: On 2020-08-30 02:26, JJ Merelo wrote: > Hi, > Here's the link > https://docs.google.com/forms/d/e/1FAIpQLSdRPBdn1iRN_sT8BMNMOBhVbEY1u8ngZWVwLyM37sqsa4OLwQ/viewform > >

Re: Reminder: Fill Raku's user survey!

2020-08-30 Thread ToddAndMargo via perl6-users
On 2020-08-30 02:26, JJ Merelo wrote: Hi, Here's the link https://docs.google.com/forms/d/e/1FAIpQLSdRPBdn1iRN_sT8BMNMOBhVbEY1u8ngZWVwLyM37sqsa4OLwQ/viewform It'll take you five minutes, top. Answers will be summarized and carefully considered. Thanks! -- JJ Hi JJ, I missed one when I

Re: liens and :chomp question

2020-08-30 Thread ToddAndMargo via perl6-users
On Sat, Aug 29, 2020 at 10:15 PM ToddAndMargo via perl6-users wrote: Hi All, I am trying to figure out how to use line with :$chomp. Now what am I doing wrong? $ alias p6 alias p6='perl6 -e' $ p6 'say "Lines.txt".IO.open.lines(:chomp)[3,2];' (Line 3 Line 2) $ p6 'say

Re: lines :$nl-in question

2020-08-30 Thread ToddAndMargo via perl6-users
On 2020-08-30 02:00, Richard Hainsworth wrote: While your logical transitions move you down some interesting rabbit holes, if you are going to say stuff, at least check first. On 30/08/2020 00:39, ToddAndMargo via perl6-users wrote: On 2020-08-28 23:51, Tobias Boege wrote: You do realize

Re: liens and :chomp question

2020-08-31 Thread ToddAndMargo via perl6-users
On 2020-08-30 08:16, yary wrote: Looking up https://docs.raku.org/routine/lines shows a Table of Contents with class Cool (Cool) routine lines class Supply (Supply) method lines class Str (Str) routine lines class IO::CatHandle (IO::CatHandle) method lines

Re: lines :$nl-in question

2020-08-30 Thread ToddAndMargo via perl6-users
> Origin & history: >   Derived from in- + vocō ("I call"). > > Verb: >   I invoke >   I call (by name) > > In fact that is pretty close to the same meaning as it is used in the Raku docs. > > It is the object that we are calling (aka invoking) a method on. Maybe we

Re: lines :$nl-in question

2020-08-30 Thread ToddAndMargo via perl6-users
On 2020-08-30 07:43, yary wrote: The :foo syntax is called a "colon pair" Thank you!

<    4   5   6   7   8   9   10   11   12   13   >