From akkana at shallowsky.com Mon Sep 1 04:08:29 2014 From: akkana at shallowsky.com (Akkana Peck) Date: Sun, 31 Aug 2014 22:08:29 -0600 Subject: [Techtalk] Collaborating on websites without ssh Message-ID: <20140901040829.GH889@shallowsky.com> I'm helping a local nonprofit with its website. There are three of us working on it right now, and things are going great, except for one thing: the cheap web host we have for this site doesn't offer ssh, just ftp. I'm totally spoiled, having always had ssh and rsync (or better yet, a version control system). I don't need ssh to log in to a live shell; I just want to be able to rsync files between the live server and my local machine, to make sure I've downloaded everybody else's changes before I start changing things myself. My attempts so far at elaborate lftp scripts to mirror the website don't seem to work very well -- they take forever, lose chmod information, re-download unchanged files yet sometimes miss changed ones. And ftp-ing files back up to the server is a pain because of needing to keep track of which directory I'm in on each end (lcd ../data; cd ../data; mput ...; lcd ../resources; cd ../resources; mput ... and so on). This must be a common problem. Does anyone have any advice for keeping in sync with other people's changes and uploading lots of files when neither ssh/rsync nor version control is an option? Are there rsync-like tools that cheap webhosts offer even if they don't offer ssh? Or rsync-like wrappers on top of ftp? ...Akkana From mim at miriam-english.org Mon Sep 1 09:32:26 2014 From: mim at miriam-english.org (Miriam English) Date: Mon, 01 Sep 2014 19:32:26 +1000 Subject: [Techtalk] Collaborating on websites without ssh In-Reply-To: <20140901040829.GH889@shallowsky.com> References: <20140901040829.GH889@shallowsky.com> Message-ID: <54043D2A.9030706@miriam-english.org> I often use wget for downloading because I can mirror my directory structure and set it to ignore old files. See the section on time stamping in the manual for wget. https://www.gnu.org/software/wget/manual/ I sometimes use wput for uploading. I believe it can be used to mirror directory structures (I haven't used it for that so I can't really comment) and it supports timestamping and conditional uploading. http://wput.sourceforge.net/ I keep looking for a better text editor and recently read about a weird one, called "gobby", which stuck in my mind because it is a collaborative editor -- several people can work on shared documents simultaneously. It may be of use to you. http://gobby.0x539.de/ http://en.wikipedia.org/wiki/Gobby There's a YouTube video about it that shows the surprising way it works: http://youtube.com/v/QCDEgvz_Rqw Best wishes, - Miriam On 01/09/14 14:08, Akkana Peck wrote: > I'm helping a local nonprofit with its website. There are three of > us working on it right now, and things are going great, except for > one thing: the cheap web host we have for this site doesn't offer > ssh, just ftp. > > I'm totally spoiled, having always had ssh and rsync (or better yet, > a version control system). I don't need ssh to log in to a live > shell; I just want to be able to rsync files between the live server > and my local machine, to make sure I've downloaded everybody else's > changes before I start changing things myself. My attempts so far at > elaborate lftp scripts to mirror the website don't seem to work very > well -- they take forever, lose chmod information, re-download > unchanged files yet sometimes miss changed ones. And ftp-ing files > back up to the server is a pain because of needing to keep track of > which directory I'm in on each end (lcd ../data; cd ../data; > mput ...; lcd ../resources; cd ../resources; mput ... and so on). > > This must be a common problem. Does anyone have any advice for > keeping in sync with other people's changes and uploading lots of > files when neither ssh/rsync nor version control is an option? > Are there rsync-like tools that cheap webhosts offer even if they > don't offer ssh? Or rsync-like wrappers on top of ftp? > > ...Akkana > _______________________________________________ > Techtalk mailing list > Techtalk at linuxchix.org > http://mailman.linuxchix.org/mailman/listinfo/techtalk > -- If you don't have any failures then you're not trying hard enough. - Dr. Charles Elachi, director of NASA's Jet Propulsion Laboratory ----- Website: http://miriam-english.org Blogs: http://miriam-e.dreamwidth.org http://miriam-e.livejournal.com From bilwalsh at swbell.net Mon Sep 1 12:30:35 2014 From: bilwalsh at swbell.net (Billie Walsh) Date: Mon, 01 Sep 2014 07:30:35 -0500 Subject: [Techtalk] Collaborating on websites without ssh In-Reply-To: <20140901040829.GH889@shallowsky.com> References: <20140901040829.GH889@shallowsky.com> Message-ID: <540466EB.1010201@swbell.net> On 08/31/2014 11:08 PM, Akkana Peck wrote: > I'm helping a local nonprofit with its website. There are three of > us working on it right now, and things are going great, except for > one thing: the cheap web host we have for this site doesn't offer > ssh, just ftp. > > I'm totally spoiled, having always had ssh and rsync (or better yet, > a version control system). I don't need ssh to log in to a live > shell; I just want to be able to rsync files between the live server > and my local machine, to make sure I've downloaded everybody else's > changes before I start changing things myself. My attempts so far at > elaborate lftp scripts to mirror the website don't seem to work very > well -- they take forever, lose chmod information, re-download > unchanged files yet sometimes miss changed ones. And ftp-ing files > back up to the server is a pain because of needing to keep track of > which directory I'm in on each end (lcd ../data; cd ../data; > mput ...; lcd ../resources; cd ../resources; mput ... and so on). > > This must be a common problem. Does anyone have any advice for > keeping in sync with other people's changes and uploading lots of > files when neither ssh/rsync nor version control is an option? > Are there rsync-like tools that cheap webhosts offer even if they > don't offer ssh? Or rsync-like wrappers on top of ftp? > > ...Akkana I manage well over a hundred genealogy/history websites [ thank goodness they don't need daily changes and most don't change much at all ]. I have to admit that I'm the only one working on them though. I use GFTP. It's simple to use and works very well. The few times I have collaborated with someone else it took close communication with the other person to be sure we both knew what the other was doing. We managed it with FTP with no problems. -- Those who expect to reap the blessings of freedom must. like men, undergo the fatigue of supporting it.-Thomas Paine _ _... ..._ _ _._ ._ ..... ._.. ... .._ From kjh at flyballdogs.com Mon Sep 1 12:56:00 2014 From: kjh at flyballdogs.com (Kathryn Hogg) Date: Mon, 01 Sep 2014 07:56:00 -0500 Subject: [Techtalk] Collaborating on websites without ssh In-Reply-To: <20140901040829.GH889@shallowsky.com> References: <20140901040829.GH889@shallowsky.com> Message-ID: <5c2ddc7a330c780cdb8024b8269a1927@flyballdogs.com> On 2014-08-31 23:08, Akkana Peck wrote: > I'm helping a local nonprofit with its website. There are three of > us working on it right now, and things are going great, except for > one thing: the cheap web host we have for this site doesn't offer > ssh, just ftp. > > I'm totally spoiled, having always had ssh and rsync (or better yet, > a version control system). I don't need ssh to log in to a live > shell; I just want to be able to rsync files between the live server > and my local machine, to make sure I've downloaded everybody else's > changes before I start changing things myself. My attempts so far at > elaborate lftp scripts to mirror the website don't seem to work very > well -- they take forever, lose chmod information, re-download > unchanged files yet sometimes miss changed ones. And ftp-ing files > back up to the server is a pain because of needing to keep track of > which directory I'm in on each end (lcd ../data; cd ../data; > mput ...; lcd ../resources; cd ../resources; mput ... and so on). > > This must be a common problem. Does anyone have any advice for > keeping in sync with other people's changes and uploading lots of > files when neither ssh/rsync nor version control is an option? > Are there rsync-like tools that cheap webhosts offer even if they > don't offer ssh? Or rsync-like wrappers on top of ftp? Does unison support ftp as a transport mechanism? What about FTP File System (FTPS)? -- Kathryn Hogg http://womensfooty.com From kromagg at gmail.com Mon Sep 1 17:30:21 2014 From: kromagg at gmail.com (Wim De Smet) Date: Mon, 1 Sep 2014 19:30:21 +0200 Subject: [Techtalk] Collaborating on websites without ssh In-Reply-To: <5c2ddc7a330c780cdb8024b8269a1927@flyballdogs.com> References: <20140901040829.GH889@shallowsky.com> <5c2ddc7a330c780cdb8024b8269a1927@flyballdogs.com> Message-ID: On Mon, Sep 1, 2014 at 2:56 PM, Kathryn Hogg wrote: > On 2014-08-31 23:08, Akkana Peck wrote: > >> I'm helping a local nonprofit with its website. There are three of >> us working on it right now, and things are going great, except for >> one thing: the cheap web host we have for this site doesn't offer >> ssh, just ftp. >> >> I'm totally spoiled, having always had ssh and rsync (or better yet, >> a version control system). I don't need ssh to log in to a live >> shell; I just want to be able to rsync files between the live server >> and my local machine, to make sure I've downloaded everybody else's >> changes before I start changing things myself. My attempts so far at >> elaborate lftp scripts to mirror the website don't seem to work very >> well -- they take forever, lose chmod information, re-download >> unchanged files yet sometimes miss changed ones. And ftp-ing files >> back up to the server is a pain because of needing to keep track of >> which directory I'm in on each end (lcd ../data; cd ../data; >> mput ...; lcd ../resources; cd ../resources; mput ... and so on). >> >> This must be a common problem. Does anyone have any advice for >> keeping in sync with other people's changes and uploading lots of >> files when neither ssh/rsync nor version control is an option? >> Are there rsync-like tools that cheap webhosts offer even if they >> don't offer ssh? Or rsync-like wrappers on top of ftp? >> > > > Does unison support ftp as a transport mechanism? > I think unison does support FTP. I'd advocate setting up some sort of extra repository though. At the very least you can share a folder in dropbox and be sure you have each other's changes. I'm not so sure about what it will do with permissions, but at least you have immediate syncing and some very limited versioning. I think you can share private repositories for free in bitbucket too. Not so sure about github, last I checked they only did free public repositories. Once you have a repo, uploading to FTP is a one-way operation which makes it much less error-prone. Regards, Wim From gayathri.swa at gmail.com Mon Sep 1 18:16:42 2014 From: gayathri.swa at gmail.com (Gayathri Swaminathan) Date: Mon, 1 Sep 2014 13:16:42 -0500 Subject: [Techtalk] Collaborating on websites without ssh In-Reply-To: <5c2ddc7a330c780cdb8024b8269a1927@flyballdogs.com> References: <20140901040829.GH889@shallowsky.com> <5c2ddc7a330c780cdb8024b8269a1927@flyballdogs.com> Message-ID: On Mon, Sep 1, 2014 at 7:56 AM, Kathryn Hogg wrote: > > > Does unison support ftp as a transport mechanism? > > What about FTP File System (FTPS)? > > -- +1 to Kathy's idea. I would configure vsftpd with SSL (or TLS) and use Filezilla for client (linux, windows, mac etc.,) Depending on where this is hosted might need to configure passive ports (higher numbers) for data connections, configure local firewall, open up ports in hosted facility for external access. Happy Collaboration! -- Gayathri Swaminathan gpgkey: 3EFB3D39 Volunteer, FDP From akkana at shallowsky.com Mon Sep 1 21:10:02 2014 From: akkana at shallowsky.com (Akkana Peck) Date: Mon, 1 Sep 2014 15:10:02 -0600 Subject: [Techtalk] Collaborating on websites without ssh In-Reply-To: References: <20140901040829.GH889@shallowsky.com> <5c2ddc7a330c780cdb8024b8269a1927@flyballdogs.com> Message-ID: <20140901211002.GH897@shallowsky.com> > On Mon, Sep 1, 2014 at 2:56 PM, Kathryn Hogg wrote: > > Does unison support ftp as a transport mechanism? It does -- though while researching it, I stumbled upon curlftpfs, which might be enough by itself. I was able to mount the remote directory as a filesystem and then rsync from it, though the server's dates seem to be in a different time zone from mine, and curlftpfs doesn't have a way to compensate for that so rsync ends up wanting to copy every file every time unless I use --size-only. I bet that's also why mirroring with lftp always copied too much. I may still look into unison, if I have any problems with rsync over curlftpfs. And I guess there are other ways of setting up a file system over ftp? Kathryn mentioned FTPS and Gayathri mentioned vsftpd, though I'm not finding much about how to use either of those as a filesystem. Wim De Smet writes: > I think unison does support FTP. I'd advocate setting up some sort of extra > repository though. At the very least you can share a folder in dropbox and > be sure you have each other's changes. [or bitbucket or github] I mentioned the possibility of setting up some kind of version control system for the website to my compatriots and they recoiled in horror at the thought of something that geeky. I do have a local git repository on my own machine, so I can track my own changes as long as I'm disciplined about syncing other people's changes from the website into my own tree before I start editing. Thanks for the suggestions! ...Akkana From littlergirl at gmail.com Tue Sep 2 00:25:06 2014 From: littlergirl at gmail.com (Little Girl) Date: Mon, 1 Sep 2014 20:25:06 -0400 Subject: [Techtalk] Collaborating on websites without ssh In-Reply-To: <54043D2A.9030706@miriam-english.org> References: <20140901040829.GH889@shallowsky.com> <54043D2A.9030706@miriam-english.org> Message-ID: <54050e81.095c320a.681a.ffffdb85@mx.google.com> Hey there, Miriam English wrote: > I often use wget for downloading because I can mirror my directory > structure and set it to ignore old files. See the section on time > stamping in the manual for wget. > https://www.gnu.org/software/wget/manual/ > I sometimes use wput for uploading. I believe it can be used to > mirror directory structures (I haven't used it for that so I can't > really comment) and it supports timestamping and conditional > uploading. http://wput.sourceforge.net/ I seem to have deleted the OP's message, so I thought I'd jump in here and suggest that maybe fmirror would be useful: http://manpages.ubuntu.com/manpages/gutsy/man1/fmirror.1.html -- Little Girl There is no spoon. From mll at alwanza.com Fri Sep 5 06:03:24 2014 From: mll at alwanza.com (Meryll Larkin) Date: Thu, 4 Sep 2014 23:03:24 -0700 Subject: [Techtalk] still fedup after fedora upgrade In-Reply-To: <000601cf94f6$6a11a280$3e34e780$@alwanza.com> References: <000001cf9334$bfd5dc40$3f8194c0$@alwanza.com> <000601cf936d$d950c020$8bf24060$@alwanza.com> <000d01cf93b0$11a88e20$34f9aa60$@alwanza.com> <000601cf94f6$6a11a280$3e34e780$@alwanza.com> Message-ID: <000001cfc8cf$1c96e3f0$55c4abd0$@alwanza.com> Two kernel upgrades later and I'm still suffering with Fedora 20. I'm sure this is something I SHOULD know how to do, so if anyone can point me in the right direction (to documentation), I would be grateful. I will read it. Whenever I reboot (like after installing updates) my grub menu still gives me problems. The GRUB entries now read: Fedora (3.15.10-201.fc20.x86_64) 20 Heisenbug (like an uncertainty principle with a bug) Fedora (3.15.10-201.fc20.x86_64) 20 Heisenbug (I'm certain it's an ugly bug) Fedora Advanced options for Fedora The Third or Fourth option can work. They point to Fedora 3.14.8-200.fc20.x86_64 Each of the two top choices fail to boot my machine with these errors: Error can't find command linuxefi Error can't find command initrdefi I have NO CLUE why these kernels should be looking for EFI since I don't have EFI. I have BIOS. I have NO CLUE why the same error does NOT appear on the earlier version. (but I'm grateful for that or I wouldn't be able to login). And to make matters worse, the /boot/grub2/grub.cfg states right on top: DO NOT EDIT THIS FILE MANUALLY - because it is generated new by script at each boot (so it won't do any good anyway). So I've gone to /etc/grub.d and I know that the file I need to edit is the one named 10_linux I see this conditional: if -d /sys/firmware/efi Well, I don't have an efi directory in /sys/firmware So why is it still trying to load efi?? Any ideas? thanks, Meryll Larkin From robyn at robynspcs.com Fri Sep 5 07:47:37 2014 From: robyn at robynspcs.com (Robyn Willison) Date: Fri, 05 Sep 2014 17:17:37 +0930 Subject: [Techtalk] still fedup after fedora upgrade In-Reply-To: <000001cfc8cf$1c96e3f0$55c4abd0$@alwanza.com> References: <000001cf9334$bfd5dc40$3f8194c0$@alwanza.com> <000601cf936d$d950c020$8bf24060$@alwanza.com> <000d01cf93b0$11a88e20$34f9aa60$@alwanza.com> <000601cf94f6$6a11a280$3e34e780$@alwanza.com> <000001cfc8cf$1c96e3f0$55c4abd0$@alwanza.com> Message-ID: <54096A99.1040400@robynspcs.com> Hi Meryll Do you have a small partition with a folder in it called boot? Robyn On 5/09/2014 3:33 PM, Meryll Larkin wrote: > Two kernel upgrades later and I'm still suffering with Fedora 20. > > I'm sure this is something I SHOULD know how to do, so if anyone can point > me in the right direction (to documentation), I would be grateful. I will > read it. > > Whenever I reboot (like after installing updates) my grub menu still gives > me problems. > > The GRUB entries now read: > Fedora (3.15.10-201.fc20.x86_64) 20 Heisenbug (like an > uncertainty principle with a bug) > Fedora (3.15.10-201.fc20.x86_64) 20 Heisenbug (I'm certain > it's an ugly bug) > Fedora > Advanced options for Fedora > > The Third or Fourth option can work. They point to Fedora > 3.14.8-200.fc20.x86_64 > > Each of the two top choices fail to boot my machine with these errors: > Error can't find command linuxefi > Error can't find command initrdefi > > I have NO CLUE why these kernels should be looking for EFI since I don't > have EFI. I have BIOS. > I have NO CLUE why the same error does NOT appear on the earlier version. > (but I'm grateful for that or I wouldn't be able to login). > > And to make matters worse, the /boot/grub2/grub.cfg > states right on top: DO NOT EDIT THIS FILE MANUALLY - because it is > generated new by script at each boot (so it won't do any good anyway). > > So I've gone to /etc/grub.d and I know that the file I need to edit is the > one named 10_linux > > I see this conditional: > if -d /sys/firmware/efi > Well, I don't have an efi directory in /sys/firmware > > So why is it still trying to load efi?? > > Any ideas? > > thanks, > Meryll Larkin > > _______________________________________________ > Techtalk mailing list > Techtalk at linuxchix.org > http://mailman.linuxchix.org/mailman/listinfo/techtalk > From mll at alwanza.com Sat Sep 6 21:23:04 2014 From: mll at alwanza.com (Meryll Larkin) Date: Sat, 6 Sep 2014 14:23:04 -0700 Subject: [Techtalk] still fedup after fedora upgrade In-Reply-To: <54096A99.1040400@robynspcs.com> References: <000001cf9334$bfd5dc40$3f8194c0$@alwanza.com> <000601cf936d$d950c020$8bf24060$@alwanza.com> <000d01cf93b0$11a88e20$34f9aa60$@alwanza.com> <000601cf94f6$6a11a280$3e34e780$@alwanza.com> <000001cfc8cf$1c96e3f0$55c4abd0$@alwanza.com> <54096A99.1040400@robynspcs.com> Message-ID: <000701cfca18$c11b2040$435160c0$@alwanza.com> Hi Robyn, To catch you up Robyn, I upgraded from Fedora 13 (where I was perfectly happy) to Fedora 20 - at the end of which I said "Hey wait! I was USING that!!" Yeah - if you call half a Gig , small. And that is where my grub2 folder lives. You see, I was way ahead of the curve. I knew those boot files were going to get bigger and I planned for it. [meryll at cedar ~]$ df -kl [meryll at cedar ~]$ df -hl Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_cedar-lv_root 50G 22G 26G 47% / devtmpfs 2.8G 0 2.8G 0% /dev tmpfs 2.8G 84K 2.8G 1% /dev/shm tmpfs 2.8G 912K 2.8G 1% /run tmpfs 2.8G 0 2.8G 0% /sys/fs/cgroup tmpfs 2.8G 40K 2.8G 1% /tmp /dev/sda1 477M 141M 307M 32% /boot /dev/mapper/vg_cedar-lv_home 860G 203G 613G 25% /home What do you think? Meryll Larkin From tech at futurecourse.com Sat Sep 6 22:14:59 2014 From: tech at futurecourse.com (Terry) Date: Sat, 06 Sep 2014 15:14:59 -0700 Subject: [Techtalk] Improving/Reviewing a Perl script Message-ID: <540B8763.6090806@futurecourse.com> Hi folks, I just wrote my first big Perl script (more than a few lines) and finally have it working. Another step on my journey in learning Perl. I ran it through perlcritic. What an eye opening experience! lol It definitely helped me learn even more. I'm now reviewing my code with an eye towards improving it further if I can. I've read a bunch of info on refactoring and made some improvements. My guess is there are more to be made. I used Devel::Cover and got this message when I ran perl -MDevel::Cover myscripts/testing.pl: unexpected OP_RKEYS at /usr/share/perl/5.14/B/Deparse.pm line 1113 I have no clue what this means. I googled it and came up with nothing. I also looked at line 1113 of Deparse.pm but I still don't have a clue. Is this something wrong with my code or Deparse.pm? The error message appears at the very end of the script, right after exit and right before the subs start. Are there any other topics/tools I can research to help me improve my code? -- Terry From robyn at robynspcs.com Sat Sep 6 23:54:57 2014 From: robyn at robynspcs.com (Robyn Willison) Date: Sun, 07 Sep 2014 09:24:57 +0930 Subject: [Techtalk] still fedup after fedora upgrade In-Reply-To: <000701cfca18$c11b2040$435160c0$@alwanza.com> References: <000001cf9334$bfd5dc40$3f8194c0$@alwanza.com> <000601cf936d$d950c020$8bf24060$@alwanza.com> <000d01cf93b0$11a88e20$34f9aa60$@alwanza.com> <000601cf94f6$6a11a280$3e34e780$@alwanza.com> <000001cfc8cf$1c96e3f0$55c4abd0$@alwanza.com><54096A99.1040400@robynspcs.com> <000701cfca18$c11b2040$435160c0$@alwanza.com> Message-ID: <540B9ED1.8030502@robynspcs.com> Hi Meryll fdisk -l will show what partitions you have on your hard drive. Robyn On 7/09/2014 6:53 AM, Meryll Larkin wrote: > Hi Robyn, > > To catch you up Robyn, I upgraded from Fedora 13 (where I was perfectly > happy) to Fedora 20 - at the end of which I said "Hey wait! I was USING > that!!" > > Yeah - if you call half a Gig , small. And that is where my grub2 folder > lives. > > You see, I was way ahead of the curve. I knew those boot files were going > to get bigger and I planned for it. > > [meryll at cedar ~]$ df -kl > [meryll at cedar ~]$ df -hl > Filesystem Size Used Avail Use% Mounted on > /dev/mapper/vg_cedar-lv_root 50G 22G 26G 47% / > devtmpfs 2.8G 0 2.8G 0% /dev > tmpfs 2.8G 84K 2.8G 1% /dev/shm > tmpfs 2.8G 912K 2.8G 1% /run > tmpfs 2.8G 0 2.8G 0% /sys/fs/cgroup > tmpfs 2.8G 40K 2.8G 1% /tmp > /dev/sda1 477M 141M 307M 32% /boot > /dev/mapper/vg_cedar-lv_home 860G 203G 613G 25% /home > > What do you think? > > Meryll Larkin > > > > > _______________________________________________ > Techtalk mailing list > Techtalk at linuxchix.org > http://mailman.linuxchix.org/mailman/listinfo/techtalk > From mll at alwanza.com Sun Sep 7 04:09:14 2014 From: mll at alwanza.com (Meryll Larkin) Date: Sat, 6 Sep 2014 21:09:14 -0700 Subject: [Techtalk] Improving/Reviewing a Perl script In-Reply-To: <540B8763.6090806@futurecourse.com> References: <540B8763.6090806@futurecourse.com> Message-ID: <000501cfca51$7fa2c850$7ee858f0$@alwanza.com> Hi Terry, Sorry, I'm not going to be able to get any further with this - it is beyond me. Are you using references anywhere in your code? If you are using references, have you used Data::Dumper to make sure they contain what you think they do? Since someone listed it as a bug with your same Perl version number, it may very well be an obscure bug. Maybe someone else on this list knows better than I do. Meryll From mll at alwanza.com Sun Sep 7 03:54:40 2014 From: mll at alwanza.com (Meryll Larkin) Date: Sat, 6 Sep 2014 20:54:40 -0700 Subject: [Techtalk] Improving/Reviewing a Perl script In-Reply-To: <540B8763.6090806@futurecourse.com> References: <540B8763.6090806@futurecourse.com> Message-ID: <000301cfca4f$75e060e0$61a122a0$@alwanza.com> Hi Terry, I found this: http://www.nntp.perl.org/group/perl.perl5.porters/2011/05/msg172553.html which is definitely your error. I'm not sure what it means yet either. I'll look into it some more. I do have some questions though: Does the script run and give you expected output when you are not testing the code itself? Is your script modular enough so that you can run pieces of it (unit test) to discover exactly what part is triggering this error? The beauty (and for some people, frustration) of Perl is TIMTOWTDI. Sometimes there are bugs that appear when something that SHOULD work is written in a particular way, that disappear when it is written another way. I'm just guessing, too. I'll see if I can find something a little more concrete. Meryll -----Original Message----- From: techtalk-bounces at linuxchix.org [mailto:techtalk-bounces at linuxchix.org] On Behalf Of Terry Sent: Saturday, September 06, 2014 3:15 PM To: LinuchChix - techtalk Subject: [Techtalk] Improving/Reviewing a Perl script Hi folks, I just wrote my first big Perl script (more than a few lines) and finally have it working. Another step on my journey in learning Perl. I ran it through perlcritic. What an eye opening experience! lol It definitely helped me learn even more. I'm now reviewing my code with an eye towards improving it further if I can. I've read a bunch of info on refactoring and made some improvements. My guess is there are more to be made. I used Devel::Cover and got this message when I ran perl -MDevel::Cover myscripts/testing.pl: unexpected OP_RKEYS at /usr/share/perl/5.14/B/Deparse.pm line 1113 I have no clue what this means. I googled it and came up with nothing. I also looked at line 1113 of Deparse.pm but I still don't have a clue. Is this something wrong with my code or Deparse.pm? The error message appears at the very end of the script, right after exit and right before the subs start. Are there any other topics/tools I can research to help me improve my code? -- Terry _______________________________________________ Techtalk mailing list Techtalk at linuxchix.org http://mailman.linuxchix.org/mailman/listinfo/techtalk From tech at futurecourse.com Sun Sep 7 14:16:23 2014 From: tech at futurecourse.com (Terry) Date: Sun, 07 Sep 2014 07:16:23 -0700 Subject: [Techtalk] Improving/Reviewing a Perl script In-Reply-To: <000501cfca51$7fa2c850$7ee858f0$@alwanza.com> References: <540B8763.6090806@futurecourse.com> <000501cfca51$7fa2c850$7ee858f0$@alwanza.com> Message-ID: <540C68B7.6000802@futurecourse.com> On 06/09/2014 21:09, Meryll Larkin wrote: > Hi Terry, > > Sorry, I'm not going to be able to get any further with this - it is beyond > me. > > Are you using references anywhere in your code? > If you are using references, have you used Data::Dumper to make sure they > contain what you think they do? > > Since someone listed it as a bug with your same Perl version number, it may > very well be an obscure bug. > > Maybe someone else on this list knows better than I do. > > Meryll > Hi Meryll, Thanks so much for finding this. I do indeed have a "while, do and foreach" so I guess I hit this bug. I've found it in the Perl bugtracker and it is fixed. I guess the fix hasn't made it into Debian yet. The script runs fine and I used Data::Dumper extensively to check values and when debugging and everything is as it is supposed to be. Thanks again. -- Terry From prusselltechgroup at gmail.com Sun Sep 7 22:24:16 2014 From: prusselltechgroup at gmail.com (Peggy Russell) Date: Sun, 7 Sep 2014 17:24:16 -0500 Subject: [Techtalk] Improving/Reviewing a Perl script In-Reply-To: References: Message-ID: <201409071724.16394.prusselltechgroup@gmail.com> Hi Terry, > Are there any other topics/tools I can research to help me improve my code? You might find something helpful at these Perl References: 1) Do a man on perl and it'll describe perldoc. The doc is also available via perl.org 2) The perl.org site has comprehensive documentation for any level: http://www.perl.org/ http://www.perl.org/books/library.html http://perldoc.perl.org/ * NOTE: Downloadable in html or PDF 3) Higher Order Perl http://hop.perl.plover.com/book/ 4) Stackoverflow with a keyword search of [perl] best practices http://stackoverflow.com/search?q=[perl]+best+practices Have a great day! Peggy Russell From tech at futurecourse.com Wed Sep 10 14:37:33 2014 From: tech at futurecourse.com (Terry) Date: Wed, 10 Sep 2014 07:37:33 -0700 Subject: [Techtalk] Improving/Reviewing a Perl script In-Reply-To: <201409071724.16394.prusselltechgroup@gmail.com> References: <201409071724.16394.prusselltechgroup@gmail.com> Message-ID: <5410622D.9040204@futurecourse.com> Hi Peggy, Thanks for your suggestions. On 07/09/2014 15:24, Peggy Russell wrote: > Hi Terry, > >> Are there any other topics/tools I can research to help me improve my code? > > You might find something helpful at these Perl References: > > 1) Do a man on perl and it'll describe perldoc. > The doc is also available via perl.org > > 2) The perl.org site has comprehensive documentation for any level: > http://www.perl.org/ > http://www.perl.org/books/library.html > http://perldoc.perl.org/ * NOTE: Downloadable in html or PDF > I am intimately familiar with the perldoc after writing this script. I downloaded the PDF and kept it open for days. lol I've also purchased some of the recommended books. > 3) Higher Order Perl > http://hop.perl.plover.com/book/ Will check this out. > > 4) Stackoverflow with a keyword search of [perl] best practices > http://stackoverflow.com/search?q=[perl]+best+practices Will also check this out. > Have a great day! > Peggy Russell Thanks again. Have a great day. -- Terry From camillamon at gmail.com Sun Sep 28 10:54:03 2014 From: camillamon at gmail.com (Camilla) Date: Sun, 28 Sep 2014 11:54:03 +0100 Subject: [Techtalk] C programming study group Message-ID: Hello fellow LinuxChixxors, hope you're enjoying the fall (or spring for the people in the southern hemisphere)! I recently unearthed Carla's great course "C for Absolute Beginners" [thanks, Carla!] and I've been following along as well as reading Kernighan and Ritchie's book. Would any chixxors be interested in forming a C study group? I could setup a Piazza study group for us. Enjoy your Sunday! bash-fully yours, Camilla From camillamon at gmail.com Mon Sep 29 22:06:44 2014 From: camillamon at gmail.com (Camilla) Date: Mon, 29 Sep 2014 23:06:44 +0100 Subject: [Techtalk] C programming study group In-Reply-To: References: Message-ID: Hi Svaksha and Deborah, thank you for responding! I have setup a Piazza group http://piazza.com/linuxchix/fall2014/cs101. I don't know if you want to use it, but I have previously used it for programming intensive classes and found it to be better than Moodle for sharing code and answering questions. The enrollment code is *cs101 *. Kind regards, Camilla