handling lists in perl

2018-12-18 Thread mick crane
not really on the topic but... I'm not very good at perl (or anything else ) and could maybe sort it but perhaps there is an extension that does it. I have an list of pairs (1=>8,2=>20,6=>100,15=>100) and an array of unique numbers (1 21 100 8 15 22 6 12 15 ) I want to see what pairs can

Re: handling lists in perl

2018-12-18 Thread mick crane
On 2018-12-18 13:34, mick crane wrote: sorry I put 15 twice there just to confuse the issue should be not really on the topic but... I'm not very good at perl (or anything else ) and could maybe sort it but perhaps there is an extension that does it. I have an list of pairs (1=>8,2=>20,6=>100,

Re: handling lists in perl

2018-12-18 Thread Greg Wooledge
On Tue, Dec 18, 2018 at 01:34:53PM +, mick crane wrote: > I'm not very good at perl (or anything else ) and could maybe sort it but > perhaps there is an extension that does it. > I have an list of pairs > (1=>8,2=>20,6=>100,15=>100) > and an array of unique numbers > (1 21 100 8 15 22 6 12

Resolution -- Re: Asserting local repository is trusted (man page problem?)

2018-12-18 Thread Richard Owlett
On 12/16/2018 01:03 PM, Richard Owlett wrote: My sources.list has lines of the form deb trusted=yes file:/media/richard/debian9/dvd1 stable main contrib When using Synaptic's "Edit->Reload Package Information" the error message is: E: Malformed entry 3 in list file /etc/apt/sources.list (URI p

Re: Resolution -- Re: Asserting local repository is trusted (man page problem?)

2018-12-18 Thread mick crane
On 2018-12-18 15:07, Richard Owlett wrote: On 12/16/2018 01:03 PM, Richard Owlett wrote: My sources.list has lines of the form deb trusted=yes file:/media/richard/debian9/dvd1 stable main contrib When using Synaptic's "Edit->Reload Package Information" the error message is: E: Malformed entry

Re: Most reliable dual band driver/chipset

2018-12-18 Thread tony mollica
In regard to my issue below: Trying to find an internal Intel based card with remote antenna. I have Linksys USB wifi adapters and they work, but not dual band.  Not really necessary, but why not use everything available. Not a laptop a

Re: Resolution -- Re: Asserting local repository is trusted (man page problem?)

2018-12-18 Thread Richard Owlett
On 12/18/2018 09:25 AM, mick crane wrote: On 2018-12-18 15:07, Richard Owlett wrote: On 12/16/2018 01:03 PM, Richard Owlett wrote: My sources.list has lines of the form deb trusted=yes file:/media/richard/debian9/dvd1 stable main contrib When using Synaptic's "Edit->Reload Package Information"

Re: Resolution -- Re: Asserting local repository is trusted (man page problem?)

2018-12-18 Thread Brian
On Tue 18 Dec 2018 at 10:10:21 -0600, Richard Owlett wrote: > On 12/18/2018 09:25 AM, mick crane wrote: > > I've got into trouble for replying to list emails in the past but I > > would advise rather than worrying about understanding everything that > > comes along get something you want the compu

Installing Java 8 on a Google Compute Debian (Jessie) instance

2018-12-18 Thread James H. H. Lampert
I'm endeavoring to get Java 8 onto our development instance, so that the Tomcat environment there matches that of our cluster nodes, and apg-get is not cooperating. This particular instance is a Bitnami SVN/Trac server, with Tomcat 8 added to it, and running independently of the Apache server

Hardware detection issue with debian

2018-12-18 Thread Mo Some One
I can not do this via bur report because I could not select a valid package. I have researched this and was unable to find a solved case under exact condition. The issue was mostly discussed as an mtp or mounting problem, but I dug a bit farther into the problem. When it comes to a certain model, h

ssh trouble

2018-12-18 Thread Glenn English
4 boxes on the same network; an RPi3 running Raspian Stretch, a laptop and a desktop running Buster, and a Cisco router running IOS 12.4 (note upper case 'I' :-). I have an expect script to get into the router. It's the same on all the hosts. The problem is that the RPi and the desktop get "Unab

Re: handling lists in perl

