HackerTrans
トップ新着トレンドコメント過去質問紹介求人

FBISurveillance

no profile record

投稿

Ruby 4.0.0

ruby-lang.org
758 ポイント·投稿者 FBISurveillance·7 か月前·191 コメント

Next.js 16

nextjs.org
28 ポイント·投稿者 FBISurveillance·9 か月前·10 コメント

Ruby on Rails 8.1 Released

github.com
6 ポイント·投稿者 FBISurveillance·9 か月前·0 コメント

コメント

FBISurveillance
·4 か月前·議論
Note: no power adapter included.
FBISurveillance
·6 か月前·議論
Terrible take. Would you be up for paying for groceries based on "value" you get?
FBISurveillance
·7 か月前·議論
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 か月前·議論
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 か月前·議論
We scaled to ~1100 bare metal servers with them and it worked perfectly.
FBISurveillance
·10 か月前·議論
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 年前·議論
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 年前·議論
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.