News for hackers. Stuff that matters.

cassiogo

Re:What do Visa and Mastercard do? An intro to card networks on Wednesday September 09, 2026 @02:24PM (#49631234)
> If it's so easy to disrupt visa/mastercard payment network, they wouldn't be able to charge this much

If they have the US government behind them its much easier

https://thepaypers.com/payments/expert-views/pix-hits-a-wall...

What? Never heard of this
Re:Please Just Try Htmx on Friday December 19, 2025 @10:01AM (#46326573)
I think the htmx counterpart from Rails folks would be Turbo not Stimulus
Re:Self-hosting my photos with Immich on Saturday December 06, 2025 @07:29AM (#46172800)
Such a weird take. Of course "self hosting" means "self hosting".

Sure it could be easier/safer to manage, everything can be better.

Over the last couple of years hosting it I had a single issue with an upgrade but that was because I simply ignore the upgrade instructions and YOLOed the docker compose update.

Again, is it perfect? No. Would I expect a non tech savy user to manage their own instance? Again no.

Re:I Switched from Htmx to Datastar on Friday October 10, 2025 @07:06AM (#45537480)
I like Hotwire but I admit its a bit confusing to get started with and the docs dont help. Form submits + redirects are a bit weird, you cant really make the server "break out" of a frame during a redirect if the form was submitted from inside a frame (there are workarounds, see https://github.com/hotwired/turbo/issues/257).

Also, custom actions [https://turbo.hotwired.dev/handbook/streams#custom-actions] are super powerfull, we use it to emmit browser events, update dom classes and attributes and so on, just be careful not to overuse it.

Felt a similar way when playing Expedition 33 earlier this year. Such a great game.
Re:uv Running a Script with Dependencies on Tuesday July 22, 2025 @08:03AM (#44645833)
Maybe worth mentioning that ruby has a very similar feature https://bundler.io/guides/bundler_in_a_single_file_ruby_scri...
So... train tracks?
Not sure debian has (a modern) ruby installed by default, but I think you only need to have a working ruby installation and running the script. On a sidenote, this came out recently and could interest you https://dashbit.co/blog/announcing-phoenix-playground
Not mandatory, you could remove that
Not that I think this is pratical or even looks good, but its also doable with rails

  require 'bundler/inline'

  gemfile(true) do
    source 'https://rubygems.org'

    gem 'rails', '~> 7.1'
    gem "sqlite3", "~> 1.4"
  end

  require 'rails'
  require 'active_record/railtie'
  database = 'app_development.sqlite3'

  ENV['DATABASE_URL'] = "sqlite3:#{database}"
  ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: database)
  ActiveRecord::Schema.define do
    create_table :my_table, force: true do |t|
      t.integer :my_table_id
    end
  end

  class App < Rails::Application
    routes.append do
      root to: 'home#index'
    end
  end

  class HomeController < ActionController::Base
    def index
      render inline: 'HOME'
    end
  end

  App.initialize!

  run App
For very small apps on ruby land sinatra and roda are the right choices. On python the choice would be flask instead of the single file django.
Re:Leaving Everything Behind For Elixir [video] on Wednesday February 28, 2024 @12:02PM (#39540748)
He seems a bit biased maybe? Its fair that a rails controller does not exactly screams what its doing (implicit view rendering, routing etc).

But then, for someone not deep into react, a magic string like "use server" also does not clarify anything.

Also, he argues that just because you can it does not mean you should scatter sql queries around your views. But again, just because you can do a bunch of implicit stuff on a Rails controller it does not mean you should.

Re:Researchers Claim First Functioning Graphene-Based Chip on Friday January 19, 2024 @12:30PM (#39058218)
I belive you are thinking about Niobium and not Graphene
Re:How to Fetch a Turbo Stream on Tuesday October 24, 2023 @03:27PM (#38004102)
> Could be, but TFA doesn't specify it

If I understood correctly it does. They are handling promo codes outside of stripe.

I feel like you are missing the point of the article

> This is an extremely trivial bit of JavaScript, but it is made difficult because it is trying to use a JavaScript

Yes, it is trivial javascript, and it was trivially solved by a couple of javascript lines

Re:Crystal 1.9.1 Is Released on Monday July 17, 2023 @03:27PM (#36762803)
https://nim-lang.org/ for #3 probably
Stimulus would probably also fit the list
Re:Building an Internet Scale Meme Search Engine on Wednesday January 11, 2023 @08:34AM (#34338217)
> My preliminary speed tests were fairly slow on my Macbook. However, once I deployed the app to an actual iPhone the speed of OCR was extremely promising (possibly due to the Vision framework using the GPU). I was then able to perform extremely accurate OCR on thousands of images in no time at all, even on the budget iPhone models like the 2nd gen SE.

He does mention running it on a macbook

Re:So you're using a weird language on Thursday October 06, 2022 @08:30AM (#33107405)
I _think_ you can get a binary from typescript code via Deno
Re:What are your most used self-hosted applications? on Wednesday May 04, 2022 @01:44PM (#31263590)
The lack of a WebOS app for Jellyfin is sad, until we get one I have to stick to plex.
Re:The Big TDD Misunderstanding on Monday March 21, 2022 @07:07AM (#30752592)
> replacing the PostgresProjectionsRepository with an MemoryProjectionsRepository

Not as simple if you are using any "advanced" PG feature. If you testing simple select statements thats probably fine.

Re:Audiblegate on Thursday February 17, 2022 @06:46AM (#30372072)
Do you have any audible alternatives to suggest?
Re:What's new in Ruby 3.1? on Tuesday January 25, 2022 @08:05AM (#30071319)
Im also not in love with the shorthand hash syntax, but besides `_1` I cant remember at the moment what new syntax 3.1 have that 2.0 dont. Pattern matching maybe?

But now that I think about it, yeah, even looking only at pattern matching there is a lot of new syntax going on.

He has some nice content, but I cant deal with the click bait thumbs
Re:Open-sourcing the Sorbet VS Code Extension on Thursday January 06, 2022 @09:47PM (#29834147)
Even if I dont have signatures in my code, can I use it to get stdlib/gems signatures?
Re:Better Business Intelligence in Elixir with Livebook on Saturday July 31, 2021 @09:26AM (#28017937)
I'm not familiar with how Jupyter works, but I would guess so. Livebook "notepads" are just text files.