FBISurveillance

Joined 9 years ago

Karma
1,247
Submissions
291
Member since
Sep 25
Important: If you are looking at this profile because you thought something I posted was wrong, dismissive, disrespectful, douchebaggish, what have you, I would really like to hear from you so that I could understand how you got that impression. I won't get mad, I won't "retaliate" I just want to hear what you have to say. It is important to me to communicate clearly and if something I said struck you that way then I failed and I would like to correct it. (Borrowed from another profile)

email: hnfriends31415 at gmail

View on Hacker News

Recent submissions

Comment · 8 months ago
Note: no power adapter included.
Comment · 9 months ago
Terrible take. Would you be up for paying for groceries based on "value" you get?
Comment · 10 months ago
Say what you will about Hungary but I think it came up with some great incentives for future parents: income tax cuts. If you have 4 kids you don't pay income tax for life.
Comment · 11 months ago
Another option is to use `SecureRandom.uuid_v7` like this:

    # app/models/application_record.rb
    class ApplicationRecord < ActiveRecord::Base
      include PrimaryKeyGenerator
    end

    # app/models/concerns/primary_key_generator.rb
    module PrimaryKeyGenerator
      extend ActiveSupport::Concern

      included do
        after_initialize :generate_id
      end

      def generate_id
        return if self.class.attribute_types["id"].type != :uuid
        return if id.present?

        self.id ||= SecureRandom.uuid_v7
      end
    end

This also gives you the advantage of having your PK known before record persisted (maybe it's just me but I like my UUID PKs generated in app instead of db)
Comment · 1 year ago
We scaled to ~1100 bare metal servers with them and it worked perfectly.
Comment · 1 year ago
I have 5000+ git repos locally that I grep through regularly and I have to admit my hopes for ASIF being faster were busted. It is faster than sparsebundle, but nowhere near native, unfortunately.
Comment · 1 year ago
Great stuff. So 2x$135 and I'll finally get my t-shirts folded for me in the laundry room.
Comment · 1 year ago
It looks to me like a stretch to call it an Internet Standard since there's no RFC. Out of curiosity: why not use `/.well-known` namespace for this?
Comment · 1 year ago
I love Rails and spent a good chunk of my career using it - and I'd recommend it more if only the frontend story wasn't that bumpy over the years with all the variations of asset pipelines.

I wish the TypeScript/React integration was easier. Say what you will but there's no way you can achieve interactivity and convenience of React (et al) UIs with Turbo/Hotwire in a meaningful time.

Comment · 1 year ago
Since when contributing back to the community is considered a bad faith move?
Comment · 1 year ago
I think they meant that chatgpt.com itself is powered by remix now, not the marketing website

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton