Re: Are there any ALSA Perl Modules?

2024-01-29 Thread Shlomi Fish
hi Martin, On Mon, 29 Jan 2024 22:38:27 -0600 "Martin McCormick" wrote: > Shlomi Fish writes: > > hi Martin, > > you can try using an FFI, eg: > > > > https://metacpan.org/dist/Inline-C/view/lib/Inline/C.pod > > > > https://metacpan.org/

Re: Are there any ALSA Perl Modules?

2024-01-28 Thread Shlomi Fish
n/view/Python.pod https://metacpan.org/pod/FFI::Platypus > Any good ideas are greatly appreciated, here. > > Martin McCormick > -- Shlomi Fish https://www.shlomifish.org/ Selina Mandrake - The Slayer (Buffy parody) - https://shlom.in/selina If the miller trav

Re: Knowledge for a basic programmer and advanced programmer

2024-01-02 Thread Shlomi Fish
> hi William, I answered many of your questions in the FAQs I comaint. List here: https://www.shlomifish.org/meta/FAQ/which_faqs_do_you_comaint.xhtml -- Shlomi Fish https://www.shlomifish.org/ Parody of "The Fountainhead" - https://shlom.in/towtf Golden rule #12: When the

Re: Performance Issue

2023-06-16 Thread Shlomi Fish
is very slow. The server > hardware is similar (RAM / Speed disk, CPU ...) > Have you some ideas about this issue ? > please see: https://perl-begin.org/topics/optimising-and-profiling/ . > Perl Version on Rocky Linux 8 is 5.26 > Perl Version on Centos 7 is 5.16 > > Thank

Re: Recommendations for setting up local Perl dev environment

2023-05-23 Thread Shlomi Fish
note that it seems like windows will become more GNU-like: https://www.shlomifish.org/humour/bits/facts/Windows-Update/#see_also -- Shlomi Fish https://www.shlomifish.org/ Parody of "The Fountainhead" - https://shlom.in/towtf "Consistency requires you to be as ignorant today a

Re: json to disk

2023-05-23 Thread Shlomi Fish
hi, Tom, On Tue, 23 May 2023 11:53:25 +0800 "Tom Reed" wrote: > Hello list, > > How can I sync json object to disk? so that other processes (or next > startup) can use this json. > see https://metacpan.org/pod/JSON::MaybeXS ; make sure to use 'canonical'. >

Re: How to can develop a program

2022-08-01 Thread Shlomi Fish
re, algorithms, > syntax, tools). I certainly have experience with C but never I make a long > program in Perl. see: 1. https://perl-begin.org/ 2. https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md 3. https://perl-begin.org/FAQs/freenode-perl/

Re: Which distribution of PERL to use

2022-07-05 Thread Shlomi Fish
Zia wrote: > > Hello, > >   Which one of the PERL distribution should I use on windows 11. > > regards > > Faiz ul haque Zeya > > Senior Associate professor BUKC > -- Shlomi Fish https://www.shlomifish.org/ https://www.shlomifish.org/lecture/C-and-C

Re: A Philosophical Point To Be Made: The Truth

2021-10-26 Thread Shlomi Fish
> > Brandon McCaig < > bamb...@castopulence.org> > Castopulence Software <https://www.castopulence.org/> > Blog <https://www.bambams.ca/ <http://www.bambams.ca/>> > perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }. > q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};

Re: socket recive problem

2021-04-04 Thread Shlomi Fish
* https://perl-begin.org/uses/multitasking/ ( IO::Async / etc.) * https://metacpan.org/pod/IO::Socket and https://metacpan.org/pod/IO::Socket::IP . > uri > > -- Shlomi Fish https://www.shlomifish.org/ Emma Watson Factoids - https://shlom.in/emwatson-facts Sarah: Tell you what,

Re: perl's pulsar client

2021-01-26 Thread Shlomi Fish
https://www.cpan.org/misc/cpan-faq.html If you want, you can pay someone to do the work for you. I charge 50 USD / hour and abide by https://www.shlomifish.org/humour/fortunes/show.cgi?id=shlomif-multiply-by-pi , but there are other contractors you can hire. -- Shlomi Fish https://www.sh

Re: question about change text in frame

2020-12-01 Thread Shlomi Fish
; "x"); > $labeled_frame2->Label(-text => "de ma de")->pack(); > > > i try > with this > $labeled_frame2->configure (-text=>"BaoBABB"); > $mw->update(); > > but if is a simple label like this : > $mw->Label(-

Re: IO::Socket::Multicast::mcast_send

2020-04-05 Thread Shlomi Fish
sier to spot). > > I've just used a command recently that allows me to access the specific ip > and port of the lamp and it indicates the connection is successful. I'm out > of ideas and if anyone can advise I'd appreciate it. > > Slightly (very) out of my depth when it comes to ports

