Is it safe to delete the default Document content type that is created by default with a document library in SharePoint Online

I have a document library in a SharePoint Site where I have created my own custom content type that inherits from Document called “My Special Document”. (It has a few optional columns associated with it).

Is it ok if I delete the default “Document” content type and leave “My Special Document” as the only content type in this library?

Will this cause random issues in the future as new features roll out with Teams, OneDrive and SharePoint Online? (from what I can tell it should be fine, but want to double check).

Appreciate if I anyone with Microsoft contacts could further validate this.

Client Created Dispute For Renewal Payment


Hi everyone,

I don’t know if you had faced this kind of issue or not, but I required everyone’s suggestions.

A client had purchased web hosting from us around 1 year ago and paid with PayPal also subscribed for auto-renewal.

A few days ago, his service got auto-renewal and after 2 days he started asking for refund and when we told that renewals are not refundable as per our terms, then he created a PayPal dispute.

Does anyone faced the same of issue? Feel free to let me know what you have done then?

Also, if we want to win the dispute, then which kind of proofs we need to share with PayPal?

Thank You.

natan

My best friend and I created a free website to help teachers with quizzes

Hi everyone,

My friend and I would like to share a project my friend and I released recently with the intention to help teachers create quizzes and collect/analyze the data.
SEMrush

Formcoast.com. Every member is capable of creating an unlimited amount of quizzes, questions or answers, for free.

We would love for any feedback you can provide us so we may nurture this service. Thanks for taking the time to read this and I am more than happy to answer any questions you may have :]

 

unity – Setting the colour of a dynamically created tile does not work

I have a function that takes in the position of a tile on a Tilemap and sets the colour. If I do not replace the tile with a dynamically created one, it works just fine.

However, if I create a tile at runtime, set it’s colour and add it to the tilemap, the tile does not change. In the preview window it appears black.

The function can be found below:

private void CreateTile(Vector3Int tilePosition)
{
    var tempTile = ScriptableObject.CreateInstance<Tile>();

    tempTile.flags = TileFlags.None;
    tempTile.color = Color.green;

    tilemap.SetTile(tilePosition, tempTile);
}

Any help would be appreciated, I have spent a few hours on this problem.

Thanks.

Feedback on website created using HTML and CSS

I made my first website from scratch using HTML and CSS. I would appreciate anyone’s feedback on this. I am not completely satisfied with the overall responsiveness of the site, I think it needs extra work. Any tips on how to further improve design, layout and anything else are welcome.
Here is the link to my website: https://priscillacodes.github.io/

I’m adding a snippet of code below since I can’t submit this question without it being included.

<nav id="mainNav" class="navbar navbar-expand-md navbar-dark fixed-top">
  <div class="container">
    <a class="navbar-brand" href="#"><i class="fas fa-compact-disc"></i> MASTER DOUGHNUT SHOP</a>
    <button class="navbar-toggler justify-content-end align-items-end" type="button" data-toggle="collapse" data-target="#topNav" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
    <div class="collapse navbar-collapse justify-content-end align-items-end" id="topNav">
      <div class="navbar-nav">
        <a class="nav-item nav-link" href="donutShop.html">HOME <span class="sr-only">(current)</span></a>
        <a class="nav-item nav-link" href="menu.html" target="_blank">MENU </a>
        <a class="nav-item nav-link" href="contact.html" target="_blank">CONTACT US</a>
      </div>
    </div>
  </div>
</nav>

blocks – Placing a programatically created menu

I’m creating a menu programatically using this code

$this->menu = $this->entityTypeManager->getStorage('menu')->create(
    (
      'id' => $properties('id'),
      'label' => $properties('label'),
      'langcode' => $properties('language'),
      'status' => TRUE,
    )
  );
  // Save the menu.
  $this->menu->save();

When visiting the block ui I see the block is already created. It appears that I do not have responsibility for creating this block, although I don’t seem to be able to load the block straight after creation of the menu. I need to place this block in a specific region programatically. What would be the preferred method of doing this be?

Do browsers correctly interpret rel tags in links created by PHP’s htmlspecialchars()?

The logic of PHP’s htmlspecialchars() is such that, according to its manual, “Certain characters have special significance in HTML, and should be represented by HTML entities if they are to preserve their meanings.”

And so, something like this

<?php
$str = "This is some <b>bold</b> text.";
echo htmlspecialchars($str);
?>

shows on the browser as

This is some <b>bold</b> text.

but in the View Source output as

<!DOCTYPE html>
<html>
<body>
This is some &lt;b&gt;bold&lt;/b&gt; text.
</body>
</html>

My question is:

Do browsers understand link rel tags (e.g. rel="noopener") when created this way? In the View Source, I see something like

&lt;a href=&quot;https://www.example.com&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Page&lt;/a&gt;:&lt;br&gt;&lt;br&gt;

whereas on the browser the link appears normally and the url opens in a new tab, as expected. If the browser can correctly interpret &quot; target=&quot;_blank&quot; as target="_blank", is it a fair assumption that it also understands rel=&quot;noopener&quot; as rel="noopener"?

Because this has obvious security implications.

8 – Unable to set author and created time when translating node programmatically

I am adding translation to a node programmatically using a script which I run with drush scr.

Everything works as far as adding translation and copying all the fields over. However, I am not able to set the Created time and the Author of the translation. No error is thrown and the result is just the author and created time of the original content. My code is below:

$node = node_load($nid);
$source_translation = $node->getTranslation($sourceLanguageKey);
$target_translation = $node->addTranslation($translationLanguageKey, $source_translation->toArray());

// Make sure we do not inherit the affected status from the source values.
if ($node->getEntityType()->isRevisionable()) {
    $target_translation->setRevisionTranslationAffected(NULL);
}

$entityManager = Drupal::getContainer()->get('entity.manager');
$user = $entityManager->getStorage('user')->load(45986);

$translationManager = Drupal::getContainer()->get('content_translation.manager');
$metadata = $translationManager->getTranslationMetadata($target_translation);
$metadata->setAuthor($user); // this does not work
$metadata->setCreatedTime(REQUEST_TIME); // this does not work
$metadata->setSource($sourceLanguageKey);
$node->save();

I am using the metadata object to set author, created time and source. Both author and create time failed to set but the source was set properly. Any idea why it is not working? Thanks

coding theory – I Created setup file in Visual Studio 2015 but not run software after installation

I create a phone book project. It work fine on visual studio 2015. It has a sqlite database (phonebookDB.sqlite3). I created setup installer for my desktop and it install on PC. It had been install and created shortcut icon when i click shortcut icon, it not run and it is not showing any error. I tryed to run to open as administrator but it not run. i have used visual studio installer to make setup file.

Solution

Visual studio run project

Creating instlation

Run on windows without sqlite code

    <add name="connect" connectionString="Data Source=.phoonbookDB.sqlite3; Version=3; New=False; Compress=True;"/>

 string s = ConfigurationManager.ConnectionStrings("connect").ConnectionString;

My code…

try
            {
                string query = "Select * From phoonbooklist order by Id DESC";
                using(cmd = new SQLiteCommand(query, con))
                {
                    con.Open();
                    using (SQLiteDataReader result = cmd.ExecuteReader())
                    {
                        if (result.HasRows)
                        {
                            dataGridView.Rows.Clear();
                            while (result.Read())
                            {
                                int n = dataGridView.Rows.Add();
                                dataGridView.Rows(n).Cells(0).Value = result(0).ToString();
                                dataGridView.Rows(n).Cells(1).Value = result(1).ToString();
                                dataGridView.Rows(n).Cells(2).Value = result(2).ToString();
                                dataGridView.Rows(n).Cells(3).Value = result(3).ToString();
                                dataGridView.Rows(n).Cells(4).Value = result(4).ToString();
                                dataGridView.Rows(n).Cells(5).Value = result(5).ToString();
                            }
                        }
                        con.Close();
                    }
                }
            }
            catch
            {

            }

entities – Define fields created through the UI as non-revisionable on a revisionable entity

Let’s say, I have a revisionable entity. Whether base fields should be revisionable or not can be set in the code. So far, so good.

But how about those fields that get added through the user interface? Is there a way to set all the fields as either revisionable or non-revisionable? Or is there a way to set this for each field individually in the UI?