It actually took up to 2 minutes to start, in WSL2, so just wait
Thursday, March 10, 2022
Sunday, March 6, 2022
Convert existing unbuntu distro to WSL 2
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> wsl -l -v
NAME STATE VERSION
* Ubuntu Stopped 1
PS C:\Windows\system32> wsl --set-version Ubuntu 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion complete.
PS C:\Windows\system32> wsl -l -v
NAME STATE VERSION
* Ubuntu Stopped 2
Friday, February 11, 2022
Rails.application.config.action_controller.allow_forgery_protection error
This got it to work for me. You'll have to change
class ApplicationController < ActionController::Base
to
class ApplicationController < ActionController::API
Thursday, February 10, 2022
Hibernate option is missing
- Search for cmd in the Start Menu.
- Click on Run as administrator
- Enter this command: powercfg /hibernate on
- Set the Hiberfile type as Full using this command: powercfg /h /type full
- Restart your computer.
Sunday, February 6, 2022
How to set a default Folder View for all folders in Windows
You can apply single folder view to all the folders by opening folder you want and click View tab from there click Options --> View --> Apply to Folders button.
Sunday, January 30, 2022
Monday, January 24, 2022
superclass mismatch for class migration in rails
In my case I was executing a migration with a class name previously defined in a model.
https://stackoverflow.com/questions/25326969/heroku-run-rake-dbmigrate-rake-aborted-typeerror-superclass-mismatch-for-c