Readit News logoReadit News
douchescript commented on Penpot: The Open-Source Figma   github.com/penpot/penpot... · Posted by u/selvan
jhancock · 25 days ago
Thats Clojure...one person can look like a whole team ;)

couldn't help being cheeky...actually there are quite a few contributors.

douchescript · 25 days ago
Yeah, finally some lisp!
douchescript commented on I only use Google Sheets   mayberay.bearblog.dev/why... · Posted by u/mugamuga
douchescript · 3 months ago
Works as long as you don’t have to ask ”which Google sheet” if you just have one sheet for a particular problem you are not in a world of hurt.
douchescript commented on I think it's time to give Nix a chance   maych.in/blog/its-time-to... · Posted by u/pacmansyyu
douchescript · 7 months ago
Nix + flakes & direnv is the perfect dev environment, run it on the Mac and everybody in team can setup any project in seconds. We also have a makefile that sets up Postgres / init,start,stop with a local file socket - so every project instance has it’s own db instance. Very jummy.

That said I wish it was easier to be able to pick a specific build of for example ruby like ruby-3.3.7-p123.

douchescript commented on Web apps built with Ruby on Rails   weuserails.com/... · Posted by u/kyrylo
itsthecourier · a year ago
just use importmaps

https://guides.rubyonrails.org/working_with_javascript_in_ra...

- Adding npm Packages with importmap-rails To add new packages to your import map-powered application, run the bin/importmap pin command from your terminal:

$ bin/importmap pin react react-dom

Then, import the package into application.js as usual:

import ReactDOM from "react-dom"

douchescript · a year ago
It would be a valid thing if there was a documented way to convert a generic node package to import map. Not much stuff in that importmap ecosystem - seems doa.
douchescript commented on Web apps built with Ruby on Rails   weuserails.com/... · Posted by u/kyrylo
breckenedge · a year ago
Rails has changed it four times in 12 years:

* Prototype

* Asset pipeline

* Webpacker

* Importmaps

douchescript · a year ago
There was also the coffeescript romance, that was brief. But maybe earlier.
douchescript commented on Web apps built with Ruby on Rails   weuserails.com/... · Posted by u/kyrylo
itsthecourier · a year ago
just use importmaps

https://guides.rubyonrails.org/working_with_javascript_in_ra...

- Adding npm Packages with importmap-rails To add new packages to your import map-powered application, run the bin/importmap pin command from your terminal:

$ bin/importmap pin react react-dom

Then, import the package into application.js as usual:

import ReactDOM from "react-dom"

douchescript · a year ago
But how do you integrate and turn on at a specific page/controller view? Look for a specific dom id?
douchescript commented on Web apps built with Ruby on Rails   weuserails.com/... · Posted by u/kyrylo
douchescript · a year ago
What’s the best way to use JavaScript on rails these days?

I’ve been using rails for over 20 years and still love it but the JavaScript story has always been in flux in bad ways. I don’t like the turbo stuff or stimulus. Basically just want to be able to add some nice charts, and some enhancements like confirmation for links. Basically just build admins with it so the caching for partial html just isn’t part of the game. Looked at upgrading to rails 8 now but the javascript in last version of rails was fragmented and complicated, so looking to find a good way to do it in a standard way now, hopefully next version of rail’s doesn’t change everything again.

douchescript commented on Atkinson Dithering (2021)   beyondloom.com/blog/dithe... · Posted by u/jdblair
tiffanyh · 2 years ago
Am I the only person who thinks the Floyd-Steinberg dithering is superior is clarity and detail?

The Atkinson dithering makes the image appear overexposed/blown-out (not true to the original image).

douchescript · 2 years ago
I prefer Atkinson dithering. I think it preserves more details when the resolution is very low. For more high resolutions floyd-steinberg is better though
douchescript commented on Atkinson Dithering (2021)   beyondloom.com/blog/dithe... · Posted by u/jdblair
mungoman2 · 2 years ago
To avoid changing the overall brightness like in the examples it is important to work on linearized values or to adjust the running error accordingly. It's not correct to work on the encoded sRGB values of the image directly. This is a very common mistake in blog articles about diy image filtering.
douchescript · 2 years ago
Please explain what you mean, atkinson dither loses 1/4 of the error to gain in contrast and details, rendering the top whites washed out. What's your recommended formula for converting the image to gray before dithering
douchescript commented on Things to avoid in Ruby   blog.appsignal.com/2024/0... · Posted by u/unripe_syntax
douchescript · 2 years ago
I do prefer always using self.attribute, it’s a little bit longer but there’s no ambiguity. Otherwise you would have to have all props in your head when reading the code.

u/douchescript

KarmaCake day32June 16, 2014View Original