lade...
random avatar

nick_evans - Network

Posts Subscribe

“everybody is being fucked with constantly in tiny little ways by most apps and services, and I believe that billions of people being...

https://ruby.social/@nick_evans/...

“everybody is being fucked with constantly in tiny little ways by most apps and services, and I believe that billions of people being fucked with at once in all of these ways has profound psychological and social consequences that we’re not meaningfully discussing”
wheresyoured.at/never-forgive-

19.12.2024 02:18“everybody is being fucked with constantly in tiny little ways by most apps and services, and I believe that billions of people being...
https://ruby.social/@nick_evans/...

reading through @mame's latest rubyconf 2024 quine... I just learned about ruby's Integer#[] method for getting the value of a...

https://ruby.social/@nick_evans/...

reading through @mame's latest rubyconf 2024 quine... I just learned about ruby's Integer#[] method for getting the value of a single bit or slice of bits. Probably I'd seen it before, but I'd forgotten about it. It's obvious in retrospect, and quite handy in some circumstances.

19.11.2024 15:48reading through @mame's latest rubyconf 2024 quine... I just learned about ruby's Integer#[] method for getting the value of a...
https://ruby.social/@nick_evans/...

I was surprised to learn a few weeks ago that ruby's YAML can't properly encode or decode Data objects. Data was added in ruby 3.2,...

https://ruby.social/@nick_evans/...

I was surprised to learn a few weeks ago that ruby's YAML can't properly encode or decode Data objects. Data was added in ruby 3.2, so it isn't exactly _new_ at this point.

So anyway, I made a PR to fix that: github.com/ruby/psych/pull/692
Maybe we can get YAML encoding for Data in time for 3.4? 🤞

8.11.2024 17:02I was surprised to learn a few weeks ago that ruby's YAML can't properly encode or decode Data objects. Data was added in ruby 3.2,...
https://ruby.social/@nick_evans/...

I'm visiting Rocky Mountain National Park ⛰️🏕⛰️, and realized I didn't have any apps currently on my phone to display my...

https://ruby.social/@nick_evans/...

I'm visiting Rocky Mountain National Park ⛰️🏕⛰️, and realized I didn't have any apps currently on my phone to display my altitude, and at the time I had no cell signal to download one. So I wrote a quick and dirty script using termux-location and termux-toast, and it gets the job done!

10.8.2024 04:04I'm visiting Rocky Mountain National Park ⛰️🏕⛰️, and realized I didn't have any apps currently on my phone to display my...
https://ruby.social/@nick_evans/...

Kamal doesn't work with k8s or docker swarm. Shopify's ShipIt engine actually looks quite nice. Is there something that...

https://ruby.social/@nick_evans/...

Kamal doesn't work with k8s or docker swarm. Shopify's ShipIt engine actually looks quite nice. Is there something that "fixes" argocd for managing app deployments (Kargo looks interesting)? What should I be looking at?

12.7.2024 14:31Kamal doesn't work with k8s or docker swarm. Shopify's ShipIt engine actually looks quite nice. Is there something that...
https://ruby.social/@nick_evans/...

Deployment question: I've got a few different apps or services (mostly ruby, a few go) deployed to either docker swarm or (managed)...

https://ruby.social/@nick_evans/...

Deployment question: I've got a few different apps or services (mostly ruby, a few go) deployed to either docker swarm or (managed) Kubernetes, _slowly_ migrating everything to k8s. We're using argocd for our k8s apps, and I love it for infrastructure but it feels wrong in a dozen tiny different ways for application deployments. Our docker swarm apps are managed by bash scripts and ansible (and I'm looking forward to replacing ansible).

What modern tools are people happy deploying with?

12.7.2024 14:27Deployment question: I've got a few different apps or services (mostly ruby, a few go) deployed to either docker swarm or (managed)...
https://ruby.social/@nick_evans/...

Kupo? Kupopo...po...KUPO!(Moogles' theme, prepared piano duet)https://youtube.com/watch?v=vBD4BwM_wuk

https://ruby.social/@nick_evans/...

Kupo? Kupopo...po...KUPO!
(Moogles' theme, prepared piano duet)
youtube.com/watch?v=vBD4BwM_wu

24.5.2024 00:25Kupo? Kupopo...po...KUPO!(Moogles' theme, prepared piano duet)https://youtube.com/watch?v=vBD4BwM_wuk
https://ruby.social/@nick_evans/...

Simplest demonstration: puts "never runs" while falsevs (puts "runs?!?") while false

https://ruby.social/@nick_evans/...

Simplest demonstration:

puts "never runs" while false

vs

(puts "runs?!?") while false

21.5.2024 14:48Simplest demonstration: puts "never runs" while falsevs (puts "runs?!?") while false
https://ruby.social/@nick_evans/...

I just happened upon a very weird ruby 3.3 incompatibility that I couldn't find documented anywhere, and it seems like it must be an...

https://ruby.social/@nick_evans/...

I just happened upon a very weird ruby 3.3 incompatibility that I couldn't find documented anywhere, and it seems like it must be an accident. `while` and `until` statement modifiers don't work correctly with parenthesized statements anymore. They evaluate _after_ the statement (as if it were a `begin`/`end` block).

It took me a few searches, but I did find it in the bug tracker: bugs.ruby-lang.org/issues/2009

It's still broken in ruby 3.3.1. :(

21.5.2024 14:46I just happened upon a very weird ruby 3.3 incompatibility that I couldn't find documented anywhere, and it seems like it must be an...
https://ruby.social/@nick_evans/...

@jemmyw Is there any chance you've publicly shared (or could be enticed to share 😉) some of the capybara improvements mentioned here:...

https://ruby.social/@nick_evans/...

@jemmyw Is there any chance you've publicly shared (or could be enticed to share 😉) some of the capybara improvements mentioned here: aha.io/engineering/articles/mi

23.10.2023 13:58@jemmyw Is there any chance you've publicly shared (or could be enticed to share 😉) some of the capybara improvements mentioned here:...
https://ruby.social/@nick_evans/...

:wq

https://ruby.social/@nick_evans/...

:wq

8.8.2023 06:31:wq
https://ruby.social/@nick_evans/...

this is the first time that I've asked ChatGPT for help in simplifying some code (and probably the last time, until it receives some...

https://ruby.social/@nick_evans/...

this is the first time that I've asked ChatGPT for help in simplifying some code (and probably the last time, until it receives some major upgrades). We went back and forth for nearly 45 minutes, with me providing more context, test cases, etc. To be fair, the code is complex and it was taking me a long time to refactor it too. But it seems clear to me that ChatGPT never actually "understood" the code or the suggestions it made.

16.5.2023 10:27this is the first time that I've asked ChatGPT for help in simplifying some code (and probably the last time, until it receives some...
https://ruby.social/@nick_evans/...

patterns searching for patterns

https://ruby.social/@nick_evans/...

patterns searching for patterns

19.4.2023 22:00patterns searching for patterns
https://ruby.social/@nick_evans/...

But it looks like I'll need to invoke some black magic (e.g. using a C extension or fiddle) to get access to locals captured by a...

https://ruby.social/@nick_evans/...

But it looks like I'll need to invoke some black magic (e.g. using a C extension or fiddle) to get access to locals captured by a define_method block, e.g:

re = dynamically_generated_regexp
define_method(:bar) {|baz| foo.match? baz }

I'd hoped they'd be accessible like they are on Proc, via `method.binding` or `method.to_proc.binding`.

19.4.2023 18:33But it looks like I'll need to invoke some black magic (e.g. using a C extension or fiddle) to get access to locals captured by a...
https://ruby.social/@nick_evans/...

I wrote a simple thing to collect most of the regexps defined in a module, to test them with ruby 3.2's `Regexp.linear_time?`. This...

https://ruby.social/@nick_evans/...

I wrote a simple thing to collect most of the regexps defined in a module, to test them with ruby 3.2's `Regexp.linear_time?`. This could be useful for finding and preventing ReDoS vulnerabilities. In addition to consts it finds hard-coded regexp literals in method defs, even when dynamically defined with eval.
github.com/ruby/net-imap/blob/

19.4.2023 18:27I wrote a simple thing to collect most of the regexps defined in a module, to test them with ruby 3.2's `Regexp.linear_time?`. This...
https://ruby.social/@nick_evans/...
Subscribe
To add news/posts to your profile here, you must add a link to a RSS-Feed to your webfinger. One example how you can do this is to join Fediverse City.
         
Webfan Website Badge
Nutzungsbedingungen   Datenschutzerklärung  Impressum
Webfan | @Web pages | Fediverse Members