script – How does HASHSIG work?

I read an article about how HASHSIG works, but I don't understand it:

Before the signature is calculated, several temporary changes are made to the transaction:
The signature script of the currently signed entry is replaced by the public one
Key script with the exception of all occurrences of OP CODESEPARATOR in the referenced script
Transaction output.

Could you explain that to me?

why does this code work neither on turbo-c ++ nor on dev c ++?

This c ++ Code doesn't work turbo-c ++ Yet dev c ++ ,

The compiler say that
on dev c ++

3:19: C: TURBOC3 BIN DDA.CPP (error) graphics: No such file or directory

The code is:

#include
#include
#include
#include
using namespace std;
int main()
{
int gd=DETECT,gm;
initgrap(&gd,&gm,"c:\TC\BGI");
int x1,y1,x2,y2,dx,dy,l;
float xnew,ynew;
cout<<"Enter first end point of line";
cin>>x1>>y1;
cout<<"Enter second end point of line";
cin>>x2>>y2;
//find out dx & dy
dx=abs(x2-x1);
dy=abs(y2-y1);
//find out lemgth
if(dx>dy)
    l=dx;
else
    l=dy;
//find out incremental factor
dx=dx/l;
dy=dy/l;
//Initialize the initial point on the line & plot
xnew=x1*0.5;
ynew=y1*0.5;
putpixel(xnew,ynew,WHITE);
//obtain the new pixel on the line & plot the same
int i=1;
while(i<=1)
{
    xnew=xnew+dx;
    ynew=ynew+dy;
    putpixel(xnew,ynew,WHITE);
    i++;
}
getch();
closegraph();
}

php – custom taxonomies don't work

I am trying to create a template for my custom taxonomies. I want to create a shortcode so I can decide how many taxonomies and some other settings I want to display. But the code doesn't work.

function cat_name_list($atts) { 

    extract( shortcode_atts( array(
        'custom_taxonomy' => 'entertainment_category',
        'posts' => 5 ,
        'orderby'=>'',
        'order'=>'ASC',
    ), $atts ) );

$terms = get_terms(
array( 
'taxonomy' => $custom_taxonomy,
'title_li' => '',
    'number' => $posts,
    'orderby' => $orderby,
    'order' => $order,
)

); 

if ( $terms && !is_wp_error( $terms ) ) :
?>
    
taxonomy.'_'.$term->term_id); ?>
name; ?>

What am I doing wrong?

Windows start menu does not work

I fixed the problem by restarting Windows Explorer.

I first opened Task Manager by pressing Ctrl + Shift + Esc.

Then I expanded it by clicking the button below. (The language of my operating system is Finnish. I apologize for this.)

task Manager

I found Windows Explorer in the "Processes" tab and ended it by clicking the "End Process" button at the bottom right.

Task Manager, expanded view

The screen background went black when Explorer was closed.

Next, I clicked the File menu in Task Manager to start a new process. I typed explorer.exe in the opening window.

The desktop wallpaper and the taskbar were displayed again. And tada, the start menu worked!

android studio – statusBarBackground in CircularRevealCoordinatorLayout conversion doesn't work

I'm trying to implement a floating action button transformation using the transformations that are included in Material Component:





    












Before you click the floating action button to transform it:

Enter image description here

When I click the floating action button, I get the following result:

Enter image description here

Everything works fine, except for the color of the status bar com.google.android.material.circularreveal.coordinatorlayout.CircularRevealCoordinatorLayout assign the attribute app:statusBarBackground="@color/tea300" However, the color of the status bar still doesn't change.

C ++ Tries Deletion function opertator == does not work

I am a bit new to C ++ and for this program I have to delete a word from the tree. The program searches the trie and receives the specified reference. My problem, however, is that using the overloader & # 39; operator == & # 39; does not work in the following if statement, although the reference is the same word as the delkey ​​variable.

Any help would be appreciated.

bool TrieType::DeleteTrie(Key delkey)
{
   int i;
   Trienode* current = root;
   bool found = false;

for (i = 0; i < MAXLENGTH && current; i++)
    if (delkey(i) == '')
        break;
    else
    {
        current = current->branch(delkey(i) - 'a');

        if (current->ref != NULL)
        {
            current->ref->PrintWord(); //Debug Seeing the path it takes

            **if (current->ref->operator==(delkey))
                cout << "The END of the route?" << endl;**
        }
        else if (current->ref == NULL)
            cout << "Empty NODE, No Word" << endl;
    }
if (!current)
    return NULL;
else
    if (!current->ref)
        return NULL;

return found;
}

PostgreSQL 10: The pg_ctl status does not work on Ubuntu 18.04

I want to be able to use pg_ctl to manage my crewdb database.
However, when I use the pg_ctl status, I get the following error:

chh1@chh1:~$ pg_ctl status
pg_ctl: could not open PID file "/var/lib/postgresql/10/main/postmaster.pid": Permission denied

I'm not sure why this is and how to fix it because if I do:

chh1@chh1:~$ which pg_ctl
/usr/lib/postgresql/10/bin/pg_ctl

chh1@chh1:~$ which initdb
/usr/lib/postgresql/10/bin/initdb

