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

 

 


Tema destacado: Como proteger una cartera - billetera de Bitcoin


  Mostrar Mensajes
Páginas: 1 ... 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 [66] 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 ... 135
651  Programación / Desarrollo Web / Re: Aplicación google chrome en: 26 Noviembre 2013, 09:47 am
No toque nunca este tema, pero igual queria aportar algo.

Si visitamos el sitio www.google.co.in se injectara el archivo myscript.js, donde generarà un boton.

manifest.json
Citar
{
"name":"Inject DOM",
"description":"http://stackoverflow.com/questions/14068879",
"version":"1",
"manifest_version":2,
"content_scripts": [
    {
      "matches": ["http://www.google.co.in/*","[url]https://www.google.co.in/*"],[/url]
      "js": ["myscript.js"]
    }
  ]
}

myscript.js
Código
  1. // Checking page title
  2. if (document.title.indexOf("Google") != -1) {
  3.    //Creating Elements
  4.    var btn = document.createElement("BUTTON")
  5.    var t = document.createTextNode("CLICK ME");
  6.    btn.appendChild(t);
  7.    //Appending to DOM
  8.    document.body.appendChild(btn);
  9. }
  10.  

Fuente: http://stackoverflow.com/a/14069119

Te recomiendo que visites los enlaces que proporciona el usuario, tambien leer sobre modificar DOM con javascript y ademas...

Crear nuestra primera extensión: https://developer.chrome.com/extensions/getstarted.html
Uso del patron para URLs: https://developer.chrome.com/extensions/match_patterns.html

652  Foros Generales / Foro Libre / Re: DonVidela Detenido ???... en: 26 Noviembre 2013, 03:20 am
Che, si esta en la carcel como es que se ha conectado hace unos minutos ? xD

https://foro.elhacker.net/profiles/donvidela-u168533.html
Última vez activo:   Hoy a las 01:14

Me gustaria pensar que lo hizo como en el final de la pelicula The Prestige.
lol
653  Programación / Desarrollo Web / Re: Ver video analógico en Web en: 23 Noviembre 2013, 00:25 am
Si con vlc creo que es mas comun pero con HTML5 tambien podes, el problema no es soportado aun por todos los navegadores(aùn) o tiene errores. Nunca lo intente, pero aca te dejo para leer, no existe actualmente mucha info...

http://www.streamingmedia.com/Articles/Editorial/Featured-Articles/25-HTML5-Video-Resources-You-Might-Have-Missed-74010.aspx

http://phoboslab.org/log/2013/09/html5-live-video-streaming-via-websockets

Sobre streaming con vlc..

Citar
   Use an encoder (e.g. VLC or FFmpeg) into packetize your input stream to OGG format. For example, in this case I used VLC to packetize screen capture device with this code:

Citar
C:\Program Files\VideoLAN\VLC\vlc.exe -I dummy screen:// :screen-fps=16.000000 :screen-caching=100 :sout=#transcode{vcodec=theo,vb=800,scale=1,width=600,height=480,acodec=mp3}:http{mux=ogg,dst=127.0.0.1:8080/desktop.ogg} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep

    Embed this code into a <video> tag in your HTML page like that:

Citar
 <video id="video" src="http://localhost:8080/desktop.ogg" autoplay="autoplay" />

This should do the trick. However it's kind of poor performance and AFAIK MP4 container type should have a better support among browsers than OGG.

Fuente: http://stackoverflow.com/questions/5858936/html5-live-streaming#answer-14836031

Utilizando Flash.
 http://www.onyxservers.com/help/flash_media_encoder_streaming_guide.html
654  Programación / PHP / Re: Decodificar archivos PHP por Ioncube? en: 22 Noviembre 2013, 23:42 pm
Buscaste source por pastebin? hay algunas clases hechas pero no las probe. Existe un foro si te interesa te lo paso por privado.
655  Programación / Desarrollo Web / Re: hoja de vida en html 4 en: 22 Noviembre 2013, 23:33 pm
Creo que a esta practica se le llama CV-Template.

http://www.modelocurriculum.net/modelos-y-plantillas-de-curriculum-vitae
656  Programación / Desarrollo Web / Re: Ver video analógico en Web en: 22 Noviembre 2013, 23:24 pm
Si... html5 o flash, yo preferiria html5, facil y los navegadores lo soportan.

http://caniuse.com/#feat=video

Citar
2. Formatos de vídeo

El concepto de formato de vídeo se puede entender como un archivo zip que contiene secuencias de vídeo y secuencias de audio. Los tres formatos que se deben tener en cuenta para la Web son WebM, MP4 y OGV:

    .mp4 = H.264 + AAC
    .ogg/.ogv = Theora + Vorbis
    .webm = VP8 + Vorbis

4. Codificación de los vídeos

Si necesitas codificar tus vídeos en los formatos mencionados en la sección anterior, puedes utilizar el conversor Miro Video Converter para Windows y Mac para conseguir fácilmente el formato que necesites. El programa no permite hacer muchos cambios de configuración, pero ofrece los formatos más comunes de la Web, incluidos los tres formatos utilizados en este tutorial.

Fuente: http://www.html5rocks.com/es/tutorials/video/basics/
657  Programación / Desarrollo Web / Re: websocket y jquery en: 18 Noviembre 2013, 11:42 am
Cambia la funcion en la linea 21 por esta    

Código:
function send_msg(msg){ 	
           log('Sent: '+msg); socket.send(msg);
           localStorage.lastresponse = msg;
}

Se le asigna como ultima respuesta el mensaje a enviar.

Solo estas copiando lo que estas por enviar, no la respuesta del servidor.Este servidor websocket solo devuelve lo que envies, no encontre otro por hay  :rolleyes:.
Por ahora provisoriamente hago que se ejecute el alert, en 5s y funciona...
Código
  1. //linea 27
  2. setTimeout('alert(localStorage.lastresponse)',5000);
  3.  

Lo que realmente quiero es que al enviarse una peticion al servidor wb, espere a que obtenga una respuesta y despues llamar la funcion que deba llamar, supongo que utilizando un callback deberia funcionar? pero estoy perdido en donde.

Edito
Bueno por fin le encontre la vuelta... de la siguiente manera.

Código
  1. function init(){
  2. var host = "ws://echo.websocket.org";
  3.  
  4. socket = new WebSocket(host);
  5. socket.onopen    = function(msg){log("Welcome - status "+this.readyState); };
  6. socket.onclose   = function(msg){log("Disconnected - status "+this.readyState); };
  7. }
  8.  
  9. function log(msg){var log = document.getElementById("log"); log.innerHTML+="<br>"+msg; log.scrollTop = log.scrollHeight;}
  10.  
  11. function send_msg(msg, callback){
  12. //Wait until server response
  13.  
  14. socket.send(msg);
  15. log('Sent: '+msg);
  16. socket.onmessage = function(got){
  17. log("Received: "+got.data);
  18. callback(got.data);
  19. };
  20. }
  21.  
  22. $(document).ready(function(){
  23. $('.boton').on('click', function () {
  24. $('.map').unbind().on('click', function (e) {
  25.  
  26. send_msg('Rock it with HTML5 WebSocket', function(lastresponse){
  27. alert(lastresponse);
  28. });
  29.  
  30. e.stopPropagation();
  31. });
  32. });
  33. });
  34.  
658  Programación / PHP / Re: Dudas variables predefinidas en: 16 Noviembre 2013, 20:31 pm
De la siguiente manera..

Código
  1. <?php
  2. ?>
  3.  

En Loaded Configuration File vas a ver la ubicacion de php.ini.
Algo mas para leer..
http://php.net/manual/es/tutorial.useful.php
http://www.php.net/manual/es/language.variables.superglobals.php
659  Programación / PHP / Re: Anadir un contador de descargas a un script php listador de archivos. en: 16 Noviembre 2013, 19:50 pm
Veloz46, creo que no lo aclare pero en el repositorio del autor del blog(el enlace a github) el ya comparte el codigo con la modificacion para ver el contador de descargas... podes descargar el codigo en la parte derecha 'Download Zip'.

https://github.com/Obihoernchen/DirectoryLister/archive/master.zip
660  Programación / Desarrollo Web / Re: Simular enter en: 16 Noviembre 2013, 19:40 pm
Mira este ejemplo...

Código
  1. <head>
  2. </head>
  3. <body>
  4. <input id="foo" />
  5.  
  6. <script type="text/javascript">
  7. document.getElementById('foo').onkeypress = function(e){
  8. if (!e) e = window.event;
  9. var keyCode = e.keyCode || e.which;
  10. if (keyCode == '13'){
  11. // Enter pressed
  12. alert(this.value);
  13. return false;
  14. }
  15. }
  16. </script>
  17. </body>
  18. </html>
  19.  

http://stackoverflow.com/questions/11365632/how-to-detect-when-use-press-enter-in-input-field
Demo: http://jsbin.com/aligus/2
Páginas: 1 ... 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 [66] 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 ... 135
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines