Why do people still include JavaScript code to validate data when using an input type="date" ? This input displays the calendar, which should ensure that a proper date is used.
Jean Devonne's questions
I have tried to optimize my CSS code by using shorthand , specifically with the background property , the problem occurs when I want to incorporate the background-size property in the shorthand. Please I would appreciate your help since I was investigating and I couldn't find the solution, I don't know if it has much to do with the order in which the values go inside the shorthand.
This is the HTML
<p><a href="mailto:[email protected]">JEAN LEON: Director Comercial.</a></p>
<p><a href="mailto:[email protected]">SHEYLA RIOS: Jefa de Ventas.</a></p>
Here the extended code without using shorthand (validated by the W3C):
a[href^="mailto"] {
background: url("../imagenes/mail.png") left center no-repeat;
background-size: 1.5em;
padding-left: 40px;}
https://jigsaw.w3.org/css-validator/
Using Shorthand returns Error.
a[href^="mailto"] {
background: url("../imagenes/mail.png") 1.5em left center no-repeat;
padding-left: 40px;}
Hello this is my code and even though I set the rowspan to 3 it doesn't generate the table correctly, I try to generate a table from a two-dimensional array with PHP but when I format the table it doesn't work as it should, I can't find the error, please help.
<table border="1">
<?php
//Primero creamos dos arrays $matriz_pablo y $matriz_roberto para luego insertarlas en un array general $matriz_general la que sera bidimensional
$matriz_pablo = array('nombre' => 'pablo', 'profesion' => 'ministro', 'edad' => '50');
$matriz_roberto = array('nombre' => 'roberto', 'profesion' => 'agricultor', 'edad' => '45');
$matriz_general = array('PABLO' => $matriz_pablo,'ROBERTO' => $matriz_roberto);
//A continuación imprimimos los valores de la matriz bidimensional.
//El Primer FOREACH muestra las claves de primer nivel PABLO y ROBERTO
foreach ($matriz_general as $key => $value) {
echo "<tr>"."<td rowspan='3'>".$key."</td>";//Se muetra la Clave
//El Segundo FOREACH mostrará las claves y valores de segundo nivel internos de la columna valor de primer nivel.
foreach ($value as $clave => $valor) {
echo "<tr>"."<td>".$clave."</td>"."<td>".$valor."</td>"."</tr>";
}
echo "</tr>";
}
?>
</table>
Hello, I would like to know the difference between these two types of quotes, it happens that with '' you don't get the keyCode and with `` you do and I don't understand why. Below is the code of the line where the scenario is presented.
const audio = document.querySelector('audio[data-key="${e.keyCode}"]');
The HTML and SCRIPT
<body>
<audio data-key="65" src="sounds/clap.wav"></audio>
<audio data-key="83" src="sounds/hihat.wav"></audio>
<audio data-key="68" src="sounds/kick.wav"></audio>
<audio data-key="70" src="sounds/openhat.wav"></audio>
<audio data-key="71" src="sounds/boom.wav"></audio>
<audio data-key="72" src="sounds/ride.wav"></audio>
<audio data-key="74" src="sounds/snare.wav"></audio>
<audio data-key="75" src="sounds/tom.wav"></audio>
<audio data-key="76" src="sounds/tink.wav"></audio>
<script>
window.addEventListener('keydown', function(e){
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
console.log(audio);
});
</script>
</body>
with ''
const audio = document.querySelector('audio[data-key="${e.keyCode}"]');
with ``
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
I just installed Oracle Database 12c Release 2 (12.2.0.1.0) on my windows 10 pc. The problem is that I cannot create a connection from Oracle SQL Developer and the message appears in red (see image).
Testing connectivity from the command prompt gives the following error ORA-12541: TNS:There is no listener.
C:\Users\JEAN>tnsping ONE
TNS Ping Utility for 64-bit Windows: Version 12.2.0.1.0 - Production on 16-SEP-2017 00:11:30
Copyright (c) 1997, 2016, Oracle. All rights reserved.
Archivos de parßmetros utilizados:
D:\app\JEAN\product\12.2.0\dbhome_1\network\admin\sqlnet.ora
Adaptador TNSNAMES utilizado para resolver el alias
Intentando contactar con (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ONE)))
TNS-12541: TNS:no hay ning·n listener
And this is how I have the tnsnames.ora and the listener.ora
tnsnames.ora
# tnsnames.ora Network Configuration File: D:\app\JEAN\product\12.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ONE = (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ONE)
) )
LISTENER_ONE = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORACLR_CONNECTION_DATA = (DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
) )
listener.ora
# listener.ora Network Configuration File: D:\app\JEAN\product\12.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\JEAN\product\12.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\JEAN\product\12.2.0\dbhome_1\bin\oraclr12.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = Oracle8)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.38)(PORT = 1521))
)
ADR_BASE_LISTENER = D:\app\JEAN\product\12.2.0\dbhome_1\log
What should I do to solve it?