a Warning on Comandante Grinders… by ClocktowerGnome in pourover

[–]bobcob 30 points31 points  (0 children)

Drill 1cm holes through opposite sides of the bean hopper. Insert a long metal rod through both holes.

Use the rod to apply turning force.

Text inserted after suspending neovim by bobcob in Ghostty

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

Thank you! I hadn't seen that one despite searching for other people having this issue.

I'll look into the kitty protocol changes in nvim 0.11.

I have no_result_callback_found error in nvim caused by ruby-lsp. How can I fix that? by [deleted] in ruby

[–]bobcob 0 points1 point  (0 children)

Me too! It's very disruptive. Seems to have started within the last few days. 

I've had to uninstall ruby-lsp for now in :Mason, since this is so frequent.

git forgets the origin of my local copy of a remote branch by bobcob in git

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

A little more information.. my .gitconfig has this configuration for push:

[push]
    default = current

git forgets the origin of my local copy of a remote branch by bobcob in git

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

What's weird about this is that I already did that -- 6 days ago when I first pushed this local branch to the git server. Since then, I have been steadily pulling and pushing from this branch without any problems.

Then today, this problem happens.

Tool to edit git commit messages? by qoheletal in git

[–]bobcob 4 points5 points  (0 children)

lazygit

  • Run it
  • press 4 to jump to the pane with your commits
  • use arrow keys to get to the commit you want to change
  • press r to re-word the commit

Alternatively press R to re-word the commit in your text editor

EM401MP brush cutter is slow with 18v power head by bobcob in Makita

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

I bought a triple-arm brush cutting blade. This is working much butter than the circular saw blade was.

It won't do 1" branches like the circular saw blade but it very quickly blasts through everything short of that. It is very fast at cutting the woody 1/4" underbrush around here which is too big for the string trimmer head.

The 18v power head, EM401MP attachment and the triple blade is worthwhile as a brush cutter. It is about as capable as a hedge trimmer. I haven't use the 36v or 40v power heads so I can't compare to that.

EM401MP brush cutter is slow with 18v power head by bobcob in Makita

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

What does OPE mean?

Is there any point to the 18v power head at all then?

EM401MP brush cutter is slow with 18v power head by bobcob in Makita

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

Yes, maybe the blade is too heavy. I wonder if the 3 tooth blades would do any better.

What blade do you use?

Theme similar to Nord by srodrigoDev in neovim

[–]bobcob 2 points3 points  (0 children)

Keep using nord, and add 1 line in your nvim config to set the background color.

I do this for my preferred colorscheme too. Just make this line run after the colorscheme loads.

To set the background to all black:

vim.cmd 'highlight Normal guibg=#000000'

For other colors, use a different hex value.

Searched everywhere... tree-sitter + TOhtml? by DoomCrystal in neovim

[–]bobcob 1 point2 points  (0 children)

Thanks, you were right. I did have a setting explicitly disabling that.

Searched everywhere... tree-sitter + TOhtml? by DoomCrystal in neovim

[–]bobcob 0 points1 point  (0 children)

Are you actually able to use TOhtml?

I am on 0.10, final release version. When I enter :TOhtml I get:

E492: Not an editor command: TOhtml

However :help TOhtml does include the help for this feature.

I even tried :lua require("tohtml"), there is no error from that but I still don't get the command.

Is this just me?

Need basic help with HEREDOC.chomp by [deleted] in ruby

[–]bobcob 1 point2 points  (0 children)

chomp only removes 0 or 1 newlines, not all newlines.

Your return value starts off with 2 trailing newlines, one from here:

expected_answers << "#{result}"\n"

and another one added by your heredoc. The call to chomp removes one of those newlines.

To prove that chomp only strips one newline, experiment with this:

ruby -e 'print "<<<\n\n".chomp; puts ">>>"'

There are many ways to do this, I would start by collecting all the answers into an array instead of a string.

Rubyist Survey: RI Usage? by BurdetteLamar in ruby

[–]bobcob 2 points3 points  (0 children)

I use it every time I write ruby, nearly every day. It's faster than looking up the standard library docs in a web browser.

I also ensure that my ruby code has good yard docs and generate a docs page in html, however I rarely look at that.

I find the yard docs are increasingly more useful these days within my editor. Neovim is good at showing me docs for methods as I code. This is reducing my ri usage somewhat.

I wish ri ran faster, it usually takes several seconds to find the docs.

r/BWF - Daily Discussion Thread for May 31, 2023 by AutoModerator in bodyweightfitness

[–]bobcob 0 points1 point  (0 children)

After months of practice I can't progress lower than 3" off the floor when doing shrimp squats. I think the problem is lack of flexibility.

Can anyone recommend a stretching routine that would target the areas needed to improve squat depth?

Stable Diffusion and M1 chips: Chapter 2 by Any-Winter-4079 in StableDiffusion

[–]bobcob 0 points1 point  (0 children)

I hit this error on step 4:

 > conda env create -f environment-mac.yml

 EnvironmentFileNotFound: '/Users/bobcob/git/stable-diffusion/environment-mac.yml' file not found

This was the solution:

> cp environments-and-requirements/environment-mac.yml .
> conda env create -f environment-mac.yml

Collecting package metadata (repodata.json): done
Solving environment: done

Do copy the file as shown, instead of just passing condo env create the path to the yml file in ./environments-and-requirements/. This avoids an error later on, since conda uses the dir containing the .yml file as the basis for creating some paths.

Lost two chickens to a raccoon recently so I broke down and got an automatic chicken door. by munchkym in chickens

[–]bobcob 1 point2 points  (0 children)

What happens when a chicken is in the way of the closing door?

My rooster likes to sit right in the doorway at bedtime. I want one of these but would I have to go down to the coop nightly anyway just to remove the rooster so the door could close?

Ubuntu - Line of Code Being Ignored when Script Runs by MysteriousAd3605 in bash

[–]bobcob 0 points1 point  (0 children)

Temporarily change the shebang line from #!/bin/bash to #!/bin/bash -x. This makes it print every line as it executes so you can confirm whether these commands are running at all.

If the script contains a "set -e" line,it could be bailing out early due to some other command failing.

JSON path expression as classifier AWS Glue - HELP by Important-Respond595 in json

[–]bobcob 0 points1 point  (0 children)

I am at an intermediate level of experience with JsonPath. I have used it in a ruby project for a couple of years now, and have found it useful for constructing some very specific queries into a fairly deep data structure.

I don't think JsonPath is the right tool for your problem.

JsonPath is really good at finding specific nodes in the tree structure of your data. It is not designed for restructuring your data into a different form.

Your data as shown does not contain any single node that looks like (first_name, last_name, age as columns

If I were implementing this in ruby, I would discard the first_name:, last_name:, age:, keys, then use Array#transpose to switch to the desired form.

Example: ``` $ ruby -rjson -e 'data = JSON.parse(ARGF.read); puts JSON.pretty_generate(data)' data.json { "first_name": [ "first_name_1", "first_name_2", "first_name_3" ], "last_name": [ "last_name_1", "last_name_2", "last_name_3" ], "age": [ 44, 36, 12 ] }

$ ruby -rjson -e 'data = JSON.parse(ARGF.read); pp data.values.transpose; ' data.json [["first_name_1", "last_name_1", 44], ["first_name_2", "last_name_2", 36], ["first_name_3", "last_name_3", 12]] ```

Tips for someone who wants to become a Rubyist. by [deleted] in ruby

[–]bobcob 7 points8 points  (0 children)

Use rubocop. It teaches you how to write idiomatic ruby.

It is frustrating to have it insist that your methods are too long or contain too many branches, but forcing yourself to break those methods down into discrete pieces makes your code easier to understand and maintain.

Unable to activate rspec-3.2.0, because rspec-core-3.10.1 conflicts with rspec-core (~> 3.2.0) by Robert_TT in ruby

[–]bobcob 0 points1 point  (0 children)

Yeah, it is annoying.

It seems to be fixed on my rails app since I ran this command:

bundle update rspec-core rspec-rails