oracle – How to quote sqlplus identifier in bash script

I have googled for an hour or so now and still can not find how to quote a sqlplus identifier in bash script.

I get “ORA-00904: “MEMORY_TARGET”: invalid identifier” no matter how I try to quote the identifier in the following command

MEMORY_TARGET=$(su – orat01 -c ” echo ‘select VALUE from V$PARAMETER where name = ‘memory_target’;’| sqlplus / as sysdba “)

Any ideas on how to do this would be greatly appreciated.

javascript – Erro com arquivo.js: Unexpected identifier

Estou com um problema no código quando inicializa (linha 176, marquei com um *)

var tabuleiro = document.getElementById('tab')
var espacos = document.getElementsByName('espacos')
var botao_reiniciar = document.getElementById('botao_reiniciar')

var Menu_Versus_X = document.getElementById('Menu_Versus_X')             //menu, para mudar a cor, desing indicativo de quem vai jogar
var Menu_Versus_O = document.getElementById('Menu_Versus_O')

var pontos_X = 0
var pontos_O = 0
var vitoria = false                       
var placar = document.getElementById('placar')
var contagem_para_empate = 0
//----------Variável nescessária para a condição de quem esta jogando (Quem_Joga)(Condição 1*) e escolha aleatória de quem comeca--------

var opcoes = ("X","O");
var Quem_Joga = ((opcoes(Math.random() < 0.5 ? 0 : 1)));
window.alert(`'${Quem_Joga}' começa! O jogo vai até 3 pontos!`)

//----------------------------------------------------------------------------------------

function Selecionar_Espaco(){  //(JOGO SE BASEA NESSA FUNCTION)
    
    if (vitoria == false) {                  //se a vitória for false, continue o jogo, se vitoria for true, ele acaba
        
        var espaco_selecionado = event.target   //Identificação de qual div (a1, a2...) o jogador esta clicando

         //------------------------ERRO se a casa clicada ja estiver selecionada-----------------------------------------------------
        if (espaco_selecionado.innerHTML == 'X' || espaco_selecionado.innerHTML == 'O' || espaco_selecionado == tabuleiro){  
            window.alert('Casa já selecionada!')
            return
        }
        //------------------------------------------------------------------------------------------------------

        contagem_para_empate += 1                //se ela ficar = 9 o progama da empate (9 quadrados) (*3)

        //----------------------------------QUEM TA JOGANDO X--------------------------------------

        if (Quem_Joga == 'X'){ //(1*)       //Jogador1: marcação da casa e analise de qual jogador vai jogar
            Menu_Versus_X.style.color = 'black'
            Menu_Versus_O.style.color = 'greenyellow'
            espaco_selecionado.innerHTML = 'X'
            Quem_Joga = 'O'                //Quando o jogador1 jogar, tal recebe 'O' (quer dizer que a proxima condicao(1*) sera falsa, passando a vez para o jogador2(2*)) 

//----------------------------------------------------CONDICOES DE VITORIA JOGADOR X---------------------------------------------------------
        if ((a1.innerHTML == 'X' && a2.innerHTML == 'X' && a3.innerHTML == 'X') || (b1.innerHTML == 'X' &&  b2.innerHTML == 'X' && b3.innerHTML == 'X') || (c1.innerHTML == 'X' && c2.innerHTML == 'X' && c3.innerHTML == 'X') || (a1.innerHTML == 'X' && b2.innerHTML == 'X' && c3.innerHTML == 'X') || (a3.innerHTML == 'X' && b2.innerHTML == 'X' && c1.innerHTML == 'X') || (a1.innerHTML == 'X' && b1.innerHTML == 'X' && c1.innerHTML == 'X') || (a2.innerHTML == 'X' && b2.innerHTML == 'X' && c2.innerHTML == 'X') || (a3.innerHTML == 'X' && b3.innerHTML == 'X' && c3.innerHTML == 'X')){     

            if (pontos_X < 2){     
                pontos_X += 1
                contagem_para_empate = 0
                window.alert(` Rodada ganhada pelo jogador1 ( X ) ! `)
                espacos.forEach(function(n){
                    n.innerHTML = '';
                })

            }else{           //Se o ponto de X for NÃO for menor que dois (quer dizer q vai ser  = 3) entao ele ganha (vai ate 3 pontos)
                window.alert('VITORIA DO JOGADOR1 ( X )')
                pontos_X += 1
                vitoria = true
                Menu_Versus_O.style.color = 'red'
                Menu_Versus_X.style.color = 'blue'
            }

        }
        //------------------------------------------------------------------------------------------------------------------------------------

            //----------------------------------QUEM TA JOGANDO O--------------------------------------
        }else{ //(2*)  
            espaco_selecionado.innerHTML = 'O'        //Jogador2
            Quem_Joga = 'X'
            Menu_Versus_O.style.color = 'black'
            Menu_Versus_X.style.color = 'greenyellow'

            //------------------------------------------CONDICOES DE VITORIA JOGADOR O---------------------------------------------------------
            if ((a1.innerHTML == 'O' && a2.innerHTML == 'O' && a3.innerHTML == 'O') || (b1.innerHTML == 'O' &&  b2.innerHTML == 'O' && b3.innerHTML == 'O') || (c1.innerHTML == 'O' && c2.innerHTML == 'O' && c3.innerHTML == 'O') || (a1.innerHTML == 'O' && b2.innerHTML == 'O' && c3.innerHTML == 'O') || (a3.innerHTML == 'O' && b2.innerHTML == 'O' && c1.innerHTML == 'O') || (a1.innerHTML == 'O' && b1.innerHTML == 'O'  && c1.innerHTML == 'O') || (a2.innerHTML == 'O' && b2.innerHTML == 'O' && c2.innerHTML == 'O') || (a3.innerHTML == 'O' && b3.innerHTML == 'O' && c3.innerHTML == 'O')){     

                if (pontos_O < 2){     
                    pontos_O += 1
                    window.alert(` Rodada ganhada pelo jogador1 ( O ) ! `)
                    contagem_para_empate = 0
*                    espacos.forEach(function(n){
                        n.innerHTML = '';
                    })

                }else{
                    window.alert('VITORIA DO JOGADOR1 ( O )')
                    pontos_O += 1
                    vitoria = true
                    Menu_Versus_X.style.color = 'red'
                    Menu_Versus_O.style.color = 'blue'
                }

            }
            //------------------------------------------------------------------------------------------------------------------------------
        }

        placar.innerHTML = `<fieldset>${pontos_X} X ${pontos_O}</fieldset>` //mudanca do placar se tiver vitoria (esta dentro do bloco (if vitoria = false))

        //--------------------------------------EMPATE---------------------------------------------------
        if (contagem_para_empate == 9){  //(*3)
                window.alert('EMPATE')
                contagem_para_empate = 0

                espacos.forEach(function(n){
                    n.innerHTML = '';
                })
            }
        //------------------------------------------------------------------------------------------
        
    }   

}

//----------Reinicia pontos, placar, contagem_empate - coloca vitora como false novamente - escolhe um player - limpa a tabela---------------
function reiniciar(){
    espacos.forEach(function(n){
        n.innerHTML = '';
    });

    pontos_O = 0
    pontos_X = 0
    contagem_para_empate = 0
    vitoria = false

    Quem_Joga = ((opcoes(Math.random() < 0.5 ? 0 : 1)));
    window.alert(`'${Quem_Joga}' começa! O jogo vai até 3 pontos!`)

    placar.innerHTML = `<fieldset>${pontos_X} X ${pontos_O}</fieldset>`
    Menu_Versus_O.style.color = 'black'
    Menu_Versus_X.style.color = 'black'
}

cs50 C mario (Error message expected identifier or “(” { 5:1

#include <cs50.h>
#include <stdio.h>

int main(void);
{
int n;
do
{
//usr input
n = get_in(“Height: “);
} while ( n < 1 || n > 8);

for (int i = 0; i < n; i++)
{
     (int j = 0; j < n; j++)
     {
          if (i + j < n-1);
          printf(" ");
    printf("#");
     }
    printf("n");
}

}

docker – SNMP: hrSystemUptime.0: Unknown Object Identifier (Sub-id not found: (top) -> hrSystemUptime)

I get the error in the title when I issue the following command.

$  snmpget -v3 -u edgeos-snmpd-user -l authPriv -a SHA -x AES -A authPhrase -X privPhrase 192.168.x.x hrSystemUptime.0
hrSystemUptime.0: Unknown Object Identifier (Sub-id not found: (top) -> hrSystemUptime)

If I enter the same command on the target system (192.168.x.x), I get a valid result.

# snmpget -v3 -u edgeos-snmpd-user -l authPriv -a SHA -x AES -A authPhrase -X privPhrase localhost hrSystemUptime.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (1362660) 3:47:06.60

The client is an Ubuntu 18.04.1 based Docker container and the target is an Alpine-based Linux device.

I have installed snmp-mibs-downloader in the container and the hrSystemUptime entry exists in "/var/lib/snmp/mibs/ietf/HOST-RESOURCES-MIB.

-- The Host Resources System Group

hrSystemUptime OBJECT-TYPE
    SYNTAX     TimeTicks
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION
        "The amount of time since this host was last
        initialized.  Note that this is different from
        sysUpTime in the SNMPv2-MIB (RFC1907) because
        sysUpTime is the uptime of the network management
        portion of the system."
    ::= { hrSystem 1 }

However, it doesn’t seem to be searching this directory.

$ net-snmp-config --default-mibdirs
/home/edge/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp

I copied HOST-RESOURCES-MIB to /home/edge/.snmp/mibs but it made no difference.

What do I have to do in the container to get this to work?

How to retrieve the Instagram identifier using the Facebook page?

I lost access to my email that I used to log in to the instagram identifier (business). Now I can use my Facebook page linked to that instagram acc. to get it back?

SQL-ODBC multi-part identifier – Excel

Hello, I am crawling SQL, I use it a lot to interact with ERP through Excel (ODBC), I have a query that I made UNION ALL, I use dates placed directly in Excel to serve as range criteria for the period I want to work on , however when querying UNION ALL I get the following error "Could not link multi-part identifier" STF.FT_ENTRADA ", I tried to read similar cases, but maybe my limitation on the topic did not allow me to understand how solve this situation, then follow the code, I appreciate the help

TO SELECT
DATEFROMPARTS (LEFT (SFT030.FT_ENTRADA, 4), SUBSTRING (SFT030.FT_ENTRADA, 5.2), 1) AS & # 39; INPUT & # 39 ;,
SD1030.D1_COD AS & # 39; Cod Prod & # 39 ;,
sum (SFT030.FT_QUANT) AS & # 39; QTY & # 39 ;,
FROM P12_OFICIAL.dbo.SD1030 SD1030, P12_OFICIAL.dbo.SFT030 SFT030
WHERE SD1030.D1_COD = SFT030.FT_PRODUCT
Y (SFT030.FT_ENTRADA> =? Y SFT030.FT_ENTRADA =? Y SFT060.FT_ENTRADA

encryption: can the name and date of birth be changed in any way to generate a secure identifier?

I am working on a project that we intend to launch for developing countries and as a result, I want to limit the amount of information needed for login and identification, while maintaining privacy and individual security.

Speaking to the team, it became clear that passwords are prohibited, as users can end up accessing the service only when they have a third party that provides the opportunity to access the Internet (even once or twice a year). Remembering passwords, using emails or anything like that would not work in that scenario.

The whole thing is that I need to store some data about each user, and I don't want to have any idea who that data is. It's not particularly sensitive data, but I'm trying to build something that preserves privacy as much as possible.

So I am wondering how to identify users with information that to know and I don't need to put any extra effort in remembering.

As a result, we have reduced the usable information to: Full name and date of birth (even DoB may be a problem for some). Intuitively, it doesn't seem like one can build something very secure with that data. A key flaw with the name and DoB is that one can easily go through all the "John Smith" combinations with all possible birth dates and find a matching hash.

So a rough workaround we have in mind is to do a hash of name and DoB and use it as "username" (everything happens in the background of course). Some additional steps would be to code the date of birth and add salt to hashish.

Authentication would happen through facial recognition. The idea is to encrypt a user image with some combination of the name and DoB as well, so that at least it is not so easy for the database administrator to access.

A user would log in with just their name, DoB, and image, on a system that would first search through the hashes until a match was found, then decrypt the corresponding image and compare the two images to allow login or not.

In summary, user credentials would be something like:

SHA256(NAME + SCRAMBLED_DOB + SALT) => AES(PICTURE_DATA, (NAME+SCRAMBLED_DOB))

Salt could also be added to the image encryption, so when you log in:

  1. All potential versions of SCRAMBLED_DOB are tested with multiple salts until a hash found in the database is found.
  2. The specific hash and sequence of DoB digits found in Step 1 are used to decrypt the image.
  3. The image is compared to the image sent at login, which is then discarded

This process could be long, but depending on how long, may be acceptable in the name of privacy.

So essentially what I'm wondering is:

  1. would do SHA256(NAME + SCRAMBLED_DOB + SALT) be safe enough, given the project requirements?
  2. Any suggestions for a better way to encrypt the image?
  3. Any suggestion for this system in general?

Thanks in advance!

category theory: Is the identity identifier a type of free object?

My understanding of free objects is: Free Functors, Free Applicants, Free Monads, Free Monoids, etc., give it more "free" structure, that is, in general, or for everyone something with less structure, you can have more for free. For example, the free monad offers you a monad instance for any type with a functor instance, even without its own native monad instance.

the Identity functor gives you an instance of functor (and applicative, and monad) for any type. So it seems to me a kind of free structure. Am I writing about this, or am I confusing myself with my vague definition of free objects?

magento2 – Magento 2: unregistered identifier

After installing the extension, we have a problem: not registered

mpimageoptimizer_grid_data_source

Below is the code etc / di.xml:




    
        
            
                mpimageoptimizer_grid_collection
            
        
    
    
        
            mageplaza_image_optimizer
            MageplazaImageOptimizerModelResourceModelImage
        
    
    
        
            
                MageplazaImageOptimizerConsoleCommandOptimize
                MageplazaImageOptimizerConsoleCommandScan
            
        
    

Any solution?

mysql – StoredProcedure error: not valid in this position, waiting for an identifier

You can use this as a stored procedure.

As you can see Mysql doesn't like some things in its procedure, it starts with session variables which I replaced with regular variables _p is just to show that it is alokal variable.
MYSQL SELECT INTO is a way to get the result of a SELECT in a variable

the

IF THEN 
  some statement
ELSE 
  some statement
END IF  

the construction must always be implemented in this way (the other is optional) and must have a value between IF … END IF or Between IF … ELSE … END IF has an instruction.

DELIMITER $$
CREATE PROCEDURE `sp_login` (IN _u varchar(50),IN  _p varchar(100))
BEGIN
    DECLARE _ap varchar(50);
    SELECT passwd INTO _ap FROM transportesclaudia.usuarios WHERE login=_u;

    IF _ap IS NULL THEN 
        RETURN -1;
    ELSE
        IF _ap = _p THEN
            RETURN  1;
        ELSE
            RETURN  -2;
        END IF;
    END IF;
END;
DELIMITER ;