jueves, 14 de marzo de 2013

Generate a new SID on Windows Server 2008 and Windows 7 (sysprep)

With the NewSID tool no longer supported by Microsoft for more recent versions of Windows, you may find yourself in a situation where you need to generate a new SID on a Windows Server 2008 or Windows 7 computer, and wonder which tool you need to use. I myself have run across an issue in the past in our development environment where duplicate SIDs caused a problem. Care needs to be taken when cloning Windows virtual machines, particularly if they will later be used as domain controllers.

In order to avoid any issues like this, the new preferred method to set a new SID on a Windows machine is to use Sysprep. Before running Sysprep, you may wish to verify the current SID on the sytem that you wish to modify. This can easily be done by running the psgetsid utility, which is part of the excellent Pstools developed by Mark Russinovich. The output of the psgetsid command can be seen below, showing the current machine SID:

Output of psgetsid before running Sysprep on Windows Server 2008 R2

 Next you can sysprep by running the following command:

C:\Windows\System32\Sysprep\sysprep.exe

Running Sysprep
 
On the Sysprep, screen make sure that you tick the 'Generalize' tick box as shown below:
 

Choose settings for the System Preparation Tool

 The Sysprep process will take a few minutes to run, and will automatically reboot the system if you chose to do so. On reboot, the following screen will be displayed. Click 'Next' to continue:

 

Click next to continue the Sysprep process

 After the sysprep process is complete, you can run psgetsid again to verify that a new SID has been generated for this computer:

Output of psgetsid after running Sysprep on Windows Server 2008 R2

martes, 5 de marzo de 2013

Background-Image “fullscreen” ajustable a Ventana con CSS3

Método para crear un efecto fullscreen de una imágen usada como fondo sin necesidad de utilizar javascript. Para ello solo vamos a utilizar CSS y su propiedad background-size: cover.

La propiedad "background-size: cover" nos permite escalar el tamaño de las imágenes de fondo (background), en lugar de el comportamiento predeterminado del mosaico de la imagenes.

* para su visualización correcta requiere o bien un navegador basado en Gecko, WebKit (Safari y Google Chrome, por ejemplo) y Opera.