Re: Unsatisfied dependencies detected during OALDERS/HTTP-Date-6.05.tar.gz

2020-01-29 Thread Shlomi Fish
prepared > ... > > I believe this break is partially due to building artifacts during > 'make install'. The GNU Coding Standards explicitly states _DO NOT DO > IT_. The only time things get built is during 'make'. > > Does anyone know how to work around this (or any of the

Re: How to remove BerkleyDB dependency when building Perl from sources

2020-01-28 Thread Shlomi Fish
1.0.2 last month). > > How do I remove or disable the BerkleyDB dependency? > You can try editing the "Configure" script by hand. It is written in https://en.wikipedia.org/wiki/Bourne_shell . I recall trying to use Red Hat Linux 6.2 in a vbox VM and giving up after the new openss

Re: reading data from a web site

2019-11-20 Thread Shlomi Fish
client? > Hi! See: https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#how-can-i-write-code-to-perform-operations-on-web-sites-for-me-that-otherwise-should-be-done-manually (short URL: https://is.gd/ExAHTa ) Regards, Shlomi --

Re: XML::Feed.pm perl on CentOS 7

2019-09-03 Thread Shlomi Fish
/cpan/wrappers-for-distributions/ > /Lars > -- ----- Shlomi Fish http://www.shlomifish.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Problem executing command via ssh

2019-08-27 Thread Shlomi Fish
Hi Eliza, On Mon, 26 Aug 2019 18:37:10 +0800 Eliza wrote: > Hello, > > on 2019/8/26 18:06, Shlomi Fish wrote: > > seehttps://perl-begin.org/uses/remote-login-and-commands/ - use a CPAN > > dist. Also note thathttps://metacpan.org/pod/IPC::Run is a commonly cited > >

Re: Problem executing command via ssh

2019-08-26 Thread Shlomi Fish
works well. However, my program only reads the first line, and then > terminates. > > If I do a manual test, and do ssh u...@remotehost.com, and type multiple > lines of input, then things work as expected. > > Any clues? > > Thanks! > -m --

Re: Open and perl sub

2019-08-08 Thread Shlomi Fish
n.wikipedia.org/wiki/Fork_(system_call) , https://duckduckgo.com/?q=dup+unix=v140-1=web , "open >&" , etc. > Thanks -- --------- Shlomi Fish http://www.shlomifish.org/ Best Introductory Programming Language - h

Re: how to catch die in a module

2019-08-08 Thread Shlomi Fish
dle with it? > > > > Thank you. > > Eliza > > > > -- > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > For additional commands, e-mail: beginners-h...@perl.org > > http://learn.perl.org/ > > > > > > --

Re: Install Problems: Net::Google::Spreadsheets

2019-08-05 Thread Shlomi Fish
test harness failed > MIYAGAWA/XML-Atom-0.42.tar.gz: make_test NO one dependency > not OK (XML::XPath) > DANJOU/Net-Google-DataAPI-0.2805.tar.gz : make_test NO one dependency > not OK (XML::Atom); additionally test harness failed > HIROSE/Net-Google-Spreadshe

Re: Device::SerialPort on debian Buster