2018-12-18 Thread deloptes
Hi, it is not exactly clear if you want to test the key or the value of the pairs, but I assume you are after the values. mick crane wrote: > I have an list of pairs > (1=>8,2=>20,6=>100,15=>100) this would be a hash array (means key/value pairs) > and an array of unique numbers > (1 21 10

Re: Installing Java 8 on a Google Compute Debian (Jessie) instance

2018-12-18 Thread Roberto C . Sánchez
On Tue, Dec 18, 2018 at 10:16:25AM -0800, James H. H. Lampert wrote: > I'm endeavoring to get Java 8 onto our development instance, so that the > Tomcat environment there matches that of our cluster nodes, and apg-get is > not cooperating. > > This particular instance is a Bitnami SVN/Trac server,

Re: ssh trouble

2018-12-18 Thread Marc Auslander
Glenn English wrote: 4 boxes on the same network; an RPi3 running Raspian Stretch, a laptop and a desktop running Buster, and a Cisco router running IOS 12.4 (note upper case 'I' :-). I have an expect script to get into the router. It's the same on all the hosts. The problem is that the RPi and

Re: ssh trouble

2018-12-18 Thread Glenn English
On Tue, Dec 18, 2018 at 9:18 PM Marc Auslander wrote: > Newer versions of ssh deprecate diffie-hellman-group1-sha1 > Putting KexAlgorithms +diffie-hellman-group1-sha1 in config for the host > works for me. There is also a way to do it on the ssh command line. I'll look into this, but one Buster

Re: ssh trouble

2018-12-18 Thread Greg Wooledge
On Tue, Dec 18, 2018 at 10:00:12PM +, Glenn English wrote: > Hmmm. When I search the web to find out what KexAlgorithms means, I > find I've been there before (the 76 year old memory is less than > optimal). Looking more promising. Thanks, Marc. Key Exchange Algorithms. Should be documented i

Re: Hardware detection issue with debian

2018-12-18 Thread deloptes
Mo Some One wrote: > When connecting a "Galaxy S3 mini"  via usb, it is not detected at all; > however if connected during installation, it is temporarily detected as a > "usb mass storage device" before CDrom is detected. Did you try some program that could mount MTP device? For example I find:

Re: Installing Java 8 on a Google Compute Debian (Jessie) instance

2018-12-18 Thread deloptes
James H. H. Lampert wrote: >> The following packages have unmet dependencies: >> openjdk-8-jdk : Depends: openjdk-8-jre (= 8u171-b11-1~bpo8+1) but it is >> not going to be installed Depends: openjdk-8-jdk-headless (= >> 8u171-b11-1~bpo8+1) but it is not going to be installed E: Unable to >> correc

Debian 8.10 PowerPC issues with eMac G4 retail model

2018-12-18 Thread Alex McKeever
I remember having no luck with getting a display on Debian 8.10 on my eMac G4... had to go back to 7.11 to get a working system if I remember right. Anyhow I am wondering why 8.10 doesn’t work like it should? It’s technically the last official PowerPC 32 release... Sent from Yahoo Mail for iPh

Re: Installing Java 8 on a Google Compute Debian (Jessie) instance

2018-12-18 Thread Roberto C . Sánchez
On Tue, Dec 18, 2018 at 11:12:00PM +0100, deloptes wrote: > James H. H. Lampert wrote: > > >> The following packages have unmet dependencies: > >> openjdk-8-jdk : Depends: openjdk-8-jre (= 8u171-b11-1~bpo8+1) but it is > >> not going to be installed Depends: openjdk-8-jdk-headless (= > >> 8u171-b1

Re: handling lists in perl

2018-12-18 Thread deloptes
deloptes wrote: > if ( @array =~ /$hash[$key]/) { > print "key $key with value " . $hash{$key} . > " is in the array of values\n"; > } I checked and it seems the right answer is my %hash = ( 1=>8,2=>20,6=>100,15=>100 ); my @array = (1, 21, 100, 8, 15, 22, 6, 12, 56); foreach my $key (keys %hash

Re: handling lists in perl

2018-12-18 Thread David Christensen
nkywinky ~/sandbox/perl/debian-users $ cat 20181218-1334-mick-crane.pl #!/usr/bin/env perl use strict; use warnings; my %pairs = (1 => 8, 2 => 20, 6 => 100, 15 => 100); my @unique = (1, 21, 100, 8, 15, 22, 6, 12, 56); open (my $fh_satisfies, ">satisfies.txt") or die $!; open

Re: Hardware detection issue with debian

2018-12-18 Thread Cindy-Sue Causey
On 12/18/18, deloptes wrote: > Mo Some One wrote: > >> When connecting a "Galaxy S3 mini" via usb, it is not detected at all; >> however if connected during installation, it is temporarily detected as a >> "usb mass storage device" before CDrom is detected. > > Did you try some program that could

Re: handling lists in perl

2018-12-18 Thread mick crane
On 2018-12-19 00:43, deloptes wrote: deloptes wrote: if ( @array =~ /$hash[$key]/) { print "key $key with value " . $hash{$key} . " is in the array of values\n"; } I checked and it seems the right answer is my %hash = ( 1=>8,2=>20,6=>100,15=>100 ); my @array = (1, 21, 100, 8, 15, 22, 6, 12,

Re: handling lists in perl

2018-12-18 Thread mick crane
On 2018-12-19 00:43, deloptes wrote: deloptes wrote: if ( @array =~ /$hash[$key]/) { print "key $key with value " . $hash{$key} . " is in the array of values\n"; } I checked and it seems the right answer is my %hash = ( 1=>8,2=>20,6=>100,15=>100 ); my @array = (1, 21, 100, 8, 15, 22, 6, 12,

Re: handling lists in perl

2018-12-18 Thread deloptes
mick crane wrote: > except there is only one 100 in @array it gets me along. > thanks and David too. but this one 100 satisfies both 6 and 15 so 6 and 15 match. regards

Re: Debian 8.10 PowerPC issues with eMac G4 retail model

2018-12-18 Thread didier gaumet
Le 18/12/2018 à 23:17, Alex McKeever a écrit : > I remember having no luck with getting a display on Debian 8.10 on my > eMac G4... had to go back to 7.11 to get a working system if I remember > right. Anyhow I am wondering why 8.10 doesn’t work like it should? It’s > technically the last official