html {
    background: url(bg.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

DEMO DESCARGAR



lunes, 10 de diciembre de 2012

Cómo configurar las opciones para compartir calendarios de google

Este artículo describe las opciones para compartir correspondientes a la organización que los administradores han configurado. Consulta Comparte tu calendario con otros para obtener una lista de las opciones personales para compartir calendarios.

Para configurar las opciones para compartir calendarios correspondientes a la organización:

  1. Inicia sesión en el panel de control del administrador de Google Apps.

    La URL es https://www.google.com/a/cpanel/nombre-dominio-principal, donde nombre-dominio-principal es el nombre de dominio con el que te has registrado en Google Apps.

  2. Haz clic en la pestaña Configuración y selecciona Calendario en la columna de la izquierda.

  3. En la pestaña Configuración de la organización, selecciona la organización para la que quieras configurar las opciones para compartir calendarios.

    Selecciona la organización de nivel superior para aplicar la misma configuración en toda la organización. También puedes especificar una configuración distinta para cada unidad organizativa. Si tienes un gran número de organizaciones, haz clic en el botón + para mostrar todas las opciones.

    En la sección Configuración de la columna izquierda, por aplicada de forma local se entiende que la configuración no se hereda de la unidad organizativa principal. (La configuración de la organización de nivel superior se aplica siempre de forma local). Heredada significa que la configuración se adopta de la unidad organizativa principal.
  4. En la sección Opciones para compartir de forma externa el calendario principal, selecciona cómo quieres permitir a los usuarios que compartan sus calendarios principales fuera del dominio:

    • Solo información libre/ocupado (ocultar detalles del evento): los usuarios pueden permitir que personas ajenas al dominio sepan cuándo estás disponibles u ocupados, pero los datos del evento permanecen ocultos. Las direcciones privadas se ocultan de los calendarios de los usuarios.
    • Compartir toda la información, pero los usuarios externos no podrán modificar el calendario: los usuarios pueden compartir la información de su calendario con las personas que se encuentran fuera del dominio. Esto incluye la lista de invitados, la ubicación y la descripción. Las direcciones privadas se ocultan de los calendarios de los usuarios.
    • Compartir toda la información y permitir que los usuarios externos puedan modificar los calendarios: los usuarios pueden compartir la información de su calendario con las personas que se encuentran fuera del dominio. Esto incluye la lista de invitados, la ubicación y la descripción. Se muestran las direcciones privadas.
    • Compartir toda la información y permitir la administración de los calendarios: los usuarios pueden compartir por completo la información de sus calendarios con las personas que se encuentran fuera del dominio y pueden otorgar permiso a los usuarios externos para que administren sus calendarios. Se muestran las direcciones privadas.
  5. En la sección Opciones para compartir de forma externa, selecciona el nivel de configuración compartida interna predeterminado para los calendarios principales.

    • No compartido: los calendarios no se comparten de forma predeterminada, pero los usuarios pueden cambiar esta opción si lo desean.
    • Sólo información libre/ocupado (ocultar información del evento): esta información se muestra de forma predeterminada, pero los usuarios pueden cambiar la configuración.
    • Compartir toda la información: toda la información es pública de forma predeterminada, pero los usuarios pueden cambiar la configuración. Los usuarios también pueden convertir eventos particulares en privados.
  6. Haz clic en la pestaña General para configurar las opciones para compartir calendarios externos para los calendarios secundarios. Las opciones son las mismas que se describen para los calendarios principales en el paso 4. Las opciones para compartir calendarios secundarios solo se pueden configurar en dominios y no en organizaciones.

Los administradores con derechos de administrador ilimitados ("superadministradores") disfrutan de pleno acceso a todos los calendarios de un dominio y pueden ver la información de todos los eventos, independientemente de si los usuarios han compartido sus calendarios.

miércoles, 14 de noviembre de 2012

Códigos HTML - Caracteres y símbolos

ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
20
21
22
23
24
25
26
27
28
29
2A
2B
2C
2D
2E
2F

!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
 
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/


"



&









espacio
signo de cierre de exclamación / admiración
comillas dobles
signo de número
signo de dólar
signo de porcentaje
signo "&" / ampersand
comilla / apóstrofe
paréntesis izquierdo
paréntesis derecho
asterisco
signo de más / adición
coma
signo de menos / sustracción / guíon / raya
punto
barra oblicua - barra de división
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
30
31
32
33
34
35
36
37
38
39
3A
3B
3C
3D
3E
3F
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
&#48;
&#49;
&#50;
&#51;
&#52;
&#53;
&#54;
&#55;
&#56;
&#57;
&#58;
&#59;
&#60;
&#61;
&#62;
&#63;












&lt;

&gt;

cero
uno
dos
tres
cuatro
cinco
seis
siete
ocho
nueve
dos puntos
punto y coma
signo de menor que
signo de igual
signo de mayor que
signo de interrogación - cierre
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
40
41
42
43
44
45
46
47
48
49
4A
4B
4C
4D
4E
4F
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
&#64;
&#65;
&#66;
&#67;
&#68;
&#69;
&#70;
&#71;
&#72;
&#73;
&#74;
&#75;
&#76;
&#77;
&#78;
&#79;
















símbolo arroba















ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
50
51
52
53
54
55
56
57
58
59
5A
5B
5C
5D
5E
5F
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
&#80;
&#81;
&#82;
&#83;
&#84;
&#85;
&#86;
&#87;
&#88;
&#89;
&#90;
&#91;
&#92;
&#93;
&#94;
&#95;



























corchete izquierdo
barra inversa
corchete derecho
signo de intercalación - acento circunflejo
signo de subrayado
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
60
61
62
63
64
65
66
67
68
69
6A
6B
6C
6D
6E
6F
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
&#96;
&#97;
&#98;
&#99;
&#100;
&#101;
&#102;
&#103;
&#104;
&#105;
&#106;
&#107;
&#108;
&#109;
&#110;
&#111;
















acento grave















ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
70
71
72
73
74
75
76
77
78
79
7A
7B
7C
7D
7E
7F
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~

&#112;
&#113;
&#114;
&#115;
&#116;
&#117;
&#118;
&#119;
&#120;
&#121;
&#122;
&#123;
&#124;
&#125;
&#126;




























llave de apertura - izquierda
barra vertical
llave de cierre - derecho
signo de equivalencia / tilde
(no definido en estándar HTML 4)
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
80
81
82
83
84
85
86
87
88
89
8A
8B
8C
8D
8E
8F
















































(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
90
91
92
93
94
95
96
97
98
99
9A
9B
9C
9D
9E
9F
















































(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
(no definido en estándar HTML 4)
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
AA
AB
AC
AD
AE
AF
 
¡
¢
£
¤
¥
¦
§
¨
©
ª
«
¬
­
®
¯
&#160;
&#161;
&#162;
&#163;
&#164;
&#165;
&#166;
&#167;
&#168;
&#169;
&#170;
&#171;
&#172;
&#173;
&#174;
&#175;
&nbsp;
&iexcl;
&cent;
&pound;
&curren;
&yen;
&brvbar;
&sect;
&uml;
&copy;
&ordf;
&laquo;
&not;
&shy;
&reg;
&macr;
espacio sin separación
signo de apertura de exclamación / admiración
signo de centavo
signo de Libra Esterlina
signo de divisa general
signo de yen
barra vertical partida
signo de sección
diéresis - umlaut
signo de derechos de autor - copyright
género feminino - indicador ordinal feminino
comillas anguladas de apertura
signo de no - símbolo lógico
guión débil
signo de marca registrada
macrón - raya alta
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
B0
B1
B2
B3
B4
B5
B6
B7
B8
B9
BA
BB
BC
BD
BE
BF
°
±
²
³
´
µ

·
¸
¹
º
»
¼
½
¾
¿
&#176;
&#177;
&#178;
&#179;
&#180;
&#181;
&#182;
&#183;
&#184;
&#185;
&#186;
&#187;
&#188;
&#189;
&#190;
&#191;
&deg;
&plusmn;
&sup2;
&sup3;
&acute;
&micro;
&para;
&middot;
&cedil;
&sup1;
&ordm;
&raquo;
&frac14;
&frac12;
&frac34;
&iquest;
signo de grado
signo de más o menos
superíndice dos - cuadrado
superíndice tres - cúbico
acento agudo - agudo espaciado
signo de micro
signo de fin de párrafo
punto medio - coma Georgiana
cedilla
superíndice uno
género masculino - indicador ordinal masculino
comillas anguladas de cierre
fracción un cuarto
fracción medio - mitad
fracción tres cuartos
signo de interrogación - apertura
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
C0
C1
C2
C3
C4
C5
C6
C7
C8
C9
CA
CB
CC
CD
CE
CF
À
Á
Â
Ã
Ä
Å
Æ
Ç
È
É
Ê
Ë
Ì
Í
Î
Ï
&#192;
&#193;
&#194;
&#195;
&#196;
&#197;
&#198;
&#199;
&#200;
&#201;
&#202;
&#203;
&#204;
&#205;
&#206;
&#207;
&Agrave;
&Aacute;
&Acirc;
&Atilde;
&Auml;
&Aring;
&AElig;
&Ccedil;
&Egrave;
&Eacute;
&Ecirc;
&Euml;
&Igrave;
&Iacute;
&Icirc;
&Iuml;
A mayúscula con acento grave
A mayúscula con acento agudo
A mayúscula con acento circunflejo
A mayúscula con tilde
A mayúscula con diéresis
A mayúscula con anillo
diptongo AE mayúscula (ligadura)
C cedilla mayúscula
E mayúscula con acento grave
E mayúscula con acento agudo
E mayúscula con acento circunflejo
E mayúscula con diéresis
I mayúscula con acento grave
I mayúscula con acento agudo
I mayúscula con acento circunflejo
I mayúscula con diéresis
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
DA
DB
DC
DD
DE
DF
Ð
Ñ
Ò
Ó
Ô
Õ
Ö
×
Ø
Ù
Ú
Û
Ü
Ý
Þ
ß
&#208;
&#209;
&#210;
&#211;
&#212;
&#213;
&#214;
&#215;
&#216;
&#217;
&#218;
&#219;
&#220;
&#221;
&#222;
&#223;
&ETH;
&Ntilde;
&Ograve;
&Oacute;
&Ocirc;
&Otilde;
&Ouml;
&times;
&Oslash;
&Ugrave;
&Uacute;
&Ucirc;
&Uuml;
&Yacute;
&THORN;
&szlig;
ETH islandesa mayúscula
N mayúscula con tilde - eñe mayúscula
O mayúscula con acento grave
O mayúscula con acento agudo
O mayúscula con acento circunflejo
O mayúscula con tilde
O mayúscula con diéresis
signo de multiplicación
O mayúscula with slash
U mayúscula con acento grave
U mayúscula con acento agudo
U mayúscula con acento circunflejo
U mayúscula con diéresis
Y mayúscula con acento agudo
THORN islandesa mayúscula
s minúscula (alemán) - Beta minúscula
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
E0
E1
E2
E3
E4
E5
E6
E7
E8
E9
EA
EB
EC
ED
EE
EF
à
á
â
ã
ä
å
æ
ç
è
é
ê
ë
ì
í
î
ï
&#224;
&#225;
&#226;
&#227;
&#228;
&#229;
&#230;
&#231;
&#232;
&#233;
&#234;
&#235;
&#236;
&#237;
&#238;
&#239;
&agrave;
&aacute;
&acirc;
&atilde;
&auml;
&aring;
&aelig;
&ccedil;
&egrave;
&eacute;
&ecirc;
&euml;
&igrave;
&iacute;
&icirc;
&iuml;
a minúscula con acento grave
a minúscula con acento agudo
a minúscula con acento circunflejo
a minúscula con tilde
a minúscula con diéresis
a minúscula con anillo
diptongo ae minúscula (ligadura)
c cedilla minúscula
e minúscula con acento grave
e minúscula con acento agudo
e minúscula con acento circunflejo
e minúscula con diéresis
i minúscula con acento grave
i minúscula con acento agudo
i minúscula con acento circunflejo
i minúscula con diéresis
ASCII   HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
F0
F1
F2
F3
F4
F5
F6
F7
F8
F9
FA
FB
FC
FD
FE
FF
ð
ñ
ò
ó
ô
õ
ö
÷
ø
ù
ú
û
ü
ý
þ
ÿ
&#240;
&#241;
&#242;
&#243;
&#244;
&#245;
&#246;
&#247;
&#248;
&#249;
&#250;
&#251;
&#252;
&#253;
&#254;
&#255;
&eth;
&ntilde;
&ograve;
&oacute;
&ocirc;
&otilde;
&ouml;
&divide;
&oslash;
&ugrave;
&uacute;
&ucirc;
&uuml;
&yacute;
&thorn;
&yuml;
eth islandesa minúscula
eñe minúscula - n minúscula con tilde
o minúscula con acento grave
o minúscula con acento agudo
o minúscula con acento circunflejo
o minúscula con tilde
o minúscula con diéresis
signo de división
o barrada minúscula
u minúscula con acento grave
u minúscula con acento agudo
u minúscula con acento circunflejo
u minúscula con diéresis
y minúscula con acento agudo
thorn islandesa minúscula
y minúscula con diéresis






HTML 4.01, ISO 10646, ISO 8879, alfabeto romano extendido A y B,
Soporte para browsers: Internet Explorer > 4, Netscape > 4
    HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

338
339
352
353
376
402
152
153
160
161
178
192
Œ
œ
Š
š
Ÿ
ƒ
&#338;
&#339;
&#352;
&#353;
&#376;
&#402;






OE mayúscula (ligadura)
oe minúscula (ligadura)
S mayúscula con caron
s minúscula con caron - acento hacek
Y mayúscula con diéresis
f minúscula itálica - signo de función
    HTML HTML  
Dec Hex Símbolo Numero Nombre Descripción

8211
8212
8216
8217
8218
8220
8221
8222
8224
8225
8226
8230
8240
8364
8482
2013
2014
2018
2019
201A
201C
201D
201E
2020
2021
2022
2026
2030
20AC
2122
–
—
'
'
‚
"
"
„
†
‡
•
…
‰
€
™
&#8211;
&#8212;
&#8216;
&#8217;
&#8218;
&#8220;
&#8221;
&#8222;
&#8224;
&#8225;
&#8226;
&#8230;
&#8240;
&#8364;
&#8482;













&euro;

raya corta
raya larga
comilla izquierda - citación
comilla derecha - citación
comilla de citación - baja
comillas de citación - arriba izquierda
comillas de citación - arriba derecha
comillas de citación - abajo
cruz
doble cruz
viñeta - bullet
puntos suspensivos
signo de pro mil
signo de euro
signo de marca registrada - trade mark


martes, 30 de octubre de 2012

Deshabilitar el periodo de prueba para Activar Windows Server 2008 (para siempre)

Este truco / tutorial es solo con fines demostrativos. No me hago responsable de su mal uso.

El truco es válido en Windows Server 2008 Service Pack 1 ó 2, y en cualquiera de sus versiones de 32 y 64 bits.

Lo primero que tenemos que tener en cuenta para realizar el truco es que en el momento de la instalación debemos instalar el sistema operativo sin número de serie y desactivando la casilla Activar Windows automáticamente cuando me conecte a Internet.

En este caso vamos a realizar la prueba con Windows 2008 Service Pack 2 de 64 bits en su versión Enterprise.

Todos los pasos que describo tienen que ser realizados con el usuario Administrador

Una vez instalado el sistema operativo, nos vamos a Inicio · Herramientas Administrativas · Servicios (o escribimos services.msc).

Buscamos el servicio: Servicio de notificación de UI de SL, hacemos doble click en él para abrir sus propiedades y marcamos el Tipo de inicio a Deshabilitado. Aplicar y Aceptar.

Reiniciamos el ordenador (importante).

Ahora nos dirigimos Inicio · Equipo · Disco local (C:) y a la carpeta \Windows\System32, y buscamos los archivos SLLUA.exe, SLUI.exe y SLUINotify.dll.

Los siguientes pasos son iguales para los tres archivos. Solo describiré el primero, pero deberéis realizar los mismos pasos en los otros dos.

Empezamos con el archivo SLLUA.exe.

Botón derecho, Propiedades y en la pestaña de Seguridad pulsamos en Opciones avanzadas.

Nos vamos a la pestaña Permisos efectivos y pulsamos en Seleccionar.

Nos aparece la ventana para Seleccionar Usuario o Grupo y pulsamos en Avanzadas... para que se expanda la ventana, y pulsamos en Buscar ahora, marcamos el usuario Administrador y pulsamos en Aceptar.

Y Aceptar de nuevo.

Ahora nos dirigimos a la pestaña Propietario y pulsamos en Editar.

Dentro de la nueva ventana pulsamos en Otros usuarios o grupos...

Nos aparece la ventana para Seleccionar Usuario o Grupo y pulsamos en Avanzadas... para que se expanda la ventana, y pulsamos en Buscar ahora, marcamos el usuario Administrador y pulsamos en Aceptar.

Y Aceptar de nuevo.

Volvemos a la ventana de Configuración de seguridad avanzada para SLLUA, pulsamos en Aplicar y aparecerá un mensaje de Seguridad de Windows.

Pulsamos en Aceptar.

Y en la ventana de Configuración de seguridad avanzada para SLLUA, pulsamos en Aceptar, y en la ventana, también llamada Configuración de seguridad avanzada para SLLUA, pulsamos en Aceptar nuevamente.

De nuevo en la ventana de Propiedades de SLLUA en Editar.

Marcamos el grupo Administradores y en los Permisos de Administradores marcamos la casilla Control total de la columna Permitir. Pulsamos en Aplicar.

Aparece un mensaje de Seguridad de Windows y pulsamos en Sí.

Y en la ventana de Permisos de SLLUA pulsamos en Aceptar.

Y en la ventana de Propiedades de SLLUA pulsamos en Aceptar.

Una vez cerradas todas las ventanas, volvemos a C:\Windows\System32\ y encima del archivo SLLUA.exe, botón derecho con el ratón y elegimos Eliminar.

Nos aparece un mensaje sobre Eliminar Archivo. Pulsamos en Sí.

Y, gracias a los pasos que hemos seguido, nos permitirá borrar el archivo.

Ahora debemos realizar estos mismos pasos con los otros dos archivos que nos quedan: SLUI.exe y SLUINotify.dll.

(no voy a explicarlos porque los pasos son iguales que con el archivo SLLUA.exe, como había dicho anteriormente)

Una vez borrados los archivos SLLUA.exe, SLUI.exe y SLUINotify.dll, vamos a realizar la comprobación de que todo ha salido correctamente.

Nos vamos a Inicio · Equipos, botón derecho del ratón, Propiedades y vemos en la parte inferior que quedan 60 días para realizar la activación.

La fecha del ordenador es 20 de noviembre de 2009, como podéis ver.

Podríamos esperar esos 60 días para saber si realmente todo esto funciona, pero podemos reiniciar el ordenador y cambiar la fecha de la bios al 6 de agosto de 2011 a las 16 horas, por ejemplo, o cambiar la fecha del ordenador directamente desde Windows y Cerrar Sesión.

Si esto no hubierá funcionado, nos aparecería la pantalla de Activación, pero como podemos ver a continuación no es así.

La Activación de Windows ha quedado parada en Quedan 60 días para realizar la activación. De todas formas, con el uso diario verás que los días pasan, pero no pide activación cuando finalice la cuenta atrás.

Todas las funciones de Windows Server 2008 Service Pack 2 funcionan correctamente y sin problemas, como si estuvieramos en el periodo de prueba, pero infinito.

Les recuerdo que este truco / tutorial está realizado de forma experimental y con fines demostrativos y no me hago responsable de su mal uso.

MySQL Replication

1.  Introduction

We setup two MySQL instances for use as slaves for one master. Read this on how to setup multiple MySQL instances. The workflow presented below is for one slave instance, but is the same for every instance - only the config file and port are different. We divided all the databases into two groups, those that belong together and those that are independent. Each slave replicates one group.

Let's start!

2. Stop all interfering processes

Stop as much interfaces as possible that modify data in the MySQL databases you are going to replicate: external servers, JDBC applications, Lasso, PHP, etc.

Make a note of every service you shut down so you will not forget to turn it back on again afterwards.

3. Setup the Master

MySQL Workbench

Start a remote desktop session with the remote server and start MySQL Workbench. Click Manage Security in the bottom right corner:



and select the server instance you are going to use as the master, which is probably localhost, because you cannot use MySQL Workbench to edit a configuration file on a remote server:



Click Options File under the Configuration-section in the side bar:

Server ID

Select the Replication-pane and choose a unique Server ID. The ID is needed by the replication server instance. The ID must be a number between 1 and whatever. In our setup we used the number 14.

Binary Log

The only way a slave can replicate what is happening on the master, is to read out the log file on the master. This log file is the binary log, which is switched off by default.

Select the Log Files-pane. Check the log-bin option and enter the name for the log file. Name it mysql-bin or so:

Binary Log Expiration

A bit further down is another option to switch on: Expire Log Days. This option makes MySQL delete older bin-log files.

I set it to 30 days. If I would choose a shorter period, it could mean that when the slave fails while I am on vacation and are unable to repair the situation in due time, I have to start all over again, because the bin-logs I would need are purged!

Concurrent Insert

The last option for the master is concurrent_insert. Select the MyISAM-pane and set its value to 2 - ALWAYS.
-->
http://dev.mysql.com/doc/refman/5.5/en/concurrent-inserts.html

Apply all changes and close MySQL Workbench. Restart the MySQL instance.

From now on I add the use of Terminal, all on the hosting server itself, to manage the MySQL server instance(s), because the MySQL Workbench has its limitations - you cannot configure everything with it.

Replication User

The next step is to create a user with replication permissions. Do not use an existing account because the account details will be stored in plain text in the master.info file and the account should be used only for slaves connecting to this master.

Create User

Go to "user and privileges" on MySQL Workbench and create a new user with the "Add Account" button.


In the "Login" section set the "Login Name" (replicador) in my case, then de ip of the Slave server (if you don't want to limit the user to a specific server then use "%" instead the IP). Finally set the password for the account.

Then go to "Administrative Roles" Section and select de recently created user and from the middle panel chose "ReplicationAdmin" and "Custom" role:


Finally move from "Server Access Management" to "Schema Privileges".


Choose the recently created user (replicador in my case) and push the Add Entry button. Select "Selected host" and write the Slave IP (or choose "Any Host") and the Schema that you will replicate (or leave "Any Schema".



Save the settings and if you have not restarted MySQL since you modified the options file, do that now.

Binlog and position

With the binary log switched on, the slave must know where to pick up the transactions and start replicating. You can get the current position of the binlog as follows, in Terminal:

$ mysql -u root -p

Enter the correct password at the prompt and then enter the following command:

mysql> flush tables with read lock;

This will flush all tables and block write statements.
Important: Leave this session open and start a new Terminal session.

In the new session, log in to MySQL too and enter the following statement:

mysql> show master status;

This outputs a table that looks something like this:

+------------------+-----------+--------------+------------------+
| File             | Position  | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+-----------+--------------+------------------+
| mysql-bin.000161 | 710177030 |              |                  |
+------------------+-----------+--------------+------------------+
1 row in set (0,00 sec)

Both these columns contain values which are important for setting up the slave(s), so write these two values down because you need them later on.

If the master has been running previously without binary logging enabled, the log file name and position values displayed by SHOW MASTER STATUS or mysqldump --master-data will be empty. In that case, the values that you need to use later when specifying the slave's log file and position are the empty string ('') and 4.

Switch to the first Terminal session and enter the following commands:

mysql> unlock tables;
mysql> exit;

to release the lock and then exit the MySQL session. The master MySQL instance is now available for use again and while it runs, the bin-log position will of course change. Therefore, do not wait too long with setting up the slave.

4- Slave(s) Server(s) Setup

With the master configured and its bin-log position noted, it is time to configure and start the slave instance(s). Read here for a way to setup multiple MySQL instances on one server. If you do this, and I did, then the setup below is the same for both instances, apart from the mysql folder and port number. I have my second instance running: /private/var/mysql2 and port 3307.

Transfer Initial Data

First we make an exact copy of the master's databases we want to replicate onto the slave, so both master and slave initially have the same data.

Transfer the master's databases you want to replicate to the slave instance.
You can do this in various ways:

  1. Using mysqldump and zip + ftp
  2. Zip the database itself + ftp (you might need to repair the tables after unzipping)
  3. Use Navicat (not good for tables with millions of records or blob data)

I used option 2, like this, in Terminal:

$ cd /private/var/mysql
$ sudo zip -r ~/downloads/[database].zip [database]

Do this for each database that you want replicated. Then FTP all zip's to the slave server, also in your downloads folder for example.

Start a remote desktop or SSH session with the remote server and there, in Terminal, enter the following commands:

$ cd /private/var/mysql
$ sudo unzip ~/downloads/[database].zip
$ sudo chown -R _mysql:admin [database]

For the above chown, check first with ls -l if _mysql:admin are the right owners. Then do this for each unzipped database.

Next, start Navicat and now you should see your new databases in the slave-connection. If not, you probably forgot to either do a Refresh Connection or the chown-command.

If you can access the tables and view data, good! If not, right click the table and choose Maintain->Repair Table->Quick or ->Extended and then try again.

Configure MySQL

If not still open, start a remote desktop session with the slave server and start MySQL Workbench there. Click Manage Security in the bottom right corner:



and from the popup-window, select the server instance you are going to use as the slave, which is probably localhost:



Click Options File under the Configuration-section in the side bar.


Logging

Select the Log Files-pane. Switch on the option log-bin by entering a name for the binary log, for example, mysql-bin.

Scroll to Advanced log options and set expire_logs_days to 7.

Replication settings

Select the Replication-pane.

As with the master instance, here too you need to set a unique server ID. Check the option server-id and enter a unique number. I set it to 11.

In General slave, switch log-slave-updates on and set slave_transaction_retries to 10.

In Slave replication objects, switch on replicate-do-db and enter all database names you want replicated, separated by a semicolon and no spaces before or after the semicolon! And no semicolon after the last entry. For example, customers;orders;orderlines

In Slave Identification, switch report-host on and enter the IP-address or the hostname of the slave. I prefer to use IP-addresses because then you do not have to worry about slow or unreachable DNS-servers, which, in my experience, quite often happens inside corporate networks. If your slave instance runs on a non-standard port, switch on report-port and enter the port number the slave listens to. I chose to specify 3306 explicitly, instead of relying on the defaults.

And last, in Relay Log, switch on relay_log_purge.

Save the settings, quit the MySQL Workbench, open a Terminal session and log into a MySQL slave-instance with the following command:

$ mysql -u root -p --protocol=TCP [--port=port of another instance]

Enter the following commands, but replace the text in italics with the obtained from the master:

$ change master to
master_host='<IP-address or domain name>',
master_user='replicator',
master_password='<password>',
master_port=3306,
master_log_file='<binary log file name>',
master_log_pos=<position>;


Replace
<binary log file name> and <position> with the values obtained while setting up the master.

When you get a
Query ok message, you're good. If not, make sure there's a working connection between the two servers.

If you previously have configured an instance as a slave (for testing purposes, for example) and are reconfiguring the instance, edit the files master.info and relay-log.info and enter the correct data:

$ cd /private/var/mysql
$ sudo vi master.info
14
mysql-bin.000162
391030594
192.168.1.200
replicator
password
3306
60
0







$ sudo vi relay-log.info
./FCSPR1-relay-bin.000038
4136037
mysql-bin.000162
391030594
4

$


Do not remove those empty lines inside these files!

Ready, Set, Go!

If the master is not already running normally, now is the time to release all locks and start it. Then, switch to the slave-server, start a Terminal session, log into MySQL and start the slave:

mysql> start slave;

The replication should now work. Check this by using the command:

mysql> show slave status \G;


 

If "Slave_IO_Running" and "SLAVE_SQL_Running" say Yes, then you are OK.

If you need to edit any settings in the slave's configuration at a later moment, make sure you stop your replication process first by using the command:

mysql> stop slave;

Tested: the setup even survives a
sudo reboot -q on the master server. After that, you can follow the Seconds_Behind_Master counting down.

jueves, 11 de octubre de 2012

Configuración de un mensaje de respuesta automática para cuando me vaya de vacaciones o esten fuera de oficina en Google

correo.png

Utiliza la función de respuesta automática de tu correo para informar a los demás de que no podrás responder de inmediato.

Puedes configurar una respuesta automática en la configuración de tu correo de forma que se emita una respuesta automática a cualquiera que te envíe un mensaje. Mientras esta función esté habilitada, tu correo enviará una respuesta a cualquiera que se ponga en contacto contigo.* Si la misma persona vuelve a enviarte un mensaje al cabo de cuatro días y la función sigue habilitada, se enviará otro mensaje automáticamente para recordarle que sigues ausente.

A continuación, te indicamos cómo puedes informar a los demás de que no puedes responder de inmediato:

  1. Accede a tu correo.
  2. Haz clic en el icono de la rueda dentada en la parte superior derecha y, a continuación, selecciona Configuración del correo.
  3. En la pestaña General, selecciona Respuesta automática habilitada en la sección Respuesta automática:
  4. Escribe el texto que proceda en los campos Asunto: y Mensaje: del correo.
    • Si has habilitado una firma personalizada en la configuración de tu cuenta  la incluirá automáticamente al final del mensaje de respuesta automática.
  5. Marca la casilla situada junto a Enviar una respuesta solo a mis contactos si no quieres que todos los que te envían correos electrónicos sepan que te encuentras ausente.
  6. Haz clic en Guardar cambios.

Respuesta_automatica_vacaciones.png

Mientras esta función esté habilitada, aparecerá un banner en la parte superior de cualquier página del correo con el asunto de tu respuesta automática. Para que Gmail deje de enviar la respuesta automáticamente, haz clic en Finalizar ahora, dentro del banner. También puedes editar la respuesta si lo deseas; para ello, haz clic en Configuración de vacaciones.

  • Ten en cuenta que la respuesta automática se iniciará de nuevo cada vez que la edites. Si un usuario recibe la respuesta inicial y vuelve a enviarte un correo electrónico después de que hayas editado el asunto o el cuerpo del mensaje, dicho usuario también recibirá la respuesta editada.

Cambiar tamaño de fuente al reducir la ventana (HTML / CSS)

Cambiar el tamaño del texto a medida que se reduce el tamaño de la ventana (HTML5 / CSS3)   . container { border : solid 1px blue ; ...