chh1@chh1:~$ whoami
chh1

crewdb=# du
                                   List of roles
 Role name |                         Attributes                         | Member of
-----------+------------------------------------------------------------+-----------
 chh1      | Superuser                                                  | {}
 postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS | {}


chh1@chh1:~$ cat .profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if ( -n "$BASH_VERSION" ); then
    # include .bashrc if it exists
    if ( -f "$HOME/.bashrc" ); then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if ( -d "$HOME/bin" ) ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if ( -d "$HOME/.local/bin" ) ; then
    PATH="$HOME/.local/bin:$PATH"
fi

PATH=$PATH:/usr/lib/postgresql/10/bin
PGDATA=/var/lib/postgresql/10/main
PGDATABASE=crewdb
PGUSER=postgres

export PATH PGDATA PGDATABASE PGUSER

I tried PGUSER = chh1 instead of PGUSER = postgres in .profile, but I still get the same error message when I issue the pg_ctl status command.
Can somebody help me with it? I have the following Postgresql cluster:

chh1@chh1:~$ ps -ef | grep postgres
postgres  2094     1  0 11:08 ?        00:00:01 /usr/lib/postgresql/10/bin/postgres -D /var/lib/postgresql/10/main -c config_file=/etc/postgresql/10/main/postgresql.conf
postgres  2114  2094  0 11:08 ?        00:00:00 postgres: 10/main: logger process
postgres  2123  2094  0 11:08 ?        00:00:00 postgres: 10/main: checkpointer process
postgres  2124  2094  0 11:08 ?        00:00:00 postgres: 10/main: writer process
postgres  2125  2094  0 11:08 ?        00:00:00 postgres: 10/main: wal writer process
postgres  2126  2094  0 11:08 ?        00:00:01 postgres: 10/main: autovacuum launcher process
postgres  2127  2094  0 11:08 ?        00:00:01 postgres: 10/main: stats collector process
postgres  2128  2094  0 11:08 ?        00:00:00 postgres: 10/main: bgworker: logical replication launcher
chh1      6401 17468  0 17:47 pts/1    00:00:00 grep --color=auto postgres

It also seems unusual that I have to be root to open the data directory, such as in:

chh1@chh1:~$ cd /var/lib/postgresql/10/main
bash: cd: /var/lib/postgresql/10/main: Permission denied

root@chh1:/var/lib/postgresql/10/main# ls -l
total 100
drwx------ 20 postgres postgres 4096 Jan 13 11:08 ./
drwxr-xr-x  3 postgres postgres 4096 Jul 24 19:12 ../
drwx------  6 postgres postgres 4096 Aug 10 23:04 base/
-rw-------  1 postgres postgres   44 Jan 13 11:08 current_logfiles
drwx------  2 postgres postgres 4096 Jan 13 11:08 global/
drwx------  2 postgres postgres 4096 Jan 13 11:08 log/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_commit_ts/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_dynshmem/
drwx------  4 postgres postgres 4096 Jan 13 11:13 pg_logical/
drwx------  4 postgres postgres 4096 Jul 24 19:12 pg_multixact/
drwx------  2 postgres postgres 4096 Jan 13 11:08 pg_notify/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_replslot/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_serial/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_snapshots/
drwx------  2 postgres postgres 4096 Jan 13 11:08 pg_stat/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_stat_tmp/
drwx------  2 postgres postgres 4096 Jan  3 06:12 pg_subtrans/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_tblspc/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_twophase/
-rw-------  1 postgres postgres    3 Jul 24 19:12 PG_VERSION
drwx------  3 postgres postgres 4096 Jan  3 06:12 pg_wal/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_xact/
-rw-------  1 postgres postgres   88 Jul 24 19:12 postgresql.auto.conf
-rw-------  1 postgres postgres  130 Jan 13 11:08 postmaster.opts
-rw-------  1 postgres postgres  108 Jan 13 11:08 postmaster.pid

I think to change the file permissions in /var/lib/postgresql/10/main/ to chh1: chh1 but I'm not sure if it is safe to do so without putting my data at risk.
Please let me know if you need additional information.

dnd 5e – How does a villain's tactic (mastermind archetype) work when trying to support a caster in the group?

How does a Rogue's Master of Tactics (mastermind archetype) work when trying to support a caster in the group?

MASTER OF TACTICS
From the third level, you can use the help action as a bonus action. If you use the Help action to help an ally attack a creature, the target of that attack may be within 30 feet of you and not within 5 feet of you if the target can see or hear you , (XGE p. 46)

When a villain uses his or her Master of tactics Feature to help a caster in the group would grant it Advantage in a magic attack?

I think that would only work if the other party member made an occupation A spell that requires a spell attack against a creature and not against a spell where the creature has to make a save throw?

In terms of distance, the villain must be within 30 feet of the party member that casts the spell, or within 30 feet of the creature The caster aims?

In terms of the initiative, would It's the villain's turn Do you only have to be in the same round in front of the caster? Or, if it were the villain's turn after the caster, would Master of Tactics continue the next round so that the caster gains an advantage in the next round instead?

Thanks for your support. I think I have the essentials, but I still have to clarify them.