2019-07-11 Thread Shlomi Fish
/[\,\s\.\-\+\_0-9A-Za-z]/ ) {#printable > $response = $response . $char; use .= and you can use https://perldoc.perl.org/functions/join.html and regex matches. it is good that you follow https://perl-begin.org/tutorials/bad-elements/#using-character-classes-with-unicode-text . > }#printable > }# > print "$response\n"

Re: stupid question about to protect source code of perl web application scripting

2019-07-08 Thread Shlomi Fish
eing grateful and thank > you and plus I said to anyone that I am the one who solved if instead of > your name. > I understand now, thanks. That seems like a very ungrateful and "bastard"y thing to do. I won't like it, but not sure how i'll act. -- ---

Re: stupid question about to protect source code of perl web application scripting

2019-07-08 Thread Shlomi Fish
ert yet in perl and still learning although I know perl > when I got still in my university 19 years ago. > > regards, > > Eko Budiharto > > -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swa

Re: stupid question about to protect source code of perl web application scripting

2019-07-07 Thread Shlomi Fish
rypt-my-source-code-to-prevent-end-users-from-learning-how-it-works This question is very old... -- - Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/bits/facts/Summer-Glau/ Cogito cogito ergo cogit

Re: PAUSE

2019-06-30 Thread Shlomi Fish
.mflan.com/temp/pause.jpg > > If anybody can notify the PAUSE people that the PAUSE > program appears to be broke, please do. > > > > Mike > -- --------- Shlomi Fish http://www.shlomifish.org/ Understand what

Re: can I use some kind of binary string?

2019-05-18 Thread Shlomi Fish
Hi, On Sat, 18 May 2019 14:02:46 +0200 hwilmer wrote: > On 5/16/19 9:56 PM, Shlomi Fish wrote: > > On Thu, 16 May 2019 13:13:16 +0200 > > hwilmer wrote: > > > >> On 5/11/19 11:07 AM, Shlomi Fish wrote: > [...] > >>>> So I would wa

Re: can I use some kind of binary string?

2019-05-16 Thread Shlomi Fish
On Thu, 16 May 2019 13:13:16 +0200 hwilmer wrote: > On 5/11/19 11:07 AM, Shlomi Fish wrote: > > Hi hwilmer, > > > > On Fri, 10 May 2019 19:09:50 +0200 > > hwilmer wrote: > > > >> Hi, > >> > >> I would like to use curl to re

Re: can I use some kind of binary string?

2019-05-11 Thread Shlomi Fish
he web server, > regardless whether I save it to an intermediate file or not. > > To make things more difficult, the web server is using a self-signed > certificate. > -- - Shlomi Fish http://www.shlomifish.org/ http:

Re: proper use of TEMPLATE

2019-03-14 Thread Shlomi Fish
why. > an empty string should be fine. > Perhaps there’s even a whole better way to approach this! I will be grateful > to chew over any and all comments you experienced people send me. Thanks! > > Rick Triplett -- ---

Re: covert perl code to binary

2019-01-17 Thread Shlomi Fish
obvious that this is not a > solution either. > > Perl is good only when is not necessary to hide the code, for example for > very complex web-based apps that can't be replaced with an already-made free > CMS, or for special programs that run on a server by a

Re: covert perl code to binary

2019-01-11 Thread Shlomi Fish
b2 .) Otherwise perhaps https://metacpan.org/pod/B::C will work for you or you can try paying a C programmer to translate the code for you (I can do that!). > With regards > Uday V G -- ----- Shlomi Fish http://www.shlomifish.o

Re: Perl Email and WuFoo Forms.

2018-10-04 Thread Shlomi Fish
se-should-be-done-manually (short URL: https://is.gd/Tjo3KR .) Regards, Shlomi > Thanks, > James -- ----- Shlomi Fish http://www.shlomifish.org/ List of Text Processing Tools - http://shlom.in/text-proc Skill wit

Re: reading form values from POST

2018-09-03 Thread Shlomi Fish
https://plackperl.org/ * https://metacpan.org/release/CGI-Minimal Thanks to Uri too. Regards, Shlomi Fish > foreach my $pair (@name_value_pairs){ > my ($key, $value) = split /=/, $pair; > chomp ($key, $value); > $pf{$key} = $value; > } > return

Re: slurp error

2018-08-06 Thread Shlomi Fish
//www.reddit.com/r/perl/comments/3hfsqt/fileslurp_is_broken_and_wrong/ for better alternatives to File::Slurp . > my $text = read_file( $file_to_convert ) ; > $text =~ s/\r/\n/g; > $text =~ s/\x0b//g ; > > no need for xms if you aren't using those features. > > uri > >

Re: tie a hash to a file

2018-08-01 Thread Shlomi Fish
l-begin.org/uses/databases/ . I also maintain this page - http://www.shlomifish.org/open-source/resources/databases-list/ . -- --------- Shlomi Fish http://www.shlomifish.org/ UNIX Fortune Cookies - http://www.shlomifish.org/humour/f

Re: regex to get the rpm name version

2018-07-27 Thread Shlomi Fish
* http://perl-begin.org/topics/regular-expressions/ * https://github.com/aloisdg/awesome-regex * https://www.regular-expressions.info/ > > > > Thanks, > > > > > -- - Shlomi Fish http:

Re: regex matches Chinese characters

2018-07-26 Thread Shlomi Fish
US.UTF-8" > LC_PAPER="en_US.UTF-8" > LC_NAME="en_US.UTF-8" > LC_ADDRESS="en_US.UTF-8" > LC_TELEPHONE="en_US.UTF-8" > LC_MEASUREMENT="en_US.UTF-8" > LC_IDENTIFICATION="en_US.UTF-8" > LC_ALL= > >

Re: interpolation without double quotes

2018-07-05 Thread Shlomi Fish
On Thu, 5 Jul 2018 09:58:52 -0500 p...@reason.net wrote: > Many thanks to Shlomi and Uri: as always, you’ve greatly boosted my > understanding of Perl! — Rick > You're welcome. -- ----- Shlomi Fish http://www.shlom

Re: interpolation without double quotes

2018-07-04 Thread Shlomi Fish
tes. > > Thanks! > > Rick Triplett -- ----- Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/ After all is said and done, a hell of a lot more is said than done. — Unclea

Re: Replacing 10 year old web server

2018-06-29 Thread Shlomi Fish
f-installed-cpan-modules . Found in a google search. -- ----- Shlomi Fish http://www.shlomifish.org/ What Makes Software Apps High Quality - http://shlom.in/sw-quality XSLT is the number one cause of programmers’ suicides s

Re: can not locate installe module

2018-06-14 Thread Shlomi Fish
On Mon, 4 Jun 2018 11:20:53 +0100 Gary Stainburn wrote: > On Monday 04 June 2018 10:39:28 Shlomi Fish wrote: > > is there anything in https://en.wikipedia.org/wiki/Environment_variable ? > > I do have some interesting perl settings, although I have no idea where they &

Re: Removing a Pattern using a Regular Expression

2018-06-14 Thread Shlomi Fish
Hi Dmitri, On Thu, 14 Jun 2018 11:34:34 +0300 Дмитрий Ананьевский wrote: > On Wed, 13 Jun 2018 21:21:12 -0500 > "Martin McCormick" wrote: > > > I wrote a small perl program to more quickly read all the > > subjects in an email list. One of the things the script does is > > to remove the

Re: Removing a Pattern using a Regular Expression

2018-06-14 Thread Shlomi Fish
st the first message in a list of N messages of the same > subject. so, if there are 120 messages with the subject of "how > did you spend your Summer?", I read the first of those subject > lines and none until the first message that doesn't have that > title. > > A

Re: project euler #8

2018-06-07 Thread Shlomi Fish
Hi, why did you resurrect a one year old's thread for which there were proper replies here - https://www.nntp.perl.org/group/perl.beginners/2017/05/msg126502.html and here - https://github.com/shlomif/project-euler/tree/master/project-euler/8 . just let sleeping dogs rest. Some comments on your

Re: can not locate installe module

2018-06-04 Thread Shlomi Fish
Hi, On Mon, 4 Jun 2018 10:28:09 +0100 Gary Stainburn wrote: > On Monday 04 June 2018 09:36:02 Shlomi Fish wrote: > > what does "perldoc -l MIME::Parser" say? Also see > > http://perl-begin.org/FAQs/ and http://perl-begin.org/topics/cpan/ . > > I have t

Re: difficulty with matching

2018-06-04 Thread Shlomi Fish
On Sat, 2 Jun 2018 07:30:48 -0500 p...@reason.net wrote: > Very useful advice, Shlomi; thanks! > you are welcome! Also see http://perl-begin.org/tutorials/bad-elements/ , which I also maintain. > > > On Jun 2, 2018, at 3:57 AM, Shlomi Fish wrote: > > > > On Fri

Re: can not locate installe module

2018-06-04 Thread Shlomi Fish
. > what does "perldoc -l MIME::Parser" say? Also see http://perl-begin.org/FAQs/ and http://perl-begin.org/topics/cpan/ . -- - Shlomi Fish http://www.shlomifish.org/ http://youtu.be/KxGRhd_iWuE - Never Give Up!! What's the point

Re: difficulty with matching

2018-06-02 Thread Shlomi Fish
r more. > die "$student_surname, $hyphen, $student_number”; > > Rick Triplett > -- - Shlomi Fish http://www.shlomifish.org/ Best Introductory Programming Language - http://shlom.in/intro-lang A horse! A h

Re: Read a huge text file in perl

2018-05-24 Thread Shlomi Fish
try https://en.wikipedia.org/wiki/Htop or similar to be sure? > > Thanks, > Satya -- - Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/bits/New-versions-of-the-GPL/ How many “one-liners” do I actually write? I don’t know; maybe a couple

Re: regex with HEX ascii chars

2018-04-12 Thread Shlomi Fish
What am I doing wrong? > Perhaps see http://perldoc.perl.org/perlunitut.html - you may need to read the file as binary or iso8859-1 or whatever. Also see https://github.com/shlomif/how-to-share-code-online and read what Andy noted. > Gary > -- ----

Re: Syntax problem

2018-03-28 Thread Shlomi Fish
for the variable? > > - What will be the syntax for the $ldap->modify statement? > > Thanks in advance, > > Olivier > > > -- - Shlomi Fish http://www.shlomifish.org/ “So, who the hell is Qoheleth?” - http://shlom.in/qoheleth When people agree w

Re: [^/]* Is Not Working

2018-03-24 Thread Shlomi Fish
useful to use #, % and other delimiters which do not naturally occur in regexes or otherwise. -- - Shlomi Fish http://www.shlomifish.org/ Selina Mandrake - The Slayer (Buffy parody) - http://shlom.in/selina *Chuck*: Indeed. Anyway, I invited a friend wh

Re: Help debugging some old Bugzilla perl scripts

2018-02-26 Thread Shlomi Fish
Hi jose, please see http://www.shlomifish.org/Files/files/code/bugzilla.patch for my patch against bugzilla 3.2 to get it to compile with recent perls. On Mon, 26 Feb 2018 05:43:45 +0100 "jose cabrera" wrote: > On Sunday, February 25, 2018 at 11:26 PM, "Uri Guttman" wrote...

Re: Does perl v5.8.9 supports Ubuntu 64 bit?

2018-02-26 Thread Shlomi Fish
Hi jose, On Mon, 26 Feb 2018 05:56:19 +0100 "jose cabrera" wrote: > Greetings! > > I just installed perlbrew and I tried installing perl v5.8.9 to prevent > trying to fix a bunch of v5.8.9 perl code, but it failed. The first thing > that came to mind was x64 vs x32. Can this

Re: ssh::command

2018-02-13 Thread Shlomi Fish
does not return > >> full reply from server. Any clue? It just returns part of it. Is it > >> timeout? or what? > >> Thanks. > >> > >> > >> -- > >> -- > >> Lancelot Mak > >> > > > > -- ---

Re: Checking if a website is up doesn't work correctly

2018-02-13 Thread Shlomi Fish
use LWP::Simple; my $url="https://shlomif.github.io/;; # my $url="https://notabug.org/;; if (! head($url)) { die "$url is DOWN"; } seems like notabug blocks libwww-perl. > > However, firefox shows the site works ok. > same here. Regards, Shlomi > >

Re: What is the substitute for $#?

2018-01-26 Thread Shlomi Fish
tly where needed. See: * http://perldoc.perl.org/functions/sprintf.html * http://perl-begin.org/uses/text-generation/ e.g: print "I am ", sprintf("%e", $age), " years old."; Regards, Shlomi -- -------

Re: Find::Perl find not returning

2017-12-13 Thread Shlomi Fish
{resending} Hi Mike, On Wed, 13 Dec 2017 11:28:55 + Mike Martin wrote: > Hi > I have the following code > > use strict; > use File::Find; > my @vsbe; > my $top='P:\PT-6\PT-60\PT-603\Shared\Data Store\Files Dump Folder'; > my $max_depth=9; > my $cnt1=0; > >

Re: Find::Perl find not returning

2017-12-13 Thread Shlomi Fish
tps://shlomif-tech.livejournal.com/29315.html for an article I wrote about some other philosophical limitations of F::F that I solve (one of them is similar to your use case). Regards, Shlomi -- - Shlomi Fish http://www.shlomifish

Re: perlbrew and modules

2017-12-07 Thread Shlomi Fish
On Thu, 7 Dec 2017 12:44:51 -0800 SSC_perl <p...@surfshopcart.com> wrote: > > On Dec 7, 2017, at 12:04 PM, Shlomi Fish <shlo...@shlomifish.org> wrote: > > > > What does: > > > > say "@INC"; > > > > say if you add it to the

Re: perlbrew and modules

2017-12-07 Thread Shlomi Fish
t-type: text/html\n\n"; > say 'Perl '. $^V; Hi Frank! What does: say "@INC"; say if you add it to the script? -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap Real men don’t listen to sentences that start

Re: [OT] converting a script to a distribution

2017-12-07 Thread Shlomi Fish
here is also App::Cmd https://metacpan.org/search?q=app%20cmd and similar modules. > > Thanks, > Luca > -- --------- Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/bits/New-versions-of-the

Re: Using Pack and Unpack

2017-12-07 Thread Shlomi Fish
d ( http://perl-begin.org/tutorials/perl-for-newbies/part2/#page--debugger--DIR ), https://metacpan.org/pod/Data::Dumper , https://metacpan.org/pod/DDP , and some debugger GUIs such as https://en.wikipedia.org/wiki/Data_Display_Debugger . Regards, Shlomi > Thank you. > > Martin

Re: Getting the results of a remote script

2017-11-10 Thread Shlomi Fish
so helps when combining PERL and PHP apps > "Perl" is not an acronym - see http://perl-begin.org/learn/Perl-perl-but-not-PERL/ and https://github.com/perl-doc-cats/perlfaq/blob/master/lib/perlfaq1.pod#whats-the-difference-between-perl-and-perl . Regards, Shlomi -- --

Re: Getting the results of a remote script

2017-11-09 Thread Shlomi Fish
> > > > Searching hasn't returned an answer. Is there another way to get > > what I'm after? > > > > Thanks, > > Frank > > -- > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > For additional commands, e-mail: begin

Re: Warnings::Unused Linux perl

2017-11-06 Thread Shlomi Fish
Hi, On Sun, 05 Nov 2017 18:21:25 -0600 "Martin McCormick" <marti...@suddenlink.net> wrote: > Shlomi Fish <shlo...@shlomifish.org> writes: > > Hi Martin, > > > > please see https://metacpan.org/release/warnings-unused as well as > > http://perl

Re: Warnings::Unused Linux perl

2017-11-05 Thread Shlomi Fish
.org/release/warnings-unused as well as http://perl-begin.org/topics/cpan/wrappers-for-distributions/ and http://perl-begin.org/topics/cpan/ . It should not be hard to install and your Linux distro may already have it packaged. It is just that it was already available on your FBSD system. --

Re: Archive::Zip->addTree returned 2

2017-10-05 Thread Shlomi Fish
On Wed, 4 Oct 2017 23:26:31 +0530 Asad wrote: > Hi All > > I have perl script abc.pl and module abc.pm . When i execute abc.pl which > is using one the modules > Hi Asad! Please see https://github.com/shlomif/how-to-share-code-online and comply with the instructions

Re: do something when using Gtk3

2017-09-05 Thread Shlomi Fish
On Tue, 05 Sep 2017 04:24:31 +0200 hw <h...@adminart.net> wrote: > Shlomi Fish <shlo...@shlomifish.org> writes: > > > Hi hw, > > > > On Mon, 28 Aug 2017 04:54:04 +0200 > > hw <h...@adminart.net> wrote: > > > >> Hi, > &g

Re: do something when using Gtk3

2017-08-29 Thread Shlomi Fish
some relevant results including https://stackoverflow.com/questions/8352027/gtk-timer-how-to-make-a-timer-within-a-frame . There are examples for using it in Perl in t/9.t here - https://git.gnome.org//browse/perl-Glib . Hope it helps! -- ----

Re: perl -e 'my $i = 0; $i = defined($i) ? (!!$i) : 0; print "i: $i\n";'

2017-07-01 Thread Shlomi Fish
Hi hw! Please see http://www.shlomifish.org/philosophy/computers/netiquette/email/reply-to-list.html . On Sat, 1 Jul 2017 19:15:22 +0200 hw <h...@gc-24.de> wrote: > Shlomi Fish wrote: > > Hi Shawn! > > > > On Sat, 1 Jul 2017 11:32:30 -0400 > > Shawn H Co

Re: perl -e 'my $i = 0; $i = defined($i) ? (!!$i) : 0; print "i: $i\n";'

2017-07-01 Thread Shlomi Fish
bug. > > > > > + What is being printed here? > > !!$i which is !(!(0)) which is !(1) which is 0 > I suspect !1 returns an empty string in scalar context. > > > > + How do you do what I intended in perl? > > > > How do we know what you intend

Re: Confused with File::Find

2017-06-24 Thread Shlomi Fish
ok into alternatives on CPAN such as https://metacpan.org/pod/File::Find::Object (which I happen to maintain) or https://metacpan.org/pod/Path::Iterator::Rule#SEE-ALSO . For more about that, see: http://shlomif-tech.livejournal.com/29315.html Regards, Shlomi Fish -- -

Re: project euler #8

2017-05-25 Thread Shlomi Fish
Hi lee, I decided to try to give you another chance to be educated, despite Uri's conclusion in the other thread. Hopefully you won't let me down. On Thu, 25 May 2017 16:48:13 +0100 lee <l...@yagibdah.de> wrote: > Shlomi Fish <shlo...@shlomifish.org> writes: > > > [.

Re: project euler #8

2017-05-25 Thread Shlomi Fish
Hi lee! On Thu, 25 May 2017 02:24:05 +0100 lee <l...@yagibdah.de> wrote: > Shlomi Fish <shlo...@shlomifish.org> writes: > > > Hi all! > > > > Resending because the original message does not appear to have arrived at > > the list. > > > > ==

Re: Perl/Tk

2017-05-16 Thread Shlomi Fish
On Tue, 16 May 2017 20:35:55 +0900 Masayoshi Fujimoto wrote: > Hi. > I really appriciate your help. It worked for me. > You're welcome! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org

Re: Perl/Tk

2017-05-16 Thread Shlomi Fish
Hi! On Tue, 16 May 2017 20:11:52 +0900 Masayoshi Fujimoto wrote: > Hi. > > I would like to get $celebrity. > > How should I do? > I have modified your code based on https://metacpan.org/pod/distribution/Tk/pod/Entry.pod to get what seems to be the desired result: «

Re: project euler #8

2017-05-16 Thread Shlomi Fish
-- Shlomi > Derrick > > ------ > 发件人:Shlomi Fish<shlo...@shlomifish.org>日 期:2017年05月16日 > 16:54:39收件人:<derr...@thecopes.me>抄 送:Beginners Perl > List<beginners@perl.org>主 题:Re: project euler #8Hi

Re: project euler #8

2017-05-16 Thread Shlomi Fish
f digits. > say "@numbline "; >my @product = (); > for (0..$#numbline - 13) { This should be "@numbline - 13" - an off-by-one error. Regards, Shlomi Fish -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: keyboard input without pressing return?

2017-05-14 Thread Shlomi Fish
On Sun, 14 May 2017 12:08:59 +0300 Shlomi Fish <shlo...@shlomifish.org> wrote: > Hi lee, > > On Sat, 06 May 2017 02:06:19 +0100 > lee <l...@yagibdah.de> wrote: > > > Hi, > > > > how can a sleeping program react to a key that was pressed without &g

Re: keyboard input without pressing return?

2017-05-14 Thread Shlomi Fish
strict; use warnings; use Term::ReadKey; ReadMode 4; # Turn off controls keys my $key; while (not defined ($key = ReadKey(-1))) { # No key yet } print "Get key $key\n"; ReadMode 0; # Reset tty mode before exiting » Note th

Re: prime factors

2017-05-03 Thread Shlomi Fish
one at a time. You will also need to address the fact > that Perl’s integers cannot represent the number 600851475143 in their normal > 32- or 64-bit formats. See ‘perldoc bignum’. > > Also note that the smallest factor of any number cannot be larger than the > square root of that number, so the function ispri

Re: prime factors

2017-05-02 Thread Shlomi Fish
you can optimise the algorithm considerably by using some tricks. See: https://duckduckgo.com/?q=project+euler+3=web Perhaps see https://duckduckgo.com/?q=prime+factorization=web too. Regards, Shlomi Fish -- - Shlomi Fish

Re: Perl reserved words

2017-04-23 Thread Shlomi Fish
> http://learn.perl.org/docs/keywords.html > -- ----- Shlomi Fish http://www.shlomifish.org/ Let’s talk about restores instead of backups - http://is.gd/WatQqu A rose by a name picked by Chuck Norris, will smell sweeter. — http://www.shlomifish.org/humour/bits/facts/Chuck

Re: How to delete multiple indices from array

2017-04-12 Thread Shlomi Fish
@array) { if (@remove and $i == $remove[0]) { shift@remove; } else { push @new, $v; } } @array = @new === https://en.wikipedia.org/wiki/There%27s_more_than_one_way_to_do_it Regards, Shlomi Fish > > > >

Re: WWW::Mechanize requires wget

2017-04-04 Thread Shlomi Fish
Not sure why wget wasn’t installed with Xcode Developer Tools. > > Frank Hi Frank! What you say sounds strange. WWW-Mech should not require wget. Perhaps they both use a common dependency. -- --------- Shlomi Fish http://www.sh

Fw: how to recursion

2017-03-29 Thread Shlomi Fish
Forwarding to the list. Begin forwarded message: Date: Wed, 29 Mar 2017 11:32:08 -0400 From: Shawn H Corey <shawnhco...@gmail.com> To: Shlomi Fish <shlo...@shlomifish.org> Subject: Re: how to recursion On Wed, 29 Mar 2017 17:22:36 +0300 Shlomi Fish <shlo...@shlomi

Re: how to recursion

2017-03-29 Thread Shlomi Fish
Hi Shawn! On Wed, 29 Mar 2017 08:09:12 -0400 Shawn H Corey wrote: > On Wed, 29 Mar 2017 09:25:06 +0800 > PYH wrote: > > > sub my_recursion { > > my $self = shift; > > > > if (...) { > > $self->my_recursion; > > # you

Re: [OT] app (ncurses?) mechanizer?

2017-03-27 Thread Shlomi Fish
s for. Note that for X11, there's https://metacpan.org/release/X11-GUITest on CPAN and other similar toolkits in other languages as well. -- - Shlomi Fish http://www.shlomifish.org/ Original Riddles - http://www.shlomifish.org/pu

Re: [OT] app (ncurses?) mechanizer?

2017-03-27 Thread Shlomi Fish
Hi Luca, On Mon, 27 Mar 2017 16:04:22 +0200 Luca Ferrari wrote: > Hi all, > I've to run a very old application from the command line (unix), it > seems to me a ncurses application but I'm not sure that is the real > case (let's say it seems ncurses). > Anyway, I have to

Re: Using PerlPod creatively

2017-03-24 Thread Shlomi Fish
t;What-the-f??"-y. One should avoid embedding such long code (beyond a short -e or -E string) in bash at all, and keep the code in a separate program file (also see the Modulino concept - http://perltricks.com/article/107/2014/8/7/Rescue-legacy-code-with-modulinos/ and https://www.m

Re: accessors module

2017-03-16 Thread Shlomi Fish
ject systems such as Moose or Moo provide many more features. For a little about the motivation behind setters, getters and accessors, see this page on a site I maintain (note the anchor): http://perl-begin.org/tutorials/perl-for-newbies/part5/#page--accessors--DIR Regards, Shlomi Fish

Re: Installing Net::SFTP

2017-03-15 Thread Shlomi Fish
uot;perl-Net-SFTP" on various package repositories. Otherwise you can try doing "cpan -i Net::SFTP" (possibly after installing some compilers and libararies' *-devel pacakges). Good luck! Regards, -- Shlomi -- ----- Shlom

Re: how to read a picture

2017-03-12 Thread Shlomi Fish
t's a page on my site). Good luck! Regards, Shlomi Fish -- ----- Shlomi Fish http://www.shlomifish.org/ Beginners Site for the Vim text editor - http://vim.begin-site.org/ He who reinvents the wheel, may actually inven

Re: multiple named captures with a single regexp

2017-03-01 Thread Shlomi Fish
ps try using \G and the /g and possibly /o flags , see: http://perl-begin.org/uses/text-parsing/ (Note that perl-begin is a site that I maintain). Regards, Shlomi Fish > Please note, a raw solution is to remove the command and split, but > I'm a

Re: Parsing Logfiles and fetching Macs programmed and putting in another file.

2017-02-01 Thread Shlomi Fish
On Tue, 31 Jan 2017 17:29:10 +0530 Uday Vernekar <vernekaru...@gmail.com> wrote: > Thanks shlomi ,working on your inputs...Thanks:) > You're welcome, Uday! -- ----- Shlomi Fish http://www.shlomifi

Re: Parsing Logfiles and fetching Macs programmed and putting in another file.

2017-01-31 Thread Shlomi Fish
scalar instead of a list. > > my $Result = `grep "Base MAC Address" \/mnt\/backup\/$Directory\/$name | > tail -n 1 `; don't use /bin/grep when you can use perl's file and text processing tools. > my ($str,@mac) = split(":",$Result); > if($mac[1] ne "05") { > > @mac=" MAC NOT PROGRAMMED\n"; > #print "\n"; > print DATAOUT " $name\t\t@mac\n" ; > } > else{ > print DATAOUT " $name\t\t > $mac[0]:$mac[1]:$mac[2]:$mac[3]:$mac[4]:$mac[5]\n" ; > } > } > } > > ($userPath); > > close(DATAOUT); > > > > > In short - this code should really be refactored, corrected, and modernised. Perhaps you should read http://www.onyxneon.com/books/modern_perl/index.html or a similar book or tutorial - see http://perl-tutorial.org/ and http://perl-begin.org/ . Regards, Shlomi Fish -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: application starter kit

2017-01-23 Thread Shlomi Fish
fer. You can use it for executables using https://metacpan.org/pod/Dist::Zilla::Plugin::ExecDir . Also note that I started working on https://github.com/shlomif/dzil-dist-ini-format-documentation but it may be lacking in part because there are several layers to the dist.ini pars

  1   2   3   4   5   6   7   8   9   10   >