manipulate – Disabling an individual button in a SetterBar

Replace your second SetterBar with a row of individual setters and link Enabled option value for the third setter to the value of Clo:

DynamicModule({Clo = 1, Cp = 0, Cprj = 0}, 
 Column({Column({Style("Location of C", FontSize -> 14), 
     SetterBar(Dynamic(Clo), {0 -> "Origin", 1 -> "Tip of B"})}, 
      Alignment -> Center, Background -> None), 
   Column({Style("Location of (A.C)" <> ToString(OverHat(A), StandardForm), 
       FontSize -> 14), 
     Row(MapThread(Setter(Dynamic({Cp, Cprj}), {#}, #2, Enabled -> #3) &, 
         {{{0, 0}, {1, 0}, {0, 1}}, 
          {Style("Origin of C", FontSize -> 12), Style("Tip of C", FontSize -> 12), 
           Style("End of (A.B)" <> ToString(OverHat(A), StandardForm), FontSize -> 12, 
            FontColor -> GrayLevel(Dynamic(-.7 Clo) + 0.7))},
         {True, True, Dynamic(Clo == 1)}}))}, 
      Alignment -> Center, Background -> None), 
   Row({"Clo = ", Dynamic(Clo), "    Cp = ", Dynamic(Cp), 
     "    Cprj = ", Dynamic(Cprj)})}, 
 Center, 2))

enter image description here

Can’t change language (after disabling WPML translation plugin)

has anyone else ran into the issue of not being able to change the WordPress language after disabling a translation plug-in? I want to make the website language Dutch while it stays on English at the moment (which results in WooCommerce displaying in English).

WP-content writing permission is granted on the server, caching plug-in disabled, tried to change default language in the plug-in before disabling it.

Macbook Keeps disabling my Keyboard

I have a Das Keyboard X50Q and as of late it will randomly go dark and no longer seem to have power going to it. I swap ports and even to my older Das Keyboard, but neither will work. I can use a BT Apple Keyboard and that works. If I restart my computer it does work for awhile.

I’m hoping there is a way I can identify why it is disabling it. Is there a particular log that can show the reason? Is there anyway to enable it without restarting?

Hardware: Macbook Pro 16inch 2019

problem disabling plugin only for mobile

I am trying to enable a plugin only for mobile and I have consulted this thread:
Deactivate plugins only for mobile devices

I have made some changes to the last function as I want to enable only for mobile, while the thread suggest how to disable to mobile.

I don’t know how specify the plugin that I want to specify, so I include 2 files. This is in a folder in my wp-content/ plugins/name-of-plugin, where there are an index.php file and a name-of-plugin.php file.

This is my code, saved in a my-code.php file, places on mu-plugins of wordpress. Unfrotunately, it doesn’t work. Any help how to fix this?

 <?php

/**
 * Plugin Name: My mobile enabler
 */

function my_non_mobile_plugins() {
  return array(

    // i am not sure how specifiy the plugin I want to disable. I have added these two lines

    '/name-of-folder-plugin/plugin-name.php',
    '/name-of-folder-plugin/index.php'
  );
}

function my_is_mobile() { 
  $is_mobile = false;
  if ( strpos($_SERVER('HTTP_USER_AGENT'), 'Mobile') !== false
    || strpos($_SERVER('HTTP_USER_AGENT'), 'Android') !== false
    || strpos($_SERVER('HTTP_USER_AGENT'), 'Silk/') !== false
    || strpos($_SERVER('HTTP_USER_AGENT'), 'Kindle') !== false
    || strpos($_SERVER('HTTP_USER_AGENT'), 'BlackBerry') !== false
    || strpos($_SERVER('HTTP_USER_AGENT'), 'Opera Mini') !== false
    || strpos($_SERVER('HTTP_USER_AGENT'), 'Opera Mobi') !== false
  ) {
    $is_mobile = true;
  }
  return $is_mobile;
}


add_filter( 'option_active_plugins', 'my_disable_plugins_for_mobiles' );

function my_disable_plugins_for_mobiles( $plugins ) {

  if ( ! my_is_mobile() ) {
  $not_allowed = my_non_mobile_plugins(); // get non allowed plugins

  return array_values( array_diff( $plugins, $not_allowed ) );
    
  }

return $plugins; // for mobile device do nothing

}

battery life – Problems with disabling apps through adb

Background: I have a realme device (running Android 10) which came preinstalled with a lot of bloatwares. Few days ago I used adb to uninstall a lot of apps, like the default browser, file manager, facebook bloatwares, gallery etc. But now I am facing a noticeable battery drain. So now, I am thinking of factory resetting the device to get back those system apps. But this time after resetting, I am thinking of disabling those apps instead of uninstalling.

Problem: Will disabling them also affect the device the same way as uninstalling them do? I mean will I again face battery drain if I instead disable them? And also, will disabling them free up the storage as uninstalling them do?

battery life – Problems of disabling apps through adb

Background: I have a realme device (running Android 10) which came preinstalled with a lot of bloatwares. Few days ago I used adb to uninstall a lot of apps, like the default browser, file manager, facebook bloatwares, gallery etc. But now I am facing a noticeable battery drain. So now, I am thinking of factory resetting the device to get back those system apps. But this time after resetting, I am thinking of disabling those apps instead of uninstalling.

Problem: Will disabling them also affect the device the same way as uninstalling them do? I mean will I again face battery drain if I instead disable them? And also, will disabling them free up the storage as uninstalling them do?

Disabling the ability to add, upload or drag and drop folders into a document library – Sharepoint Online

My company is implementing a sharepoint structure of a single hub site consisting of many sites, no subsites. We don’t want the presence of folders being in our sharepoint online document libraries. We only want to use document sets and documents. I have already removed the folder option in the “New” menu, and sharepoint designer has prevented users to upload folders into specific libraries through the “upload” menu, however users can still drag and drop folders into document libraries.

When I try to remove the folder content type(0x0120) from the site altogether in sharepoint designer, it states that it could not save changes. I found a way to disable the drag and drop feature, but I still want users to be able to drag and drop documents.

It there any way to remove the folder content type completely from the site?

magento2 – Get error after disabling a module

I have upgraded Magento from 2.2.4 to 2.4.0, i have custom modules that are not compatible with the new Magento version.
So i disabled the module but when i run

 php bin/magento setup:di:compile

I got this error

In ClassReader.php line 43:
                                                                  
Class MagentoFrameworkSearchAdapterMysqlMapper does not exist  
                                                                  

In ClassReader.php line 36:
                                                                  
Class MagentoFrameworkSearchAdapterMysqlMapper does not exist