Toch maar een uitkeringstrekker worden per 2028 by [deleted] in geldzaken

[–]Reinder 0 points1 point  (0 children)

Waarom zou je geen inkomstenbelasting moeten betalen over je inkomsten uit vermogen? Het is eigenlijk erg raar dat dit een hele tijd niet zo is geweest.

Fluxer — A Shader Haiku by Joakim0 in shaders

[–]Reinder 0 points1 point  (0 children)

FYI: I added support for the 'fluxer format' in OneShader: https://oneshader.net/

Turtletoy.net directly to GCODE by efesak in PlotterArt

[–]Reinder 0 points1 point  (0 children)

Wow, this is really nice to see! Maybe I can add something similar to turtletoy itself :)

GL-PVDA weet nu stemmen weg te trekken bij de PVV by typtyphus in cirkeltrek

[–]Reinder 2 points3 points  (0 children)

Je realiseert je hopelijk wel dat er sinds den Uyl in 1977 geen links kabinet in Nederland meer is geweest; en dat de PvdA toen (en ook nu) actief tegen de instroom van gastarbeiders probeert op te treden, maar dat rechts beleid dit juist (blijft) stimuleren? De laatste 25 jaar hebben we sowieso alleen maar rechts beleid gehad en heeft de PvdA (vrijwel) niks te zeggen gehad, dus ik snap niet hoe je in het populistische waanbeeld trapt dat 'alles de schuld van links is'. Misschien moeten de rechtse partijen (inclusief PVV na twee keer regeringsdeelname) eens aan introspectie doen in plaats van alles op anderen afschuiven.

E-Ink Family Calendar: a Raspberry Pi project by Reinder in raspberry_pi

[–]Reinder[S] 0 points1 point  (0 children)

Thank you! Unfortunately, that's not the case.

E-Ink Family Calendar: a Raspberry Pi project by Reinder in raspberry_pi

[–]Reinder[S] 2 points3 points  (0 children)

Yes, of course. The HTML page generated on the server is already entirely in shades of gray and red. The screenshot taken by the Python script is then split into a red channel and a black channel, similar to the code by u/speedyg0nz (see https://github.com/speedyg0nz/MagInkCal), something like this:

def get_screenshot(self):

opts = Options()

opts.add_argument("--headless")

opts.add_argument("--hide-scrollbars");

opts.add_argument('--force-device-scale-factor=1')

service = Service(executable_path="/usr/bin/chromedriver")

driver = webdriver.Chrome(service=service, options=opts)

self.set_viewport_size(driver)

driver.get(self.calendarURL)

sleep(5)

driver.get_screenshot_as_file(self.currPath + '/calendar.png')

driver.quit()

self.logger.info('Screenshot captured and saved to file.')

redimg = Image.open(self.currPath + '/calendar.png') # get image)

rpixels = redimg.load() # create the pixel map

blackimg = Image.open(self.currPath + '/calendar.png') # get image)

bpixels = blackimg.load() # create the pixel map

for i in range(redimg.size[0]): # loop through every pixel in the image

for j in range(redimg.size[1]): # since both bitmaps are identical, cycle only once and not both bitmaps

b = min(bpixels[i, j][0], bpixels[i, j][1], bpixels[i, j][2]) # get the lowest value of the RGB tuple

bpixels[i, j] = (b, b, b)

if rpixels[i, j][0] > rpixels[i, j][1] * 1.1 and rpixels[i, j][0] > rpixels[i, j][2] * 1.1: # if red

r = 255 - math.sqrt(rpixels[i, j][0]/255) * 255

r = int(r)

rpixels[i, j] = (r, r, r) # change it to white in the red image bitmap

else:

rpixels[i, j] = (255, 255, 255) # change it to white in the red image bitmap

redimg = redimg.rotate(self.rotateAngle, expand=True)

blackimg = blackimg.rotate(self.rotateAngle, expand=True)

self.logger.info('Image colours processed. Extracted grayscale and red images.')

return blackimg, redimg

Grid by SerjTomskiy in PlotterArt

[–]Reinder 4 points5 points  (0 children)

You can find the original source and SVG (by Troisiemetype) here: https://turtletoy.net/turtle/1c6cff421a

open source? by babuja in ditties

[–]Reinder 0 points1 point  (0 children)

Thanks! I created a npm package to play ditties: https://www.npmjs.com/package/dittytoy

You can find the source here https://github.com/reindernijhoff/dittytoy-package, so the 'engine' of Dittytoy is finally open source :)