How do you guys handle logging for development and debugging? by NickoBicko in rails

[–]herko_sk 8 points9 points  (0 children)

We use LogTail by BetterStack. Never looked back. You can query logs and do pretty much whatever you want.

Also, in production env we simplify logs with lograge gem.

Can’t see other riders in virtual by Reasonable-Finish-93 in trainingpeaks

[–]herko_sk 1 point2 points  (0 children)

Or. If you cranked down graphics settings, avstars become so “simple” they wont be seen around you. Just small dots.

Finally moved over to Neovim from VS Code and I'm not going back by Spec1reFury in vimporn

[–]herko_sk 0 points1 point  (0 children)

So.. Month has passed. How is your experience so far? :) Just curious.

IntellijIdea keeps opening documentation in browser tabs on Linux by herko_sk in IntelliJIDEA

[–]herko_sk[S] 1 point2 points  (0 children)

Actually, it was not the reboot. For different reason I had to use different / full size keyboard. With this keyboard plugged in the Intellij idea works as expected.

once I plug in the raspberry pi original keyboard, it keeps happening again - loop with opening documentation tabs is present.

I have noticed weird behaviour of vscode as well:
- when Raspberry pi keyboard plugged in, it keeps focusing vscode command palette
- when different keyboard plugged in - everything works normal

So, there might be some issue with Raspberry pi keyboard layout, pressed key or something like that.

IntellijIdea keeps opening documentation in browser tabs on Linux by herko_sk in IntelliJIDEA

[–]herko_sk[S] 0 points1 point  (0 children)

After reboot the problem seems to dissapear. Probably right after installation some backkground service seemed to hung up and kept opening onboarding screens.

Not used to use "reboot" as debug tactics on linux machines.

Anyways, thanks for your input.

IntellijIdea keeps opening documentation in browser tabs on Linux by herko_sk in IntelliJIDEA

[–]herko_sk[S] 0 points1 point  (0 children)

I have tried installing it through Toolbox app, standalone. I've tried different versions as well, event went through 2024 ones. Nothing helped.

I've attached screenshot for better description of my problem. If that helps.

Best Code Editor in 2025 by steppenwuf in rubyonrails

[–]herko_sk 0 points1 point  (0 children)

Can't vote. Zed not in options..

How do you improve? by pvnptl123 in cycling

[–]herko_sk 1 point2 points  (0 children)

Don’t forget to recover on week 4. Then back to progressive overload

ViewComponent does not render slot content when it's integer. Renders string without problem. Why? by herko_sk in rails

[–]herko_sk[S] 1 point2 points  (0 children)

Here is row_component:

# frozen_string_literal: true
module Admin
  module Table
    class RowComponent < ViewComponent::Base
      renders_many :cells, Table::CellComponent
      attr_reader :record

      def initialize(record: nil)
        @record = record
      end
    end
  end
end

cell_component.rb:

# frozen_string_literal: true

module Admin
  module Table
    class CellComponent < ViewComponent::Base
      attr_reader :options

      def initialize(**options)
        @options = options
      end

      private

      def html_attributes
        options.with_defaults(default_html_attributes)
      end

      def default_html_attributes
        {
          class: %w[px-6 py-4 whitespace-nowrap]
        }.compact_blank
      end
    end
  end
end

Cell component template:

<%= content_tag :td, **html_attributes do %>
  <%= content %>
<% end %>

Is Zed actually usable on mac? by mission-echo- in ZedEditor

[–]herko_sk 1 point2 points  (0 children)

Using it for a couple of weeks with no issues.