elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.


Tema destacado: Trabajando con las ramas de git (tercera parte)


  Mostrar Mensajes
Páginas: 1 ... 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 [97] 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 ... 236
961  Programación / Desarrollo Web / Re: [Pregunta]: ¿Cómo puedo insertar un <script> en esta parte? en: 14 Octubre 2020, 23:23 pm
Según veo el slash / está reservado para Expresiones Regulares, que raro :xD, pero bueno, hay que escaparlo ( \/ ):

Código
  1. <script src="https://code.jquery.com/jquery-3.1.0.js"></script>
  2. <body></body>
  3. <script>
  4.  $('body').html('<script>document.write("hola")<\/script>');
  5. </script>
962  Programación / Desarrollo Web / Re: [Pregunta]: ¿Cómo puedo insertar un <script> en esta parte? en: 14 Octubre 2020, 21:57 pm
Ya estás usando las comillas simples, así que en tu "html" a insertar usa comillas dobles:

Código
  1. $('#div_cualquiera').html('<p>este parrafo</p><script>alert("aquel parrafo");</script>');
963  Sistemas Operativos / Windows / Re: Eliminar Microsoft edge definitivamente en: 14 Octubre 2020, 20:26 pm
Al parecer no está el Setup.exe donde debe estar, quizá porque tu instalación de Edge se dañó con tanto has hecho XD. Revisa manualmente esa carpeta, haber si está o no el setup.exe, si no está tienes que reinstalar Edge: https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/53a5f508-44da-4f9d-85d9-312fb8f92f4b/MicrosoftEdgeEnterpriseX64.msi

Si aún tienes problemas, simplemente elimina la carpeta de Edge y ya XD
964  Programación / Programación C/C++ / Re: ayuda!!!!!!!!!! problema con String y la sentencia if en c en: 14 Octubre 2020, 20:20 pm
El problemas está en como obtienes un número par o impar. Si el residuo de la división entre un número y 2 sale 0 es que es par, caso contrario es impar, para esto se usa el operador módulo (%):

Código
  1. numero1 % 2 == 0; // True si es par, False si es impar

También debes usar strcmp o similar para comparar texto, le he puesto un ! delante porque strcmp devuelve 0 si la comparación es Igual, como 0 es considerado False, le pongo el Operador de Negación para pasarlo a Verdadero:

Código
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int main(int argc, char *argv[]) {
  6.  
  7.   int numero1, numero2;
  8.   char eleccion[30];
  9.  
  10.   printf("Introduzca el primer digito:\n");
  11.   scanf("%i", &numero1 );
  12.  
  13.   printf("Introduzca el segundo digito:\n");
  14.   scanf("%i", &numero2 );
  15.  
  16.   printf("Introduzca elija el formato a presentar\n");
  17.   printf("Par [p]  ||  impar [i]\n");
  18.   fflush(stdin);
  19.   scanf("%s", &eleccion );
  20.  
  21.   if ( !strcmp(eleccion, "p") && (numero1 % 2 == 0) ) {
  22.     printf("Par: [ %i ]", numero1);
  23.   }
  24.   if ( !strcmp(eleccion, "p") && (numero2 % 2 == 0) ) {
  25.     printf("Par: [ %i ]", numero2);
  26.   }
  27.   if ( !strcmp(eleccion, "i") && (numero1 % 2 != 0) ) {
  28.     printf("impar: [ %i ]", numero1);
  29.   }
  30.   if ( !strcmp(eleccion, "i") && (numero2 % 2 != 0) ) {
  31.      printf("impar: [ %i ]",numero2);
  32.   }
  33.  
  34.   getchar(); // Para pausar la pantalla al final
  35.   return 0;
  36. }

De momento queda así, sin tanto cambio para que lo entiendas, pero siempre se puede optimizar el código ...
965  Sistemas Operativos / Windows / Re: Eliminar Microsoft edge definitivamente en: 14 Octubre 2020, 06:24 am
 :o tienes que copiar las dos líneas a la vez o ejecutar una primero y luego la otra pero en la misma ventana, la segunda línea depende de la primera.
966  Foros Generales / Dudas Generales / Re: ¿Dónde subo un .doc visible sin descargarlo ni registrarse? en: 13 Octubre 2020, 19:12 pm
Supongo que el problema está en que no quieres registrarte. Drive es una buena opción pero ahí dice bien claro en Nombre y Correo del dueño del archivo XD. Yandex Disk solo muestra el nombre, pero igual requiere registro ...

Sería cosa de ir probando varios servicios haber cual cumple con: Subida anónima y que permita visualizar un Word, pero lo veo difícil de hallar.

Lo que si acabo e ver es este: https://anonymousfiles.io/xoC2Jm6J/ lo malo es que solo soporta PDF y tiene publicad intrusiva, para estas pruebas yo desactivo mi uBlock Origin (bloqueador de anuncios), mi Internet Download Manager (descarga automáticamente los PDF), y uso el modo incógnito.
967  Programación / Scripting / Re: Leer txts de carpeta reemplazar puntos por comas en: 13 Octubre 2020, 07:08 am
Código
  1. ' El siguiente Script reemplaza todos los "." por "," en
  2. ' todos los archivos con la extension ".txt" en la carpeta actual
  3.  
  4. Set fso = CreateObject("Scripting.FileSystemObject")
  5.  
  6. For Each f In fso.GetFolder(".").Files
  7.  If InStr(f, ".txt") Then
  8.    txt = fso.OpenTextFile(f).ReadAll
  9.    txt = Replace(txt, ".", ",")
  10.    fso.OpenTextFile(f, 2).Write txt
  11.  End If
  12. Next

Ya lo adaptas a tu estilo.

Windows Script 5.6 Documentation:
https://raw.githubusercontent.com/pmachapman/VBSE/master/Distribution/script56.chm
968  Programación / Scripting / Re: Curso python en: 13 Octubre 2020, 05:48 am
Hay un curso de Hacking con Python, aquí la lista original en HD:

