hiking – What are options for sleeping when doing the Via Alpina in Switzerland?

Disclaimer: Bear in mind this a trip planned for the summer of 2021, where hopefully Covid restrictions will be reduced.

A friend of mine will be hiking the whole Via Alpina and I am looking to accompany him when he crosses through Switzerland. Our plan was originally to camp all the way through but apparently wild camping is not allowed in Switzerland.

I would then like to ask if there are spots for camping across the Via Alpina or if the Huts/Refuges are our only option. If so, how cheap are they? We are looking to minimise the prices, but also having the opportunity to camp in a very nice place would be amazing.

We are not members of any alpine club if that matters.

What is the best course of action?

macbook pro – Cannot enable FileVault (options greyed out) on macOS Catalina Clean install

I just did a clean install off off my MacBook Pro by dd’ing the hard drive, and then installing macOS Catalina from a bootable USB. I formatted the internal ssd using apple filesystem and installed successfully. Now, when trying to enable FileVault via System Preferences>Security & Privacy>FileVault>Turn on FileVault, I get a pop up with both the “Set up my iCloud account to reset my password” and “Create a recovery key and do not use my iCloud account” options greyed out. The “Back” and “Continue” buttons are also greyed out. The only button that is not greyed out is the “Cancel” button. So essentially, I can not enable FileVault via the system preferences pane. See screenshot below.

What in the world is happening, and how do I fix this so that I can enable fileVault via the system preferences pane again?

Cannot Enable FileVault from System Preferences macOS Catalina

system.xml – How to create a dropdown option as a configuration section to update the options from backend and show it from product details page?

I want to add a select box to the product details page.
Which has several options but this is not a product attribute. It should configure as a global variable.
Admin should able to add new options too from the backend.

I tried the system.xml way and I couldn’t update the new option value for the select box I created.

Can someone help me to do this, please?

disable – What order should the list of options be after 1 more option gets disabled?

Designing an app feature that lets a group of users register for multiple accounts in certain situations. The 1st screen shows that 4 users, who are in the system, and 1 user is already registered from a previous session. After user 1 has been registered user will return to the 2nd screen where user 1 is no longer able to be selected.

My question is does the order of these options make sense. should unavailable options stay in their current position or should they be pushed below?

enter image description here

samsung – Disabling “Notification Bubbles” in Dev Options is Irreversible

I have a Samsung Galaxy S20FE, running Android 10 and One UI 2.5. After enabling “Notification Bubbles” in the developer settings I decided that it wasn’t to my taste and toggled it back off.

However, even though the switch says that the setting is off, apps are still displaying notification bubbles – it seems as though the change was permanent. I have tried a restart, clearing the cache, and deleting the setting as per this article. It appears that no matter what I do, the notification bubbles remain.

I am comfortable with using ADB, and would be exceptionally grateful for any help here.

configuration – MariaDB doesn’t read all options from /etc/mysql/conf.d/ after upgrade

I am using Ubuntu 20.04LTS. I upgraded Mariadb 10.5.5 to 10.5.8 using mariadb’s own repositories. After upgrade I noticed API server was unable to connect to DB server through private network. After some tinkering, I realized mariadb is no longer reading bind-address from /etc/mysql/conf.d/customizations.cnf and was listening to 127.0.0.1 instead of 0.0.0.0. Then I proceeded to adding bind-address to /etc/mysql/my.cnf and then it worked again.

/etc/mysql/mariadb.cnf is the config used. It is symlinked to /etc/mysql/my.cnf. Which contains line !includedir /etc/mysql/conf.d/
All the other configurations such as innodb_buffer_pool_size are still read from file: /etc/mysql/conf.d/customizations.cnf, but bind-address is not. Why is that? And yes its under [mysqld].

My /etc/mysql/conf.d/customizations.cnf:

[mysqld]
bind-address = 0.0.0.0
skip_name_resolve=1
innodb_buffer_pool_size=20G
max_connections=550

[mariadb]
log_error=/var/log/mysql/mariadb-errors.log

javascript – How to add text to URL so pages reflect only in stock options when in Magento2

Currently, on my site when I access product pages, the product counts reflect both in and out of stock options. I would like when those product pages are loaded, the url changes to add ‘?stock=1’ to the end of the url so that the counts reflect only in-stock options. The page is also being filtered using AJAX, so I need to keep the url addition throughout the filtering process by the user.

Error: Options page not found in the allowed options list. After submission an OOP plugin

I am trying to develop an OOP base wordpress plugin. I am calling setting api from another class to menu class. while after submission showing “Error: Options page rashed_option_group not found in the allowed options list.

Below i submit my code.

enter image description here


menu.php

class Menu 
{
    

public function setting_menu() {

  add_submenu_page( 'edit.php?post_type=responsiveslider', __( 'Settings', 'responsive-slider' ), __( 'Settings', 'responsive-slider' ), 'manage_options', 
    'slider_setting', ( $this, 'settings_page') );   
 }

 function settings_page() {
 
  $setting = new Rashed();
     

  $setting->rashed_page_init();
  $setting->rashed_create_admin_page();
  $setting->rashed_section_info();

 }
}

```php

Rashed.php

namespace themexporkslide;

class Rashed {
    private $rashed_options;

    public function __construct() {
        
        add_action( 'admin_init', array( $this, 'rashed_page_init' ) );
    }

    

    public function rashed_create_admin_page() {
        $this->rashed_options = get_option( 'rashed_option_name' ); ?>

        <div class="wrap">
            <h2>rashed</h2>
            <p></p>
            <?php settings_errors(); ?>

            <form method="post" action="options.php">
                <?php
                    settings_fields( 'rashed_option_group' );
                    do_settings_sections( 'rashed-admin' );
                    submit_button();
                ?>
            </form>
        </div>
    <?php }

    public function rashed_page_init() {
        register_setting(
            'rashed_option_group', // option_group
            'rashed_option_name', // option_name
            array( $this, 'rashed_sanitize' ) // sanitize_callback
        );

        add_settings_section(
            'rashed_setting_section', // id
            'Settings', // title
            array( $this, 'rashed_section_info' ), // callback
            'rashed-admin' // page
        );

        add_settings_field(
            'width_0', // id
            'width', // title
            array( $this, 'width_0_callback' ), // callback
            'rashed-admin', // page
            'rashed_setting_section' // section
        );

        add_settings_field(
            'enable_1', // id
            'enable', // title
            array( $this, 'enable_1_callback' ), // callback
            'rashed-admin', // page
            'rashed_setting_section' // section
        );
    }

    public function rashed_sanitize($input) {
        $sanitary_values = array();
        if ( isset( $input('width_0') ) ) {
            $sanitary_values('width_0') = sanitize_text_field( $input('width_0') );
        }

        if ( isset( $input('enable_1') ) ) {
            $sanitary_values('enable_1') = $input('enable_1');
        }

        return $sanitary_values;
    }

    public function rashed_section_info() {
        
    }

    public function width_0_callback() {
        printf(
            '<input class="regular-text" type="text" name="rashed_option_name(width_0)" id="width_0" value="%s">',
            isset( $this->rashed_options('width_0') ) ? esc_attr( $this->rashed_options('width_0')) : ''
        );
    }

    public function enable_1_callback() {
        printf(
            '<input type="checkbox" name="rashed_option_name(enable_1)" id="enable_1" value="enable_1" %s>',
            ( isset( $this->rashed_options('enable_1') ) && $this->rashed_options('enable_1') === 'enable_1' ) ? 'checked' : ''
        );
    }

}
if ( is_admin() )
    $rashed = new Rashed();