[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Bug Safari Project
From:       Justin Zobel <justin.zobel () gmail ! com>
Date:       2023-07-25 2:59:59
Message-ID: fd7b18c9-cf84-8966-e794-32c9ec2852bc () gmail ! com
[Download RAW message or body]

I'd suggest sending it as one message so it's not interrupted by other 
chats in between. Matrix supports html being sent so you can just place 
<br> line breaks.

This is the hideous bash I was using to do it before, found it on my 
server: https://pastes.dev/5San77eoCU - I can't remember what broke but 
if you want to use it for ideas go ahead.

On 24/7/23 20:30, Ben Bonacci wrote:
>
> Hi Nate,
>
> I've recorded the script in action which can be accessed with this 
> link: https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4 
> (Expires in 1 week)
>
> Regards,
>
> Ben
>
> On 23/7/23 23:43, Nate Graham wrote:
>> Very cool stuff. Can we see it in action anywhere?
>>
>> Nate
>>
>>
>> On 7/23/23 01:38, Ben Bonacci wrote:
>>> Hi Ben,
>>>
>>> Thanks for the suggestion! Now after each request the script will 
>>> wait 1-5 seconds before making the next request.
>>>
>>> Regards,
>>>
>>> Ben
>>>
>>> On 22/7/23 22:30, Ben Cooksley wrote:
>>>> On Sun, Jul 23, 2023 at 12:18 AM Ben Bonacci <ben@benbonacci.com> 
>>>> wrote:
>>>>
>>>>     Hi everyone!
>>>>
>>>>
>>>> Hi Ben,
>>>>
>>>>
>>>>     For the past few days I've been working on Bug Safari, which is a
>>>>     Python
>>>>     script that gets statistics for Plasma bugs and sends a report 
>>>> to the
>>>>     #plasma room on Matrix, which is one of the dot points for KDE's
>>>>     Automation goal.
>>>>
>>>>     I've now got the script uploaded to Invent at
>>>> https://invent.kde.org/bbonacci/bug-safari for anyone to look
>>>>     over, make
>>>>     improvements or implement.
>>>>
>>>>
>>>> Thanks for this, I have just had a quick look over the code and it 
>>>> overall looks pretty reasonable, and also follows best practice of 
>>>> setting it's own user agent.
>>>>
>>>> One small suggestion would be to add some small sleeps in to ensure 
>>>> that the server endpoints don't get hammered by your requests.
>>>> While the script by itself is fairly innocent, if similar scripts 
>>>> were added for a series of other channels and they all ran at the 
>>>> same time, this could result in a rush on the server that could 
>>>> make it inaccessible to normal users (or at the very least impact 
>>>> responsiveness).
>>>>
>>>> Adding some sleeps (ideally for a random number of seconds as 
>>>> people tend to pick the same cron times to run stuff on) will 
>>>> ensure this doesn't become an issue.
>>>>
>>>>
>>>>     Regards,
>>>>
>>>>     Ben
>>>>
>>>>
>>>> Cheers,
>>>> Ben
>>>>
>>>>
>>>>     --     Ben Bonacci
>>>> https://benbonacci.com
>>>>     C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
>>>>
>>>>     Quote of the Day: "What's the good of living if you don't try a
>>>>     few things?" - Charles M. Schulz
>>>>
>>> -- 
>>> Ben Bonacci
>>> https://benbonacci.com
>>> C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
>>>
>>> Quote of the Day: "If you only read the books that everyone else is 
>>> reading, you can only think what everyone else is thinking." - 
>>> Haruki Murakami
>>>
> -- 
> Ben Bonacci
> https://benbonacci.com
> C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
>
> Quote of the Day: "It does not matter how slowly you go as long as you do not stop." - Confucius
[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I'd suggest sending it as one message so it's not interrupted by
      other chats in between. Matrix supports html being sent so you can
      just place &lt;br&gt; line breaks.<br>
      <br>
      This is the hideous bash I was using to do it before, found it on
      my server: <a class="moz-txt-link-freetext" \
href="https://pastes.dev/5San77eoCU">https://pastes.dev/5San77eoCU</a> - I can't \
remember what  broke but if you want to use it for ideas go ahead.<br>
    </p>
    <div class="moz-cite-prefix">On 24/7/23 20:30, Ben Bonacci wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:82ea5e44-9a0c-a3f4-6a85-2085144f709a@benbonacci.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hi Nate,</p>
      <p>I've recorded the script in action which can be accessed with
        this link: <a class="moz-txt-link-freetext"
          href="https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4"
          moz-do-not-send="true">https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4</a>
  (Expires in 1 week)</p>
      <p>Regards,</p>
      <p>Ben<br>
        <span style="font-family:monospace"></span></p>
      <div class="moz-cite-prefix">On 23/7/23 23:43, Nate Graham wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:1533e394-d4ee-c584-d890-025c9786e776@kde.org">Very
        cool stuff. Can we see it in action anywhere? <br>
        <br>
        Nate <br>
        <br>
        <br>
        On 7/23/23 01:38, Ben Bonacci wrote: <br>
        <blockquote type="cite">Hi Ben, <br>
          <br>
          Thanks for the suggestion! Now after each request the script
          will wait 1-5 seconds before making the next request. <br>
          <br>
          Regards, <br>
          <br>
          Ben <br>
          <br>
          On 22/7/23 22:30, Ben Cooksley wrote: <br>
          <blockquote type="cite">On Sun, Jul 23, 2023 at 12:18 AM Ben
            Bonacci <a class="moz-txt-link-rfc2396E"
              href="mailto:ben@benbonacci.com" \
moz-do-not-send="true">&lt;ben@benbonacci.com&gt;</a>  wrote: <br>
            <br>
                Hi everyone! <br>
            <br>
            <br>
            Hi Ben, <br>
            <br>
            <br>
                For the past few days I've been working on Bug Safari,
            which is a <br>
                Python <br>
                script that gets statistics for Plasma bugs and sends a
            report to the <br>
                #plasma room on Matrix, which is one of the dot points
            for KDE's <br>
                Automation goal. <br>
            <br>
                I've now got the script uploaded to Invent at <br>
                <a class="moz-txt-link-freetext"
              href="https://invent.kde.org/bbonacci/bug-safari"
              moz-do-not-send="true">https://invent.kde.org/bbonacci/bug-safari</a>
            for anyone to look <br>
                over, make <br>
                improvements or implement. <br>
            <br>
            <br>
            Thanks for this, I have just had a quick look over the code
            and it overall looks pretty reasonable, and also follows
            best practice of setting it's own user agent. <br>
            <br>
            One small suggestion would be to add some small sleeps in to
            ensure that the server endpoints don't get hammered by your
            requests. <br>
            While the script by itself is fairly innocent, if similar
            scripts were added for a series of other channels and they
            all ran at the same time, this could result in a rush on the
            server that could make it inaccessible to normal users (or
            at the very least impact responsiveness). <br>
            <br>
            Adding some sleeps (ideally for a random number of seconds
            as people tend to pick the same cron times to run stuff on)
            will ensure this doesn't become an issue. <br>
            <br>
            <br>
                Regards, <br>
            <br>
                Ben <br>
            <br>
            <br>
            Cheers, <br>
            Ben <br>
            <br>
            <br>
                --     Ben Bonacci <br>
                <a class="moz-txt-link-freetext"
              href="https://benbonacci.com" \
moz-do-not-send="true">https://benbonacci.com</a>  <br>
                C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976 <br>
            <br>
                Quote of the Day: "What's the good of living if you
            don't try a <br>
                few things?" - Charles M. Schulz <br>
            <br>
          </blockquote>
          -- <br>
          Ben Bonacci <br>
          <a class="moz-txt-link-freetext" href="https://benbonacci.com"
            moz-do-not-send="true">https://benbonacci.com</a> <br>
          C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976 <br>
          <br>
          Quote of the Day: "If you only read the books that everyone
          else is reading, you can only think what everyone else is
          thinking." - Haruki Murakami <br>
          <br>
        </blockquote>
      </blockquote>
      <pre class="moz-signature" cols="72">-- 
Ben Bonacci
<a class="moz-txt-link-freetext" href="https://benbonacci.com" \
moz-do-not-send="true">https://benbonacci.com</a> C0A9 E67F 8CDC B1A1 0860 1807 E018 \
065C C7DF 3976

Quote of the Day: "It does not matter how slowly you go as long as you do not stop." \
- Confucius</pre>  </blockquote>
  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic