Karim Belabas on Mon, 01 Jan 2024 19:46:30 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gp_oeis_search (Search integer sequence specified by short PARI/GP script on oeis.org)
|
- To: hermann@stamm-wilbrandt.de
- Subject: Re: gp_oeis_search (Search integer sequence specified by short PARI/GP script on oeis.org)
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Mon, 1 Jan 2024 19:46:13 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1704134776; c=relaxed/relaxed; bh=TFZMFAn9VdIw8EaowPpNsY7kkzsDKKNnG09Dlx+SFO8=; h=DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; b=ooc+NX9bExP3LktTpmtrMDww5mmWvsXwLEB26X+sg8hBLpEy0GeVUY2gZufkRCJhexIdIAfyThh0hHdVM3IdSRRKgCQUw/C79lcmdE+pD1b7sZ7+rXLxwU7NTw0/HSg/CV8iZA3BXAyU8V5WNHVxj9wq1cbU968qj5+m1810n4Pb5bNqVcn+h6FOiC8ZI8ILXK6BCz6gz/yCftDYNU49LKFYelueIFViVm4C6KebMw0XFIaZmBE8UrnCxjtB7rHLUIft4JhoHTZORBqJ0CEgRng0K383vvzKf0V57AHgigRR91KE5BlqkNEgjUFh5gS3WEH/it5Ahy61z0Ot7QWci4fUciRs+LDiddwd+tNoTXwOt6h5tRB7M0xzFV3mAn2x3gCVpCS0mJYEHZEE3DYQx98qCbdBfFUwFI89fjFsjpuX1ZEUt0FpwYZJsBFFKB8NIp4IiyIZYo9lcEcUYXDRjUhtli2lYvi8/+Vmm15YlC4ltzqA3WqdX/3v5ryyMwrJMTSs20veBe8MExo16BYdiTnuMQcEdnyqWRI3yMuOEsKFYls0t16wTQxVa4wMz6vKqr5j/GpHFnbtrPSuRjzYZ7NE0zOYj1u4dddWhXj4HMO3hhKvhzzpkHG5DcqibPJ5J5vV13mMHlpFSBkzhtz/Q+bkQlE5yvyQ3s4XDqjivjg=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1704134776; cv=none; b=c2MllNbgmbr8nTGHBCnapCxI4SQZmNlQ1Oy/AMW4WJThXtipas2BvUhF/ITUQi5YUaSASDqij49QI4rf9QiFgKY/xLZ8RSbQsA0Zk1JW7gSSSMW8h6pKDIwmt69qrOwKZieXpe1KmV/HG2ZW3tNXfyp3oUsFrGuWvyAgy4CDoI9jYaFCSMUCKOAA2rHhFM3a/z77PfH+2rerZs/lj+R5O9Gl19/s+5lgBFwc/pfLXEKgUIjJNYfJxPzDa7bGGGop+1eg3WhxGwXJq7/2ID31uVd7I2p9QqaUp6ANRKokCEazVtxqua6oskxrlb+Rlq5pZoE2fExXRtHgn5JobWmPs1yVW1vfzObdKCtA+TpRGAZh/LvkDqpFN1v1fouFK3KFsScl1D2uezZJyMzw7nsY7KKWwAzfAYpdN1tm83Rwh5LJHqToTABlkrJDXOlJwUztFWHxJcVi0WOnfME7vy2ULJ64HUddcO7Z0zr2R3SM4jj3r0qlvsDymOc/Msi8jqGfHCIfMI7dX/AWlyWcLLJtXm3Q6+IesfpetlqXW/WntmCtsaqqzZamx5CmXQJsCO00mbzQVknoej2jmkK1Qng1F65Nfbs50WawIg2K6NzV12WMGS+52s0+3wrHSdxiOzlSQ7O8BaoQJYbrGbYuZ7TuMxmEiSjRKyVbkQZaYalNHQ0=
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Mon, 01 Jan 2024 19:46:30 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1704134776; bh=TFZMFAn9VdIw8EaowPpNsY7kkzsDKKNnG09Dlx+SFO8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fq/gSzvOZSE3A9WjecfQOCBhzY/zGV3oZAA+67hr0PJqEx7LXo1P327W18CydVxNX QNyI098TypnWE5UfkWXHV5/v6MI491PlPbyIooK8wC0g8MRbtZ5e83OWhjq7zyIVLV NQSTCdWSKtyZrUV2oaua+7ApcLGy1SU1iecnw2zpWHY/UaV4k7dFohPImxNToJHQbj Jq7p0cXCDvP8E/R0wVuVcGQtvaIoQ0HG3NywGMJ0NIrZWJjsH/X5FR0YKj5lZfbmuf yLvmzDKD/T0tdyVxk5a9PJ49j2j+zNZndJ/eE/hAGn6+5dnVjmZ1kOTEUQldaP8aZp kF+0UBbuVLKvNEggeaqVEJmcxiGr0sKj3Ol+SOKYtt9voa6khHdk0qFZItUyhcRXo5 BtabTSp5xyopT6KfsidPrGjqUp+92ney4zS0AwTbsJtoEfWBbXxK5ug/UigU8d7Ho1 o7nUPz7RSbPd8S7jB+bkbDiQMms8uI4x3Binobs/lTIeSpVztR5VoO1QkLrKN7x+WW ucXltNvZRp6MiRmZm00j1GU7Q+n2UrzDGFkAm6QtVF60En4/4Dnu/KJumvbzjM7jIk zxwDKYmq3S2khXbJfntU0jYUD6BuXuYt25ENr/vZOEfCr/48eZtOYMCWLjFfu1r6FR IL8629AFVqM5/MPCvVQLoNlU=
- In-reply-to: <d0b9badb35819350b2cb2e129f4119db@stamm-wilbrandt.de>
- Mail-followup-to: hermann@stamm-wilbrandt.de, pari-users@pari.math.u-bordeaux.fr
- References: <c993f70d496bf8608461d8c78505c945@stamm-wilbrandt.de> <ZZLI32mJuNvkcVJq@math.u-bordeaux.fr> <bb6af425a0b26bda5e0b45107ed90ee6@stamm-wilbrandt.de> <ZZMCpFLfg6PLGvXM@math.u-bordeaux.fr> <d0b9badb35819350b2cb2e129f4119db@stamm-wilbrandt.de>
* hermann@stamm-wilbrandt.de [2024-01-01 19:41]:
> The behavior is different based on whether firefox is already running or
> not.
> If running, a new tab is opened with search page, and GP prompt appears on
> x86_64+aarch64.
> If firefox is not already running, x86_64+aarch64 hang after starting
> firefox, no GP prompt.
Ah, yes. If the browser is not already running, we mustRun the browser
as a background job, otherwise system() will wait for the command to
complete. Here's the (hopefully) final version:
oeis(v)=
{ my(s = ""); for (i=1, #v, s = concat(s, Str(v[i]",")));
system(Str("$BROWSER https://oeis.org/search?q=", s, "&"))
}
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/