1
1.¿Porqué dice que el método componentWillMount se ejecuta en el servidor?
2.¿A que se refiere con que un método debe ser puro?
2.¿A que se refiere con que un método debe ser puro?
2
import React from 'react';
/**** Helpers ****/
const tipoMoneda = {
d:'Dolar',
p:'Peso'
}
const cotizDolar = {
d:31,
p:1
}
const toDolar = (pesos) => {
return pesos / this.cotizDolar.d;
}
const toPeso = (dolares) => {
return dolares * this.cotizDolar.p;
}
const tryConvert = (valor, convertir) => {
const input = parseFloat( valor );
const output = convertir(input);
}
/**** Helpers ****/
//componente mensaje. Stateless
function Mensaje(props){
if (props.peso > 100000){
return
}
else{
return
}
}
class ValorInput extends React.Component{
constructor(props){
super(props);
this.handleChange = this.handleChange.bind(this);
}
handleChange(e){
this.props.onValorChange(e.target.value);
}
render(){
const valor = this.props.valor;
const moneda = this.props.moneda;
return(
Ingrese un valor en {tipoMoneda[moneda]}
)
}
}
class Calculadora extends React.Component{
constructor(props){
super(props);
this.handlePesoChange = this.handlePesoChange.bind(this);
this.handleDolarChange = this.handleDolarChange.bind(this);
this.state = {valor:'',moneda:'p'};
}
handlePesoChange(valor){
this.setState({moneda:'p', valor})
}
handleDolarChange(valor){
this.setState({moneda:'d', valor})
}
render(){
return(
)
}
}
export default Calculadora;
/**** Helpers ****/
const tipoMoneda = {
d:'Dolar',
p:'Peso'
}
const cotizDolar = {
d:31,
p:1
}
const toDolar = (pesos) => {
return pesos / this.cotizDolar.d;
}
const toPeso = (dolares) => {
return dolares * this.cotizDolar.p;
}
const tryConvert = (valor, convertir) => {
const input = parseFloat( valor );
const output = convertir(input);
}
/**** Helpers ****/
//componente mensaje. Stateless
function Mensaje(props){
if (props.peso > 100000){
return
Mandalo a la cueva
;}
else{
return
Cambiale en la calle
;}
}
class ValorInput extends React.Component{
constructor(props){
super(props);
this.handleChange = this.handleChange.bind(this);
}
handleChange(e){
this.props.onValorChange(e.target.value);
}
render(){
const valor = this.props.valor;
const moneda = this.props.moneda;
return(
Ingrese un valor en {tipoMoneda[moneda]}
)
}
}
class Calculadora extends React.Component{
constructor(props){
super(props);
this.handlePesoChange = this.handlePesoChange.bind(this);
this.handleDolarChange = this.handleDolarChange.bind(this);
this.state = {valor:'',moneda:'p'};
}
handlePesoChange(valor){
this.setState({moneda:'p', valor})
}
handleDolarChange(valor){
this.setState({moneda:'d', valor})
}
render(){
return(
)
}
}
export default Calculadora;
3
Fqdn : 255
Account operators
ou
Forest
Un Controlador de dominio (mínimo) en cada dominio
Esquema: objetos válidos -> atributos
Multimaster
Sid (security id) wid + rid
Global catalog
Recomendación: que todos los controladores de dominio tengan global catalog
Kerberos [standard de protocolo de encripción]
LAN manager (ntlm) [El primero que uso microsoft en DOS]
ntlm2 : fue vulnerado
Account operators
ou
Forest
Un Controlador de dominio (mínimo) en cada dominio
Esquema: objetos válidos -> atributos
Multimaster
Sid (security id) wid + rid
Singlemaster -> fsmo (operation master roles)
Readmaster [dominio]
PDC emulator (primary domain controller) [dominio]
Infrastructor master (membership de los usuarios) [dominio]
Domain naming master [forest]
Esquema master [forest]
Global catalog
Recomendación: que todos los controladores de dominio tengan global catalog
Kerberos [standard de protocolo de encripción]
LAN manager (ntlm) [El primero que uso microsoft en DOS]
ntlm2 : fue vulnerado
Kerberos V5 : el mas seguro para usuario y contraseña
Ticket: lifetime [def 20 min]
Key distribution center (KDC de kerberos) [puerto 88 UDP]
4
Read only domain controller
5
Click to add some text
Saving...
6
Click to add some text
Saving...
7
Click to add some text
Saving...
8
Click to add some text
Saving...
9
Click to add some text
Saving...
10
Click to add some text
Saving...
11
Click to add some text
Saving...
12
Click to add some text
Saving...
13
Click to add some text
Saving...
14
Click to add some text
Saving...
15
Click to add some text
Saving...
16
Click to add some text
Saving...
17
Click to add some text
Saving...
18
Click to add some text
Saving...
19
Click to add some text
Saving...
20
Click to add some text
Saving...
21
Click to add some text
Saving...
22
Click to add some text
Saving...
23
Click to add some text
Saving...
24
Click to add some text
Saving...
25
Click to add some text
Saving...
26
Click to add some text
Saving...
27
Click to add some text
Saving...
28
Click to add some text
Saving...
29
Click to add some text
Saving...
30
Click to add some text
Saving...
31
Click to add some text
Saving...
32
Click to add some text
Saving...
33
Click to add some text
Saving...
34
Click to add some text
Saving...
35
Click to add some text
Saving...
36
Click to add some text
Saving...
37
Click to add some text
Saving...
38
Click to add some text
Saving...
39
Click to add some text
Saving...
40
Click to add some text
Saving...
41
Click to add some text
Saving...
42
Click to add some text
Saving...
43
Click to add some text
Saving...
44
Click to add some text
Saving...
45
Click to add some text
Saving...
46
Click to add some text
Saving...
47
Click to add some text
Saving...
48
Click to add some text
Saving...
49
Click to add some text
Saving...
50
Click to add some text
Saving...
51
Click to add some text
Saving...
52
Click to add some text
Saving...
53
Click to add some text
Saving...
54
Click to add some text
Saving...
55
Click to add some text
Saving...
56
Click to add some text
Saving...
57
Click to add some text
Saving...
58
Click to add some text
Saving...
59
Click to add some text
Saving...
60
Click to add some text
Saving...
61
Click to add some text
Saving...
62
Click to add some text
Saving...
63
Click to add some text
Saving...
64
Click to add some text
Saving...
65
Click to add some text
Saving...
66
Click to add some text
Saving...
67
Click to add some text
Saving...
68
Click to add some text
Saving...
69
Click to add some text
Saving...
70
Click to add some text
Saving...
71
Click to add some text
Saving...
72
Click to add some text
Saving...
73
Click to add some text
Saving...
74
Click to add some text
Saving...
75
Click to add some text
Saving...
76
Click to add some text
Saving...
77
Click to add some text
Saving...
78
Click to add some text
Saving...
79
Click to add some text
Saving...
80
Click to add some text
Saving...
81
Click to add some text
Saving...
82
Click to add some text
Saving...
83
Click to add some text
Saving...
84
Click to add some text
Saving...
85
Click to add some text
Saving...
86
Click to add some text
Saving...
87
Click to add some text
Saving...
88
Click to add some text
Saving...
89
Click to add some text
Saving...
90
Click to add some text
Saving...
91
Click to add some text
Saving...
92
Click to add some text
Saving...
93
Click to add some text
Saving...
94
Click to add some text
Saving...
95
Click to add some text
Saving...
96
Click to add some text
Saving...
97
Click to add some text
Saving...
98
Click to add some text
Saving...
99
Click to add some text
Saving...
100
Click to add some text
Saving...
101...
Click to load entries 101 to 200
201...
Click to load entries 201 to 300
301...
Click to load entries 301 to 400
401...
Click to load entries 401 to 500
501...
Click to load entries 501 to 600
601...
Click to load entries 601 to 700
701...
Click to load entries 701 to 800
801...
Click to load entries 801 to 900
901...
Click to load entries 901 to 1000