How do I prevent permission 777

im talking about cpanel + php-fpm as php handler
im thinking about how prevent users from changing perm of folders from what it is t… | Read the rest of

javascript – How to prevent a modal window from showing every time the page is refreshed

$(document).ready(function () {
<link rel="stylesheet" href="" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

<script src="" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                <div class="modal-body">
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary">Save changes</button>

networking – How do you prevent a Windows Server 2019 network connection profile with no default gateway from reverting to “Public”

I am bringing up a new site and installing dual homed Windows 2019 RAS/Web servers. The interfaces on the DMZ must have a default gateway defined or they simply don’t work. The “internal” interfaces do not have a default gateway defined and this is fine once systems are attached to a domain controller

But while these systems are stand-alone, rebooting reverts the internal NICs profile to “public”. I, of course, change it back with Set-NetConnectionProfile. But next reboot and we are back where we started.

It is pretty darn annoying since I can no longer RDP to them! I am wondering if anyone has found a simple solution to this behavior.

Not interested in anything convoluted; no registry hacks or the like. As I say, once my domain controllers are up, this will take care of itself. But I deal with this incredibly moronic behavior (hope you are listening, Microsoft) every time I bring up a Windows site.

Best way to prevent YAML file from parsing (preferably with invalid syntax) without pre-processing?

I have some kubernetes definitions in .yaml files, but those files contain some vars (e.g. ${CLUSTER_NAME}), that need to be pre-processed with a script doing envsubst. The problem is, those files still are valid yaml files, even without the preprocessing.

I would like to a line to the files that breaks them, and has to be removed in pre-processing, so that the files cannot be applied raw.

I discovered that yaml syntax is very forgiving, and it’s hard to add a line that breaks it without doing something that looks less like a warning, but more like a plain mistake.

Things like
! NO PLAIN KUBECTL: reason are valid yaml, they do break, but on kubectl not recognizing the “NO PLAIN KUBECTL” field. Any symbol with no defined meaning is just incorporated into the key by yaml parser.

I would like a way to:

  • break yaml parsing with invalid syntax in a single line
  • that is easy to recreate from memory, and is hard to accidentally not break syntax
  • does not look like someone typing had a stroke (missing braces fall into this category)
  • Do not break syntax highlighting for entire file in most editors, if possible.

Options I tried:

something: else

This creates invalid syntax, but breaks in two scenarios:

something: else

All kind of prefixes are just valid yaml syntax:

something: else
something: else

This one just makes a tag, that can be silently ignored (or can be valid in some strange situations):

something: else

Square brackets do break things

something: else

Unless they are on their own (same for curly braces)

something: else

sharepoint online – How we can prevent a List which has its Create,Edit,Display forms customized using PowerApp from been rendered using classic UI forms

I have the following:-

  1. custom list inside a classic team sub site
  2. the custom list has its create,edit & display form customized using power app.
  3. the custom list has the following setting to also render it using New Experience:-
    enter image description here

so i thought that the list will always render using power app forms, but what is actually happening is that the users will get the option to render the list using classic UI, as follow:-
enter image description here

So now all the business rules which i have applied inside the power apps forms will have to be applied to the classic UI as well which is not logical..
so my question is how i can prevent a List which has its Create,Edit,Display forms customized using PowerApp from rendering using classic UI forms?

second question. i have a modern communication site and i have the same list and settings, and the users will not have the option to render the list using classic UI,, so is my problem because i am using classic Team Sub-site?

Can anyone advice/help with my above 2 questions please?

keyboard – How to prevent text replacement from being triggered by alphanumeric characters?

When I’m using Messenger on Chrome, this triggers text replacement and becomes “2 like-you arei”. This doesn’t happen on StackExchange, but it does happen on Messenger.

Text Replacements work on apps that utilize the Cocoa interface. This means any Apple application and any third party app like Chrome, will have text Replacements compatability.

To better control the replacement triggering as well as gain functionality whether or not you’re using a Cocoa based app, you need an an app like Text Expander ($3.33/mo) or aText ($5). Both can be configured to use a short cut, a hot hey, or delimiter (like Tab) to trigger it. So in your example, you’d have to type “ur” followed by Tab for it to trigger.

An alternate method would be to put a special character in front of your replacement pattern like a tilde (~) or a an exclamation mark (!) as its highly unlikely you’ll ever type that sequence of characters as a “normal” sequence.

windows – How to prevent programs from creating firewall rules

I configured firewall for blocking all non-vpn traffic (VPN client only allowed), but some programs automatically create rules to allow all their connections. Can I configure group policy or something else to prevent this actions without creating restricted user account or running programs only with user permissions?

18.04 – How do I prevent the popup window telling me I have to update/upgrade software or to reboot?

I’m creating an embedded system and once in a while I get this popup telling me I have to upgrade or to reboot the computer.

Since the system is expected to run on its own, telling the user anything like that is not going to be useful at all, ever.

So I’ve been looking into making those popups not appear but so far no luck.

Anyone knows how to prevent these?

I’ve found a way to prevents simple notifications, and that works, but so far no luck about the restart/upgrade popups.

encryption – Is centralized key management better or decentralized key management better to prevent attacks on database level?

I was planning to start a project that’s sort of like a hybrid mix of banking system and commercial system.

In such case, considering that I need to encrypt the data at database level with a prevention of both insider’s and outsider’s attack on database as it happens to me data leakage happens quite often..

What are the recommended type of key management to do so and the reason behind it?

cryptography – How does Zero Knowledge Proof prevent lying?

I have seen and read several videos and articles that try to explain how Zero Knowledge Proof systems work. In these examples, there is a verifier of information, and a prover of information. The verifier asks the prover to prove that they know some information. Metaphors I have seen usually are:

The prover wants to prove they are not colorblind and gives the verifier two colored items. The verifier is color
blind and switches the items around (or not). The prover can tell if
the items were switched. Repeat this a hundred times successfully and
the prover has proven to the verifier that they really are not colorblind.

I’ve seen variations with Pepsi/Coke taste tests, colored pens or balls, etc. However, this kind of proof requires that the verifier has some sort of information at their disposal already (whether they switched the balls around or not).

I’ve also heard examples such as:

  • A liquor store asks a customer if they are at least of drinking age. The customer can prove they are without having to show their ID.

  • A bank asks a customer to prove they have a minimum balance so that they can get a loan, without having access to the customer’s bank account.

These are examples where the verifier (the liquor store and the bank) doesn’t have the same information at their disposal (such as the example of switching the items around).

If a liquor store asks a customer if they’re of drinking age, what’s preventing the customer from just lying as many times as needed to buy their alcohol?