The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,262 other subscribers

Archive for February 19th, 2021

Python: saving a web page to a jpeg image file by using the Google base64url encoded screenshot of it

Posted by jpluimers on 2021/02/19

As a follow-up on Still looking for base64url decoding tools, both on-line and for MacOS homebrew: this is in Python, works on MacOS, Linux and Windows, and can be integrated in a web page.

It is based on the ideas in [WayBack] Python-Twitter-Hacks/websiteScreenshot.py at master · edent/Python-Twitter-Hacks · GitHub, which was more like a code snippet with hard coded literals.

It downloads a jpeg web-site screenshot using the Google PageSpeed API V1, which generates the screenshot as a base64url encoded blob inside a JSON structure.

Python does not have native Python base64url support, but the concept of it is fairly straightforward: [WayBack] RFC 4648 – The Base16, Base32, and Base64 Data Encodings: Base 64 Encoding with URL and Filename Safe Alphabet, which allows data to be passed inside URLs without reverting to [WayBack] Percent-encoding – Wikipedia.

My changes work, but are by no means in canonical form or Idiomatic Python. I have a long way to go to reach that level of Python.

So I forked the repository, and fixed the script basing it on Python 3.

I might make it V2 compatible in the future. More information on V2 in [WayBack] Google APIs Explorer: Services > PageSpeed Insights API v2 > pagespeedonline.pagespeedapi.runpagespeed

Content is in the below gist.

–jeroen

Read the rest of this entry »

Posted in base64, base64url, Development, Encoding, Python, Scripting, Software Development | Leave a Comment »

ColumnCopy – Chrome Web Store

Posted by jpluimers on 2021/02/19

[Archive.is] ColumnCopy – Chrome Web Store: Enables copying columns from tables.

It can read anything on any web page, and it uses modifier keys, so I usually have it disabled until I need it.

You can disable/enable it on this page:

chrome://extensions/?id=lapbbfoohlcmlbdaakldmmallcbcbpjb

Via [WayBack] Select column from a table with Google Chrome – Super User

Sorry to dig up an old thread, but this might help someone in the future. I wrote a Chrome extension called ColumnCopy which accomplishes this task.

–jeroen

Posted in Chrome, LifeHacker, Power User, Web Browsers | Leave a Comment »

Quooker links en afmetingen

Posted by jpluimers on 2021/02/19

(Dutch as that’s where I found the information)

NB: Prijzen waren van begin 2019

  • PDF: Installatiehandleiding COMBI+
  • PDF:  Vervanging HiTAC®-waterfilter bij COMBI(+) (E)
  • PDF: Installatiehandleiding CUBE
  • PDF: Afmetingen Flex kraan
  • [Archive.is] Installateurs

    Klik op het plaatje voor een grotere versie.

  • [WayBack] PDF: Afmetingen reservoirs

    LET OP! Houd rekening met 3 cm extra ruimte in uw keukenkastje boven de COMBI(+) en 8 cm extra boven de COMBI(+) E i.v.m. de slang

  • [Archive.is] Wat zijn de afmetingen van de Quooker-reservoirs? Installatie

    PRO3-reservoir (3L kokendwaterreservoir):

    Reservoir hoogte: 40 cm

    Reservoir diameter: 15 cm

    COMBI(+)-reservoir (7L kokendwaterreservoir):

    Reservoir hoogte: 47 cm

    Reservoir diameter: 20 cm

    CUBE (gekoeld waterreservoir):

    Reservoir hoogte: 43 cm incl. CO2 cilinder

    Reservoir breedte: 30 cm incl. CO2 cilinder

    Reservoir diepte: 44 cm

    Een overzicht van alle specificaties van onze kokendwaterreservoirs vind je hier. Een overzicht van alle specificaties van de Quooker CUBE vind je hier.

    Benieuwd naar de afmetingen van de kranen? Deze vind je op de pagina van de kraan naar jouw keuze.

  • [Archive.is] Onze collectie reservoirs
    • Kokendwaterreservoir COMBI+

      • Samenvatting

        Inhoud 7 liter
        Afmetingen (hoogte x breedte x diepte) 47 x 20 x 20 cm
        Hoeveelheid 40° – 60° Onbeperkte
      • Algemeen

        Reservoir Hoogte 47 cm
        Reservoir Diameter 20 cm
        Opwarmtijd 20 minuten
        Benodigde Werkhoogte 50 cm
      • Vermogen

        Vermogen 2200 W
        Spanning 230 V
        Stand-By Verbruik * 10 W
        Jaarlijks Elektriciteitsverbruik 511 kWh/A
      • Waterdruk

        Minimale Waterleidingdruk 200 kPa (2 bar)
        Maximale Waterleidingdruk 600 kPa (6 bar)
        Max. Werkdruk 800 kPa (8 bar)
      • Beveiliging

        Overdrukventiel 800 KPa (8 Bar)
        Maximaal Temperatuur
      • Specificaties

        Hoeveelheid 40°C Onbeperkt
        Hoeveelheid 60°C Onbeperkt
        Temperatuurregeling Thermostatisch
        Filter High Temperature Activated Carbon
      • Energielabel

        Opgegeven Capaciteitsprofiel XXS
        Energie-Effieciëntieklasse Voor Waterverwarming A
        Energie-Effieciëntie Voor Waterverwarming 36%
        Warmwatertemperatuurinstelling Van Waterverwarmingstoestel 40°C – 60°C
        Geluidsniveau – dB
    • Gekoeldwaterreservoir CUBE

      • Specificaties

        Spanning 230 V
        Vermogen 100 W
        Stand-By Verbruik 12 W
        Reservoir Hoogte 43 cm
        Reservoir Breedte 30 cm
        Reservoir Diepte 44 cm
        Minimale Waterleidingdruk 200 kPa (2 bar)
        Maximale Waterleidingdruk 400 kPa (4 bar)
        Type Waterfilter Hollow Fiber filter
  • [Archive.is] Koel bruisend en gefilterd water met de CUBE [Archive.is image]

Posted in DIY, LifeHacker, Power User | Leave a Comment »