From lembark at wrkhors.com Fri Oct 1 15:31:57 2021 From: lembark at wrkhors.com (Steven Lembark) Date: Fri, 1 Oct 2021 18:31:57 -0400 Subject: [Chicago-talk] Chicago-pm Meetup group is expiring and will be removed in 48 hours In-Reply-To: References: <87E76844-76A0-4456-A0C2-687570942EF5@petdance.com> <1628778554.iyix3labs4gwsw88@hostingemail.digitalspace.net> <40b2d818-cda1-f2de-16ba-637d255792ed@alanmead.org> Message-ID: <20211001183157.748dd2e0.lembark@wrkhors.com> On Thu, 12 Aug 2021 21:13:07 +0000 Andy Bach wrote: > I'm in Madison, but I'm willing to put in a couple of beers worth of > a donation whenever it's needed. ________________________________ As Jim pointed out: Is meetup really worth it? The only thing meetup.com provides is the ability to attract new people who otherwise don't know about the group. Catch is that if you charge for membership nobody joins, if it's free you get 200 people who never do anything. One thing to try is renew & charge everyone on the list $1 or something, see how many people sign up at that rate -- at least it'll pay for a month's use. If nobody you don't already know shows up then zap the list. -- Steven Lembark Workhorse Computing lembark at wrkhors.com +1 888 359 3508 From richard at rushlogistics.com Tue Oct 5 07:42:47 2021 From: richard at rushlogistics.com (Richard Reina) Date: Tue, 05 Oct 2021 10:42:47 -0400 Subject: [Chicago-talk] Hello World example for PERL Module Message-ID: <1633444967.nw9obtbcess008sc@hostingemail.digitalspace.net> Can someone help me out with a Hello World example for this module? https://metacpan.org/dist/Device-Blinkytape/view/lib/Device/BlinkyTape/SimulationPort.pm I have used BlinkyTape.pm (like in the code below) but now I would like to do some testing on a machine that does not have a BlinkyTape plugged into it's USB port and am not sure how to get started with?BlinkyTape/SimulationPort.pm Thanks for any help. use strict; use lib '/home/pi/'; use BlinkyTape; use Time::HiRes qw / usleep /; my $bb = Device::BlinkyTape::WS2811->new(); ? for (my $b=0; $b<=100000; $b++) { ? ? for (my $a=0; $a<=59; $a++) { ? ? ? ? $bb->send_pixel(int(rand(254)),int(rand(254)),int(rand(254))); ? ? } ? ? $bb->show(); # shows the sent pixel row. ? ? usleep(400000); } ? From shlomif at shlomifish.org Tue Oct 5 22:07:29 2021 From: shlomif at shlomifish.org (Shlomi Fish) Date: Wed, 6 Oct 2021 08:07:29 +0300 Subject: [Chicago-talk] Hello World example for PERL Module In-Reply-To: <1633444967.nw9obtbcess008sc@hostingemail.digitalspace.net> References: <1633444967.nw9obtbcess008sc@hostingemail.digitalspace.net> Message-ID: <20211006080729.7ed77374@shlomifish.org> Hi Richard, On Tue, 05 Oct 2021 10:42:47 -0400 "Richard Reina" wrote: > Can someone help me out with a Hello World example for this module? > https://metacpan.org/dist/Device-Blinkytape/view/lib/Device/BlinkyTape/SimulationPort.pm > > I have used BlinkyTape.pm (like in the code below) but now I would like to do > some testing on a machine that does not have a BlinkyTape plugged into it's > USB port and am not sure how to get started with?BlinkyTape/SimulationPort.pm > > Thanks for any help. > > use strict; > use lib '/home/pi/'; > use BlinkyTape; > > use Time::HiRes qw / usleep /; > my $bb = Device::BlinkyTape::WS2811->new(); > ? > for (my $b=0; $b<=100000; $b++) { > ? ? for (my $a=0; $a<=59; $a++) { Tangential comment, but see https://perl-begin.org/tutorials/bad-elements/#vars-a-and-b . Also , for reproducible results, you may wish to use srand() or better yet https://metacpan.org/pod/Math::Random::MT or similar. > ? ? ? ? $bb->send_pixel(int(rand(254)),int(rand(254)),int(rand(254))); > ? ? } > ? ? $bb->show(); # shows the sent pixel row. > ? ? usleep(400000); > } > ? > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > https://mail.pm.org/mailman/listinfo/chicago-talk -- Shlomi Fish https://www.shlomifish.org/ https://github.com/shlomif/validate-your-html - Validate Your HTML As it turns out, compiling a C program from more than 20 years ago is actually a lot easier than getting a Rails app from last year to work. ? https://passy.svbtle.com/building-vim-from-1993-today Please reply to list if it's a mailing list post - https://shlom.in/reply .