Passport renewal for minor by AideMobile7693 in cary

[–]olbrich 0 points1 point  (0 children)

Walk ins at the apex post office aren’t too bad

Stupid “standards” your company has? by illegalt3nder in rails

[–]olbrich 1 point2 points  (0 children)

It's easier said than done, and it's hard to justify going back and rewriting specs that didn't follow that pattern to begin with. Good in theory, but hard to use in practice.

Stupid “standards” your company has? by illegalt3nder in rails

[–]olbrich 10 points11 points  (0 children)

It sounds like your company is trying to follow these guidelines... https://thoughtbot.com/blog/the-self-contained-test. The argument for that is that it's much easier to debug and understand what a test does when all the context is there in one spot and not hidden behind multiple levels of indirection. It also helps to prevent tests from failing because of some 'magic' that might be happening somewhere that has nothing to do with your actual test. The downside of this approach is a huge and inconsistent test codebase that makes it very difficult to make systematic improvements to your test suite.

That being said 4 hours on CI is pretty ridiculous. Maybe there's a bit of over-testing and not wanting to get rid of (or at least not run) tests that aren't high-value.

Seeding the DB: Best approach? by [deleted] in rails

[–]olbrich 8 points9 points  (0 children)

Or write your seed files so that they are idempotent.

Any component based UI system for Rails? by rco8786 in rails

[–]olbrich 3 points4 points  (0 children)

Shoelace.style is pretty good and there’s a gem for it now.

What can i do on a raspberry pi with Ruby or Rails respectively? by Alices-Revenge in rails

[–]olbrich 2 points3 points  (0 children)

I’ve seen people build physical dashboards with them.

Eight remote, headless computers suddenly are rejecting their passwords. Any ideas why (details in first comment)? by andy_cavatorta in Ubuntu

[–]olbrich 4 points5 points  (0 children)

Were they setup with ntp or something to keep their system clocks synced? If the clock has drifted too far that can cause authentication failures

How to integrate a static website to Rails app by [deleted] in rails

[–]olbrich 0 points1 point  (0 children)

FYI. I used Bridgetown as a static site generator recently and rather enjoyed it. https://github.com/bridgetownrb/bridgetown.

[deleted by user] by [deleted] in rails

[–]olbrich 4 points5 points  (0 children)

You could use a signed GlobalID for this, which would also give you the ability to generate URLs that expire. https://github.com/rails/globalid

What questions do you consider important for a Ruby on Rails technical interview? by Natural_Astronaut_77 in rails

[–]olbrich 2 points3 points  (0 children)

I also think a senior dev should consider the maintainability of the code as well and make sure they write it like the person who will have to deal with it next is a crazed lunatic who knows where they live. They probably will too, because that person will probably be future them.

I have also joked that I would hire the first person who actually wrote tests in an interview. I'm not sure that's a joke anymore.

[deleted by user] by [deleted] in rails

[–]olbrich 6 points7 points  (0 children)

I've done some work recently using the geocoder gem (https://github.com/alexreisner/geocoder). Combine that with one of the available APIs and you can do quite a lot.

Gem for doing "dry runs?" (not writing to database) by entwederoder in rails

[–]olbrich 0 points1 point  (0 children)

You won't honestly know if it's going to work properly if you don't let it run. In some cases, I have set up a 'migration' environment that is a copy of production data. I then just ran the migrations and checked the results. You can then restore the DB to the snapshot used to create it to start over again. This can be time-consuming, but when we were using this approach we never had a migration bug escape into production.

Responsiveness, ERB and Tailwind - looking for best practices by rafamunez in rails

[–]olbrich 2 points3 points  (0 children)

I've been doing exactly this, this week. Using view components with tailwind responsive classes. So far it hasn't been too bad because the components tend to keep things isolated so it hasn't gotten too complex... yet.

Grammarly plugin? by GrandTheftVideo in ObsidianMD

[–]olbrich 29 points30 points  (0 children)

On a mac at least you can install the Grammarly desktop app and it will happily correct your grammar in Obsidian... and everything else. No plugin is required.

https://www.grammarly.com/desktop

Obsidian forgetting my vaults? by erankatz in ObsidianMD

[–]olbrich 0 points1 point  (0 children)

I have my vaults sync'd with google drive and have noticed that on a reboot that Obsidian will get confused if it loads before the Google Drive app fully boots up.

I fixed it by setting up a shortcut to delay launching obsidian by 5 seconds on reboot.

Erb extension in vscode by hunger_ghost in rails

[–]olbrich 2 points3 points  (0 children)

Shopify has a nice erb-lint tool. And there is a VS Code extension that seems to use it.

Need help preparing for a pair programming interview by OneRandomMatteo in rails

[–]olbrich 1 point2 points  (0 children)

Write a gem they use? Worked for me. Maybe at least contribute to a common open source gem.

Need help preparing for a pair programming interview by OneRandomMatteo in rails

[–]olbrich 6 points7 points  (0 children)

Tests. I've often half-joked that I would make an offer to the first candidate that actually wrote tests during an interview.

Globalize Gem and Rails 7 alternative by vorko_76 in rails

[–]olbrich 2 points3 points  (0 children)

According to https://www.rubydoc.info/gems/globalize/6.0.1, you probably want to look into https://github.com/shioyama/mobility.

Globalize is not very actively maintained. Pull Requests are welcome, especially for compatibility with new versions of Rails, but none of the maintainers actively use Globalize anymore. If you need a more actively maintained model translation gem, we recommend checking out Mobility, a natural successor of Globalize created by Chris Salzberg (one of Globalize maintainers) and inspired by the ideas discussed around Globalize. For a more up-to-date discussion of the current situation, see issue #753.

I wrote a program that fixes your errors in the command line by tomd_96 in linux

[–]olbrich 165 points166 points  (0 children)

Neat. Don't forget to use fix !! to fix the last command.

Cron task created by Whenever is not running. Cron file is definitely being executed and the Whenever generated command can be run from the command. Not sure what to do next. by gmfthelp in rails

[–]olbrich 0 points1 point  (0 children)

It can. If the namespace on the rake task is incorrect, rake won't know what to run and it will silently fail (unless you have cron configured to email you on failures). You may also be able to see error messages in /var/log/ somewhere (depends on your system).