Disabling “Create Site” in SharePoint Online except admins

In SharePoint Online, there is a “+ Create Site” button that allows users to create sites, in our case configured to create them under /sites.

We don’t want end users being able to create sites at this time, only administrators.

In the SharePoint Admin Center, it has a setting “Subsite Creation” with options:

  • Hide the subsite menu command
  • Show the subsite menu command to users who have permission to create sites

1) If I hide this button, it is hidden for EVERYONE, including administrators. How do admins create sites under /sites when this is hidden?

2) When it says “users who have permission to create sites”, where or how is this permission given or taken away? Is this tied to O365 Group creation?

All topic

delete all sub-directories recursively except several ones [duplicate]

This question already has an answer here:

  • Excluding certain files and directories when deleting files

    2 answers

The main_directory includes 0001 0102 0203 … sub-directories.
The sub-directories include lots of directories. I need to delete all sub-directories except several ones whose names are “abc”, “bcd” and “123”, for example.

How can do this deleting processing using command?

All topic

delete all sub-directories recursively except several ones

The main_directory includes 0001 0102 0203 … sub-directories.
The sub-directories include lots of directories. I need to delete all sub-directories except several ones whose names are “abc”, “bcd” and “123”, for example.

How can do this deleting processing using command?

All topic

How can I make regex in Java “All characters except Alphabet”?

String line = "hello hello!helloZhello7hello";
String regex = "??"
String[] words = line.split(regex)

I would like to get [hello, hello, helloZhello, hello] for words

How can I make regex -> all characters except for just alphabet [a-zA-Z] ??

All topic

Nuclear missiles about to land but time stops except for a lone housewife. What show is it?

This one should be a lot easier to ID than my inquiry about a movie or show featuring robotic termite-like creatures with some similarity to Zanti Misfits (please see that post if it you have even the vaguest recollection of it).

For this inquiry, here is what I recall:

A typical housewife (in curlers and a bathrobe) inhabits an earth whereupon every living and non-living thing is suddenly frozen in time except for her. WWIII had begun before the time freeze and the first fusillade of nuclear missiles is suspended just above ground level. She wanders outside of her house in the evening and sees the missiles suspended in space and milliseconds from unleashing their destruction.

I believe this is the final scene of the show and the extreme dilemma with which the housewife is burdened. What led up to this scenario is now hazy for me, though I believe she has the ability to unfreeze time, but will have to devise a miraculous plan to stop the missiles less than a moment before she unfreezes the rest of the planet. I think that the intended irony of the story is that she, being a typical housewife of the time (1960s-early 70s), doesn’t have the slightest clue as to how to prevent the missiles from falling.

Two notes:

1) I recall she was arguing with someone (maybe her husband), dismissing him and his thoughts as trivial. This was likely to reinforce the irony of her dilemma.

2) I’m less certain about this detail, but she might have a limited period of time to devise a solution.

All topic

Produce all the digits in an integer for python except the last

I have this function which is to give me the last digit of the number passed. Is there a way to get all the digits except the last one?

def lastdigit(num):
    out = num%10
    return out

All topic

GSM library_ all examples ar working except GPRS?

i am using arduino uno and sim808. i connected the sim808 to pins 2,3 on arduino uno and used GSM library. i tested all examples: make and receive a call or messages. the part of GPRS initialization is not working after many tries in changing APN and pin number.
i want to use the arduino as a webserver exactly as the example includded in the library.
any one can help?
thanks,
https://www.arduino.cc/en/Reference/GSM

All topic

WordPress installation under subdirectory all pages except gives 404

I have a Magento installation in base directory and WordPress installation in my sub directory. When I open the home page of WordPress it opens normally but when I go to any sub-page/post of WordPress it gives 404 not found error from Magento. I’ve tried almost everything on the .htaccess file but didn’t find the solution. I also tried the solution from Magento under WordPress as subdirectory not working but that doesn’t work for me.

This is my .htaccess file:

DirectoryIndex index.php

    php_value memory_limit 256M
    php_value max_execution_time 18000
    php_flag magic_quotes_gpc off
    php_flag session.auto_start off
    php_flag suhosin.session.cryptua off
    php_flag zend.ze1_compatibility_mode Off


    SecFilterEngine Off
    SecFilterScanPOST Off


    SSLOptions StdEnvVars


    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^api/rest api.php?type=rest [QSA,L]
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
    RewriteRule .* - [L,R=405]
    RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule .* index.php [L]

AddDefaultCharset Off

    ExpiresDefault "access plus 1 year"

Order allow,deny
Allow from all

    order allow,deny
    deny from all


    Order allow,deny
    Deny from all

and .htaccess for WordPress:


    RewriteEngine On
    RewriteBase /blog/*
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

All topic

How to understand: “Except no deal is falling into place, …”

Except no deal is falling into place, creating what increasingly looks like an open-ended trade war destabilizing to both sides. Larry Kudlow, Trump’s top economic adviser, said on Sept. 17, “we are ready to negotiate and talk with China any time that they are ready for serious and substantive negotiations.” Chinese officials say basically the same thing. Yet talks have obviously gotten nowhere, and there’s no sign of a breakthrough any time soon.

The sentence in bold is ungrammatical to me.

  1. the usage of ‘Except’ is confusing. It should be the sense of ‘besides’ in my opinion.

  2. the main verb should seem to be ‘destabilize’, but it turns out to be ‘destabilizing’. How should we parse the sentence?

Any thought?

The full source.

All topic

Example of entire function which can take every value except …..

Example of entire function which can take every value except 1) Finite Number of Points 2) Countable Number Of points

I know about example of function which does not take only single value and entire fucntion
I could not able to find example of entire which is not take only finite number point in C and entire function which does not take countable number of values
IS such function exist ?

Any Help will be apprecited

All topic