HackerTrans
TopNewTrendsCommentsPastAskShowJobs

FBISurveillance

no profile record

Submissions

Ruby 4.0.0

ruby-lang.org
758 points·by FBISurveillance·7 เดือนที่ผ่านมา·191 comments

Next.js 16

nextjs.org
28 points·by FBISurveillance·9 เดือนที่ผ่านมา·10 comments

Ruby on Rails 8.1 Released

github.com
6 points·by FBISurveillance·9 เดือนที่ผ่านมา·0 comments

comments

FBISurveillance
·4 เดือนที่ผ่านมา·discuss
Note: no power adapter included.
FBISurveillance
·6 เดือนที่ผ่านมา·discuss
Terrible take. Would you be up for paying for groceries based on "value" you get?
FBISurveillance
·7 เดือนที่ผ่านมา·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
·8 เดือนที่ผ่านมา·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
·9 เดือนที่ผ่านมา·discuss
We scaled to ~1100 bare metal servers with them and it worked perfectly.
FBISurveillance
·10 เดือนที่ผ่านมา·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
·4 ปีที่แล้ว·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
·9 ปีที่แล้ว·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.