Readit News logoReadit News
madethemcry commented on Face as a QR Code   bookofjoe2.blogspot.com/2... · Posted by u/surprisetalk
wernsey · 2 months ago
The blog just leads to https://research.swtch.com/qr/draw/, which is the demo page of the blogs [1] and [2] written by Russ Cox many years ago about putting pictures in QR codes by manipulating the error correction codes in them

[1]: https://research.swtch.com/qart [2] https://research.swtch.com/field

madethemcry · 2 months ago
Hey thanks a lot, that should be the actual link behind the submission. Very interesting technique that boils down to encode a url with a ton of carefully shaped random numbers hidden in the fragment to generate the actual art.

That's the example url from the linked blog introducing this technique http://swtch.com/pjw/#123456789...

Source Code (Go) is here: https://github.com/rsc/qr/tree/master/qart

madethemcry commented on I’m leaving Redis for SolidQueue   simplethread.com/redis-so... · Posted by u/amalinovic
madethemcry · 2 months ago
DHH also famously describe why and how they are leaving the cloud https://world.hey.com/dhh/why-we-re-leaving-the-cloud-654b47...

I'm not a fan boy of DHH but I really like his critical thinking about the status quo. I'm not able to leave the cloud or I better phrase it as it's too comfortable right now. I really wanted to leave redis behind me as it's mostly a hidden part of Rails nothing I use directly but often I have to pay for it "in the cloud"

I quickly hit an issue with the family of Solid features: Documentation doesn't really cover the case "inside your existing application" (at least when I looked into it shortly after Rails 8 was released). Being in the cloud (render.com, fly.io and friends) I had to create multiple DBs, one for each Solid feature. That was not acceptable as you usually pay per service/DB not per usage - similar how you have to pay for Redis.

This was a great motivation to research the cloud space once again and then I found Railway. You pay per usage. So I've right now multiple DBs, one for each Solid feature. And on top multiple environments multiplying those DBs and I pay like cents for that part of the app while it's not really filled. Of course in this setup I would also pay cents for Redis but it's still good to see a less complex landscape in my deployment environment.

Long story short, while try to integrate SolidQueue myself I found Railway. Deployment are fun again with that! Maybe that helps someone today as well.

madethemcry commented on ASCII Clouds   caidan.dev/portfolio/asci... · Posted by u/majkinetor
madethemcry · 2 months ago
That is so beautiful. The underlying algorithm is perlin noise (see https://en.wikipedia.org/wiki/Perlin_noise) and it's over 40 years old!

It's such a fabulous tool as the generated images can be used for effects like glass/ice displacements, cheap water-like effects, but you can also generate terrains from it or just cool visual effects that benefit from random patterns. The core property to me is that it feels very organic/natural.

This was such a common tool in Flash AS3 back in the days to create stunning effects, games and such. I'm not active in building visual stuff like that anymore but I bet it's still very common in this field, because why not?

madethemcry commented on Tunnl.gg   tunnl.gg... · Posted by u/klipitkas
klipitkas · 3 months ago
I am also using tailscale for a few projects as well. Feel free to use whatever you trust more or works for you.
madethemcry · 3 months ago
Hey, I didn't mean to sell another tool over yours! It's just an experience that popped into my mind and I wanted to share. I appreciate your work and contributing to the problem space of exposing a local service. Thank you.
madethemcry commented on Tunnl.gg   tunnl.gg... · Posted by u/klipitkas
madethemcry · 3 months ago
I used ngrok when it was the to-go answer for serving localhost (temporarily, not permanent) to the public, but the last time I searched for alternatives I stumbled upon the following jewel.

   > tailscale funnel 3000

   Available on the internet:

   https://some-device-name.tail12345.ts.net/
   |-- proxy http://127.0.0.1:3000

   Press Ctrl+C to exit.

I've tailscale installed on my machine anyway for some connected devices. But even without this would convince me using it, because it's part of the free tier, dead simple and with tailscale it's coming from kind of a trusted entity.

madethemcry commented on The Farmer Was Replaced [video]   youtube.com/watch?v=aP2WH... · Posted by u/surprisetalk
madethemcry · 4 months ago
I did not play this (yet!), but just by watching this video I see how it overlaps with the coding games on https://code.org/en-US (Hour of Code!) in terms of having a code + gaming view to solve a challenge.

When I was teaching coding to kids, code.org was the to-go place besides using Scratch, to introduce coding patterns (mostly: conditional, loops).

An example is the famous Minecraft labyrinth [1]. There is also a Frozen themed one. If you have kids (~6y+), that's some fun way to get started instead of diving directly into actual code.

[1] https://studio.code.org/courses/mc/units/1/lessons/1/levels/...

madethemcry commented on Springs and bounces in native CSS   joshwcomeau.com/animation... · Posted by u/feross
madethemcry · 4 months ago
That gives me a quite literal flashback.

Back in the Macromedia Flash 5 days (25 years ago!), Robert Penner popularized the easing concept. I can't imagine the void we had before that. I clearly remember me starring at the formulas in ActionScript 1.0 (see [1]) without any chance of understanding them - but usage was clear, easy and fun!

Those formulas basically generated the required tweening numbers mathematical (comparable to the Bezier approach mentioned in the article). That's a much different concept to the linear interpolation described in the linked blog article where you pass in a static list of numbers. The more complex your curve the more numbers you need. That's when the author links to the external tool "Linear() Easing Generator" by Jake Archibald and Adam Argyle. It was a fresh and nice reading even though animations are less a topic for me then it was back with Flash.

Here an example of an easing function from the linked source file. The tween executing function would pass in time (t) and other parameters I can't name to calculate the resulting value continuously.

  Math.easeInOutBack = function (t, b, c, d, s) {
      if (s == undefined) s = 1.70158; 
      if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
      return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
  };
If you want to dig deeper, visit roberpenner's easing overview [2] with some resources. Surprisingly all of those links are still working.

[1] https://robertpenner.com/easing/penner_easing_as1.txt [2] https://robertpenner.com/easing/

madethemcry commented on ADS-B Exposed   adsb.exposed/... · Posted by u/keepamovin
madethemcry · 5 months ago
I missed the "About" link in the footer but still found my way to the repo [1], where the project is briefly explained including a ton of great example images. Thanks for that!

> This website (technology demo) allows you to aggregate and visualize massive amounts of air traffic data. The data is hosted in a ClickHouse database and queried on the fly. You can tune the visualizations with custom SQL queries and drill-down from 50 billion records to individual data records.

[1] https://github.com/ClickHouse/adsb.exposed/

madethemcry commented on Incident with Webhooks   githubstatus.com/incident... · Posted by u/munksbeer
madethemcry · 5 months ago
Yeah there are some issues. PR is stuck at "Checking for the ability to merge automatically..."

By accident I landed on https://us.githubstatus.com/ and everything was green. At first, I thought, yeah sure, just report green, then I realized "GitHub Enterprise Cloud" in the title. There is also a EU mirror: https://eu.githubstatus.com

Edit:

The report just updated with the following interesting bit.

> We identified a faulty network component and have removed it from the infrastructure. Recovery has started and we expect full recovery shortly.

madethemcry commented on A macOS terminal command that tells you if your USB-C cable is bad   kau.sh/blog/usbi/... · Posted by u/freetonik
madethemcry · 5 months ago
Content wise a nice idea, but I also like the conclusion about how AI made this possible in the first place. The author itself mentions this motivation. AI is undoubtedly perfect for utilities, small (even company internal) tools for personal use where maintainability is secondary as you can ditch the tool or rebuild it quickly.

> Two years ago, I wouldn’t have bothered with the rewrite, let alone creating the script in the first place. The friction was too high. Now, small utility scripts like this are almost free to build.

> That’s the real story. Not the script, but how AI changes the calculus of what’s worth our time.

u/madethemcry

KarmaCake day559May 7, 2012View Original