profile
viewpoint
Hugo van Kemenade hugovk Nord Software Helsinki, Finland

dariusk/corpora 4275

A collection of small corpuses of interesting data for the creation of bots and similar stuff.

dariusk/NaNoGenMo-2015 342

National Novel Generation Month, 2015 edition.

c-w/gutenberg 273

A simple interface to the Project Gutenberg corpus.

dariusk/NaNoGenMo-2014 259

National Novel Generation Month, 2014 edition.

dmakhno/travis_after_all 39

This is travis helper to run particular work only once in matrix

digiaonline/drupal-scripts 3

Some handy tools for working with Drupal

digiaonline/nordsoftware.github.io 1

The old homepage for open source at Nord Software. New site:

eartle/twolde 1

It's like Twitshift, but for people who prefer Twolde

hugovk/alcohol-tester 1

Am I safe to drive?

push eventhugovk/drop-python

Deploy Bot

commit sha 4625ae915b519a4a457bc0441aae7ffc864c6122

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 21 minutes

push eventhugovk/drop-python

Deploy Bot

commit sha 68b84e7e3fc2a5362b93939716a6abd6d4d0049f

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in an hour

push eventhugovk/drop-python

Deploy Bot

commit sha fa21ec9889fc31a5dbb78d1ef624c822b5c84cda

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 2 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 293c32c13c7d0f075914f8c8f800ac53d3d911c5

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 3 hours

push eventhugovk/drop-python

Deploy Bot

commit sha e490a3c0b682acfebb0c8968e2de25bb4f0a2bbd

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 4 hours

issue commentpython/peps

Let's rename the master branch to main

This can be closed now, main is now the default branch, see also https://github.com/python/peps/pull/2176.

gvanrossum

comment created time in 4 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 6a17cf6137f051b52591ae6dc8e3f3865528eeed

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 5 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 5f091c55981156333d8e2f92734af1ef1a9f22a8

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 6 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 1f7d2169c9f7915269edb799266a61ac46586d09

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 7 hours

push eventhugovk/drop-python

Deploy Bot

commit sha e96ce0213514c5cf932c33775462cbb8a10ba443

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 8 hours

PullRequestReviewEvent

Pull request review commentpython-pillow/Pillow

Added PIL + pathlib Tutorial

 Using the ImageSequence Iterator class         # ...do something to frame...  +Batch processing with Pathlib+-----------------------------++This example uses PIL together with pathlib, in order to reduce the quality of all png images in a folder++::++    from PIL import Image+    from pathlib import Path+++    def compressImg(filepath):+        file = filepath.stem+        with Image.open(filepath) as img:+            if img.mode != 'RGB':+                img = img.convert('RGB')+            img.save(file + ".jpg",+                    "JPEG",+                    optimize=True,+                    quality=80)+        return+++    base_directory = Path.cwd()++    for path in base_directory.iterdir():+        if path.suffix == ".png":+            print(path)+            compressImg(path)

Format with Black and use a lowercase function name:

    from pathlib import Path
    from PIL import Image


    def compress_image(filepath):
        file = filepath.stem
        with Image.open(filepath) as img:
            if img.mode != "RGB":
                img = img.convert("RGB")
            img.save(file + ".jpg", "JPEG", optimize=True, quality=80)
        return


    base_directory = Path.cwd()

    for path in base_directory.iterdir():
        if path.suffix == ".png":
            print(path)
            compress_image(path)
kolibril13

comment created time in 9 hours

Pull request review commentpython-pillow/Pillow

Added PIL + pathlib Tutorial

 Using the ImageSequence Iterator class         # ...do something to frame...  +Batch processing with Pathlib+-----------------------------++This example uses PIL together with pathlib, in order to reduce the quality of all png images in a folder
This example uses Pillow together with pathlib, in order to reduce the quality of all PNG images in a folder:
kolibril13

comment created time in 9 hours

Pull request review commentpython-pillow/Pillow

Added PIL + pathlib Tutorial

 Using the ImageSequence Iterator class         # ...do something to frame...  +Batch processing with Pathlib
Batch processing with pathlib
kolibril13

comment created time in 9 hours

PullRequestReviewEvent

push eventhugovk/drop-python

Deploy Bot

commit sha 8dc61e83d5551d335e8b8cc8ed9a0e3287ed91d8

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 9 hours

pull request commentdariusk/corpora

international-food

Hmm, now it has 90's albums!

melissandrej

comment created time in 9 hours

pull request commentpython-pillow/Pillow

Add Tidelift alignment action and badge

pipenv is used for pinning dependencies (and sub-dependencies) to get reproducible builds, usually used for developing applications rather than libraries like Pillow.

(We use requirements.txt for test/docs/release so there is an argument to be made for pinning (and a counter-argument for having to manage/update those pins).)

If possible, it would be nice to avoid pipenv, because it means we need to duplicate the content of requirements.txt into Pipfile and then run a command to regenerate Pipfile.lock, but if it's the only way, so be it. (In general, if another library had runtime dependencies they probably should not pin.)

Can we have them listing the same things? That is, add packaging and remove docutils from Pipfile?

image


Also, is it possible to give access to the rest of the Pillow team to see the scans, so we can see why they fail?

At https://tidelift.com/scans/e4fc2d1a-f253-4831-9ff6-bebe624a75f1 I see:

Unable to find scan e4fc2d1a-f253-4831-9ff6-bebe624a75f1

Revision: 3d0c10ca6463e7ef35ae4a4a9a8b51f4989df519 (Check alignment status by running 'tidelift status 3d0c10ca6463e7ef35ae4a4a9a8b51f4989df519')
+ echo 'Waiting for the alignment to start'
+ sleep 15
Waiting for the alignment to start
+ ./tidelift status --wait 3d0c10ca6463e7ef35ae4a4a9a8b51f4989df519
Waiting for alignment to finish
Error: blocking issues.

Alignment Details URL: tidelift.com/scans/e4fc2d1a-f253-4831-9ff6-bebe624a75f1
Revision: 3d0c10ca6463e7ef35ae4a4a9a8b51f4989df519 - Status: failure

https://github.com/python-pillow/Pillow/runs/4393978672?check_suite_focus=true

aclark4life

comment created time in 10 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 44559e3265f1e6778205dfe7a664c034839e8f76

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 10 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 1cdfce78ebc36e8aa1823a994899920bbfc2d024

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 11 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 731c4519401d5476a71a9f5a3406206773440685

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 12 hours

issue closedbitprophet/alabaster

Auto-hyphens show as tofu in Chromium-based browsers

  • macOS Monterey
  • Chrome 95
  • Chrome Canary 98
  • Opera 71 (also Chromium)

The CSS uses hyphens: auto which inserts hyphens for some words, however with the hyphen shows as an empty box aka "tofu":

image

https://alabaster.readthedocs.io/en/latest/changelog.html

Non-Chromium browsers such as Firefox 94 (pictured here) and Safari 15.1 are fine:

image

Also reported to Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=1270110

closed time in 13 hours

hugovk

issue commentbitprophet/alabaster

Auto-hyphens show as tofu in Chromium-based browsers

Update: this was a Chromium bug on macOS Monterey, confirmed fixed in Chrome Canary 98.0.4742.0:

  • https://bugs.chromium.org/p/chromium/issues/detail?id=1267606

Due for Chrome stable release on 1st Feb 2022:

  • https://www.chromestatus.com/features/schedule

Closing.

hugovk

comment created time in 13 hours

issue commentpsf/black

Docs: auto-hyphens show as tofu in Chromium-based browsers

Update: this was a Chromium bug on macOS Monterey, now fixed and confirmed fixed in Chrome Canary 98.0.4742.0:

  • https://bugs.chromium.org/p/chromium/issues/detail?id=1267606

Due for Chrome stable release on 1st Feb 2022:

  • https://www.chromestatus.com/features/schedule
hugovk

comment created time in 13 hours

push eventhugovk/drop-python

Deploy Bot

commit sha f416dc770e1498eef77bdea007ed02daa74c9092

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 13 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 933dc0c939db237a9dd007c38e451dd8e67969d0

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 14 hours

push eventhugovk/drop-python

Deploy Bot

commit sha b3f5613cb314f0c8885d197485506dab64dc7be5

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 15 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 41093cb5abde6a346d1ec761ca1b73e5931bfd36

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 16 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 820af0866345cfdd39e178bed42897aa23c4dfcf

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 17 hours

push eventhugovk/drop-python

Deploy Bot

commit sha 8aa283caa1c769b5fdd71c66fac3a0ca0b533aa4

Deploy 9dcc0707f6d7a13ef1aeeaad96c0201a5b5c269b

view details

push time in 18 hours

more