HackerTrans
TopNewTrendsCommentsPastAskShowJobs

FBISurveillance

no profile record

Submissions

Ruby 4.0.0

ruby-lang.org
758 points·by FBISurveillance·hace 7 meses·191 comments

Next.js 16

nextjs.org
28 points·by FBISurveillance·hace 9 meses·10 comments

Ruby on Rails 8.1 Released

github.com
6 points·by FBISurveillance·hace 9 meses·0 comments

comments

FBISurveillance
·hace 4 meses·discuss
Note: no power adapter included.
FBISurveillance
·hace 6 meses·discuss
Terrible take. Would you be up for paying for groceries based on "value" you get?
FBISurveillance
·hace 7 meses·discuss
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.
FBISurveillance
·hace 8 meses·discuss
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)
FBISurveillance
·hace 9 meses·discuss
We scaled to ~1100 bare metal servers with them and it worked perfectly.
FBISurveillance
·hace 10 meses·discuss
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.
FBISurveillance
·hace 4 años·discuss
Google Meet is a great example of an app that uses AV and works well, running in a browser. Even with a large number of participants - and no client required.

On the other hand, Zoom web client is an afterthought, to put it nicely.
FBISurveillance
·hace 9 años·discuss
They might be 30% slower in virtualization and should be about 5-7% slower in real world usage. As a heavy user of the cloud I'm worried about my infra more than about my laptop: if my cloud setup gets even 7% slower overnight it won't be good to say the least, especially with lower-clock 2Ghz Skylake GCP CPUs.

Those 5--7% will make me feel like I'm powered by Atom and it will be even worse for single-core bounded workloads in the cloud.