How to make a playlist from any YouTube channel

During development I listen to music from Youtube in the background. But I do it not on Youtube itself, but through the service https://www.ravbug.com/yt-audio/. In the Load Playlist field you need to insert a link to the playlist from youtube and press enter. But there are channels that just post videos and do not create playlists from them. If we try to add a link to the service just to the channel, we get an error....

OhMyZsh theme with Ruby and Gemset version

Found an OhMyZsh theme that shows the current version of Ruby, and which Gemset is selected. To enable this theme, you need to configure it in ~/.zshrc file ZSH_THEME="suvash" And reload the config source ~/.zshrc

How to automatically switch Ruby and Gemset versions

When opening rails project in terminal, you have to manually switch rvm gemset all the time with the command: rvm gemset use mygemset Found the command rvm --ruby-version use 3.3.0@mygemset It creates two files in the project .ruby-version с версией ruby ruby-3.3.0 .ruby-gemset с названием gemset mygemset After that, when opening a project, the right ruby version with the right gemset will be automatically selected Your browser does not support the video tag....

How to convert all images in a folder to webp format

Suppose there are some pictures in png format in a folder. They all need to be converted to webp format. To do this, you need to enter the command in the terminal: for file in *.png; do cwebp $file -o "${file%.*}.webp" done After that, the webp images will appear in the same folder. If a folder contains images in different formats, for example png and jpg, then to convert them all to webp the command will be like this:...

How to convert a webp image to png or jpg and back again

The standard dwebp and cwebp utilities in macOS are used to convert png or jpg formats to webp format jpg ➡️ webp cwebp image.jpg -o image.webp png ➡️ webp cwebp image.png -o image.webp webp ➡️ png dwebp image.webp -o image.png webp ➡️ jpg dwebp image.webp -o image.jpg

How to set scrolling on trackpad and mouse separately in macOS

In macOS there is a problem with scrolling settings on the trackpad and mouse. If the Natural scrolling setting is enabled, the trackpad scrolls as it should: when I use two fingers from bottom to top, it scrolls down, when I use two fingers from top to bottom, it scrolls up. But if you scroll on the mouse with this setting, then when you scroll the wheel down, it scrolls up, and when you scroll the wheel up, it scrolls down....

How to export images from Pages app document in macos

There is a Pages document. I need to export a image from it. Simply dragging the image to the desktop does not work. Right-clicking in the menu doesn’t export either. You have to go to File > Add-ons > Change file type > Package to get the images. Save the document. Click on the document and select Show package contents. All images from the document will be in the Data folder....

Rubymine tests can no longer be run individually using the gutter run icons

In Rubymine there used to be icons for running tests next to line numbers. After running the project on a new laptop, they are gone. Tried to add config for tests and saw that the rspec-rails gem is not installed. Went into Rubymine settings and saw that default gemset is used. And I have a separate gemset for my project. Switched to the project gemset. And icons for running tests appeared next to the line number....

Rails pg BUG Segmentation fault at

When running rails server it crashes an error when connecting to postgres: gems/pg-1.5.6/lib/pg/connection.rb:695: [BUG] Segmentation fault at 0x000000011e280ac2 ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23] -- Crash Report log information -------------------------------------------- See Crash Report log file in one of the following locations: * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports for more details. Don't forget to include the above Crash Report log file in bug reports. -- Control frame information ----------------------------------------------- You need to add the line below in ....

Solving the problem of displaying images in multi-language Hugo articles

When creating multi-language content on Hugo, I have a problem - in the main language the images in the article are displayed normally, but when I switch the language to an additional language, the images are no longer displayed. All pictures are stored in the same folder where the markdown file with the article. Hugo exports articles in this structure. You can see that all pictures are stored in the main language folder (hugo-obsidian folder), and there are no pictures in the en language folder, which is correct because they don’t need to be duplicated....