https://thehackerway.com/2014/02/04/hacking-con-python-parte-1-banner-grabbing/
https://thehackerway.com/2014/02/11/hacking-con-python-parte-2-reconocimiento-de-maquinas-en-el-entorno-de-red/
https://thehackerway.com/2014/02/18/hacking-con-python-parte-3-dnspython-para-consultar-servidores-dns/
https://thehackerway.com/2014/02/25/hacking-con-python-parte-4-enumeracion-de-usuarios-smtp/
https://thehackerway.com/2014/03/04/hacking-con-python-parte-5-conceptos-basicos-sobre-scapy/
https://thehackerway.com/2014/03/11/hacking-con-python-parte-6-arp-poisoning-mitm-y-dnsspoofing-con-scapy/
https://thehackerway.com/2014/03/18/hacking-con-python-parte-7-manipulacion-de-peticiones-http/
https://thehackerway.com/2014/03/25/hacking-con-python-parte-8-web-scraping-con-beautifulsoup/
https://thehackerway.com/2014/04/01/hacking-con-python-parte-9-web-crawling-con-scrapy/
https://thehackerway.com/2014/04/08/hacking-con-python-parte-10-mechanize-para-interactuar-con-aplicaciones-web/
https://thehackerway.com/2014/04/15/hacking-con-python-parte-11-desarrollo-de-un-crawler/
https://thehackerway.com/2014/04/22/hacking-con-python-parte-12-usando-urllib3-y-requests/
https://thehackerway.com/2014/04/29/hacking-con-python-parte-13-mecanismos-de-autenticacion-en-protocolo-http/
https://thehackerway.com/2014/05/06/hacking-con-python-parte-14-utilizando-nmap-desde-python/
https://thehackerway.com/2014/05/06/hacking-con-python-parte-14-utilizando-nmap-desde-python/
https://thehackerway.com/2014/05/20/hacking-con-python-parte-16-twitter-desde-python-utilizando-el-protocolo-oauth/
https://thehackerway.com/2014/05/27/hacking-con-python-parte-17-fuzzdb-y-pywebfuzz/
https://thehackerway.com/2014/06/03/hacking-con-python-parte-18-modulo-ftplib-para-acceder-a-servidores-ftp/
https://thehackerway.com/2014/06/10/hacking-con-python-parte-19-automatizacion-con-pexpect/
https://thehackerway.com/2014/06/17/hacking-con-python-parte-20-controlando-servidores-ssh-con-paramiko/
https://thehackerway.com/2014/06/24/hacking-con-python-parte-21-automatizacion-con-plumbum/
https://thehackerway.com/2014/07/01/hacking-con-python-parte-22-caracteristicas-avanzadas-de-plumbum/
https://thehackerway.com/2014/07/08/hacking-con-python-parte-23-controlando-instancias-de-tor-con-stem/
https://thehackerway.com/2014/07/15/hacking-con-python-parte-24-consulta-de-descriptores-de-tor-con-stem/
https://thehackerway.com/2014/07/22/hacking-con-python-parte-25-atacando-repetidores-de-salida-de-tor/
https://thehackerway.com/2014/07/29/hacking-con-python-parte-26-introduccion-a-twisted/
https://thehackerway.com/2014/08/05/hacking-con-python-parte-27-construyendo-clientes-y-servidores-con-twisted/
https://thehackerway.com/2014/08/12/hacking-con-python-parte-28-introduccion-a-pydbg/
https://thehackerway.com/2014/08/19/hacking-con-python-parte-29-scripting-en-inmmunity-debugger-pycommands/
https://thehackerway.com/2014/08/26/hacking-con-python-parte-30-scripting-en-inmmunity-debugger-pyhooks/
https://thehackerway.com/2014/09/02/hacking-con-python-parte-31-examinando-programas-y-librerias-con-pefile-y-pydasm-2/
https://thehackerway.com/2014/09/09/hacking-con-python-parte-32-uso-de-fabric-para-crear-botnets-sobre-servicios-ssh/
https://thehackerway.com/2014/09/16/hacking-con-python-parte-33-peticiones-http-contra-tor-utilizando-requests-y-requesocks/
https://thehackerway.com/2014/09/30/hacking-con-python-parte-34-examinando-servicios-snmp-con-pysnmp/

Y aquí la lista en YouTube (tiene menos calidad visual, menor resolución):
Lista YouTube:
https://www.youtube.com/playlist?list=PLbMc9DOHlK9xm2DQmDc3qS7yc2x1kZ_Qu
969  Informática / Hardware / Re: ¿Puedo seguir usando este ventilador? (cable desgastado) en: 12 Octubre 2020, 04:23 am
He pedido a un MOD que redimensione tus imágenes, lo máximo permitido es 800x600 si no recuerdo mal.....
Podrías hacerlo tu?
Así evitamos que un MOD tenga que editar tu post.

Saludos.

De una deberían de poner ese ajuste en el mismo foro, un max-width: 800px para las imágenes posteadas :xD
970  Informática / Hardware / Re: ¿Puedo seguir usando este ventilador? (cable desgastado) en: 12 Octubre 2020, 01:25 am
Compra otro ventilador, los económicos no pasa de los 5 dólares, yo no me arriesgaría a colocar esos, porque de seguro se quemaron porque esta en corto el motorsito del ventilador o conectaron ambos conectores a la vez XD.

Es de esos ventiladores que se atornillan a la carcasa verdad? Solo se tiene que conectar un solo conector, y de preferencia a la Fuente de Poder y no a la Placa Madre, salvo que quieras usar el controlador de temperatura que da la Placa Madre, pero solo un conector a la vez.
Páginas: 1 ... 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 [97] 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 ... 236
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines