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

 

 


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


  Mostrar Temas
Páginas: 1 2 3 [4] 5 6 7 8 9 10 11 12
31  Programación / Desarrollo Web / mvc con nodejs en: 8 Septiembre 2016, 17:47 pm
tengo dudas al implementar mvc con nodejs, no encontre mucha informacion

miren tengo mi ajax
Código
  1.  
  2. <html>
  3. <head>
  4. <title>jsonp test</title>
  5. <script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
  6. <script type="text/javascript">
  7.            $(function(){
  8.                $('#select_link').click(function(e){
  9.                    e.preventDefault();
  10.                    console.log('select_link clicked');
  11.  
  12.                     /*$.ajax({
  13.                         dataType: 'jsonp',
  14.                         data: "data=yeah",
  15.                         jsonp: 'callback',
  16.                         url: 'http://localhost:3000/endpoint?callback=?',
  17.                         success: function(data) {
  18.                             console.log('success');
  19.                             console.log(JSON.stringify(data));
  20.                         }
  21.                     });*/
  22. var data = {};
  23. data.title = "title";
  24. data.message = "message";
  25.  
  26. $.ajax({
  27. type: 'POST',
  28. data: JSON.stringify(data),
  29.        contentType: 'application/json',
  30.                        url: 'http://localhost:3000/endpoint',
  31.                        success: function(data) {
  32.                            console.log('success');
  33.                            console.log(JSON.stringify(data));
  34.                        }
  35.                    });
  36. /*$.ajax('http://localhost:3000/endpoint', {
  37.        type: 'POST',
  38.        data: JSON.stringify(data),
  39.        contentType: 'application/json',
  40.        success: function() { console.log('success');},
  41.        error  : function() { console.log('error');}
  42. });*/
  43.                });
  44.            });
  45.        </script>
  46.    </head>
  47.    <body>
  48.        <div id="select_div"><a href="#" id="select_link">Test</a></div>    
  49.    </body>
  50. </html>

el cual envio mediante post, ahora les muestro el server.js


Código
  1. var express = require('express');
  2. var app = express.createServer();
  3.  
  4. app.use(express.bodyParser());
  5.  
  6.  
  7. app.post('/endpoint', function(req, res){
  8. var obj = {};
  9. console.log('body: ' + JSON.stringify(req.body));
  10.  
  11. //como hago para mandar datos desde ajax a algun modelo???
  12.  
  13. });

me pueden dar algun ejemplo ? quiero trabajar con los datos obtenidos de ajax en algun modelo y luego mostrar el resultado, ayuda porfavor
32  Programación / Desarrollo Web / en que directorio de xampp pongo los .dll en: 6 Septiembre 2016, 21:02 pm
tengo una libreria de libsvm la cual tiene un precompilado .dll, no se en que directorio ponerlo y que archivo luego modificarlo.

uso windows

hola, el .dll de la libreria que tengo lo puse en esta direccion C:\xampp\php\ext y aun sin reconocerlo, y luego modifique el archivo php.ini agregando una linea  con lo siguiente extension=libsvm.dll

y sigue sin funcionar

que mas tengo que hacer para que pueda usar la libreria?
o lo hice todo mal?

puse esto en php.ini   y   aun no reconoce la libreria

extension=libsvm.dll

MOD EDIT: No hacer doble post.
33  Programación / Desarrollo Web / instalar svm en windows + xamp en: 5 Septiembre 2016, 22:43 pm
me ayudan a instalar svm en xampp?  encontre informacion de instalacion de svm pero no usa xampp de esta pagina
https://github.com/ianbarber/php-svm

Citar
INSTALLING ON WINDOWS

A prebuilt win32 DLL is available from http://phpir.com/svm

The extension builds properly on Windows, if following the Windows step by step build process: https://wiki.php.net/internals/windows/stepbystepbuild

Put SVM source in pecl/svm in php53dev directory
Download latest libsvm, rename Makefile to Makefile.old and Makefile.win to Makefile - nmake
Copy libsvm.lib from libsvm windows directory, and into deps/libs
Copy svm.h into includes/libsvm/
buildconf
configure --disable-all --enable-cli --with-svm=shared
nmake

Make sure the libsvm.dll file from the libsvm windows directory in the path when running the resulting lib.


esta parte no entiendo

Código:
Copy svm.h into includes/libsvm/
buildconf
configure --disable-all --enable-cli --with-svm=shared
nmake

alguien me podria ayudar?

una ayudita porfavor

MOD EDIT: No hacer doble post.
34  Programación / Desarrollo Web / ejecutar proyecto de github en: 5 Septiembre 2016, 05:27 am
hola en esta ocasion les pido ayuda para hacer correr este proyecto de github https://github.com/nicolaspanel/node-svm/tree/master/examples

soy nuevo con node.js

quisiera saber si utilizo algun framework? como darme cuenta si utilizo algun frame o no?
alguien que me pueda ayudar a ejecutar los ejemplos porfavor.
35  Foros Generales / Foro Libre / alguna pagina de torrent de peliculas? en: 4 Septiembre 2016, 20:55 pm
quisiera descargar peliculas, me recomiendan alguna pagina?
36  Programación / .NET (C#, VB.NET, ASP) / cl.exe no esta instalado en visual studio en: 4 Septiembre 2016, 19:34 pm
instale visual studio pero dice que falta cl.exe ahora que hago ?
 lo instalo por aparte?
reinstaldo visual studio?

que pereza con esto no se que hacer, ayuda!!!
37  Foros Generales / Foro Libre / metodo de ondas subliminales para aprender ingles en: 4 Septiembre 2016, 19:25 pm
alguien probo este metodo? funcionara?
https://www.youtube.com/watch?v=7WVxTuerYRg
38  Foros Generales / Dudas Generales / alguien sabe svm? en: 4 Septiembre 2016, 17:11 pm
alquien sabe svm para que me pueda guiar? tengo muchas dudas para implementar svm !!!
39  Programación / Scripting / ayuda a comentar codigo python en: 3 Septiembre 2016, 22:41 pm
este codigo es de github https://github.com/overxfl0w/Typing-Recognition se trata de identificacion por dinamica de tecleo y me gustaria comentarlo para poder entender mejor, en especial la funcion _nErrors
Código
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import win32api
  5. import win32con
  6. import sys
  7. import time
  8. import pickle
  9.  
  10. def _clear():
  11.    for i in xrange(30): print "\n"
  12.  
  13. def _nErrors(a,b,B,I,S):
  14. V = {}
  15. V[0,0] = 0
  16. for i in xrange(1,len(b)+1): V[0,i] = i
  17. for i in xrange(1,len(a)+1): V[i,0] = i
  18. for i in xrange(1,len(a)+1):
  19. for j in xrange(1,len(b)+1):
  20. V[i,j] = min(V[i-1,j]+B(a,i-1),V[i,j-1]+I(b,j-1),V[i-1,j-1]+S(a,i-1,b,j-1))
  21. return V[len(a),len(b)]
  22.  
  23. def _generateSample():
  24.    _clear()
  25.    print u"Teclea: El veloz 1 murcielago hindu 2 comia feliz cardillo 3 y kiwi 5. La cigueña tocaba el 6 saxofon 1 detras del palenque 9 de paja. - Escrutinio 1337"
  26.    m,sentence,times,l,replace,it,et,p       = 0,[],[],0,{190:46,188:44,189:45,192:241},0,0,0
  27.    gs = u"El veloz 1 murcielago hindu 2 comia feliz cardillo 3 y kiwi 5. La cigueña tocaba el 6 saxofon 1 detras del palenque 9 de paja. - Escrutinio 1337"
  28.    es = ""
  29.    ls = len(gs)
  30.    while True and l!=ls:
  31. for i in xrange(256):
  32.    k = win32api.GetAsyncKeyState(i)
  33.    if k==-32767:
  34. if i==16 or i==160: m=1
  35. elif i>=65 and i<=90:
  36.    if m==1: sentence.append(unichr(i))
  37.    else:    sentence.append(unichr(i+32))
  38.    et = time.clock()
  39.    times.append(et-it)
  40.    m,l,it = 0,l+1,et
  41. else:
  42.    if i==8 and len(sentence)>0 and len(times)>0: sentence = sentence[:-1] ; l = max(l-1,0) ; times = times[:-1]
  43.    else:
  44. if i!=1 and i!=13:
  45.    sentence.append(unichr(i) if i not in replace else unichr(replace[i]))
  46.    et = time.clock()
  47.    times.append(et-it)
  48.    l,it = l+1,et
  49. _clear()
  50. print gs
  51. sys.stdout.write("".join(sentence))
  52. sys.stdout.flush()
  53.    es = "".join(sentence)
  54.    nErrors = _nErrors(gs,es,lambda x,i:1,lambda x,i:1,lambda x,i,y,j: 0 if x[i]==y[j] else 1)
  55.    v = times+[nErrors]
  56.    return v
  57.  
  58. if __name__ == "__main__":
  59.    if len(sys.argv)>1:
  60. v = _generateSample()
  61. with open(sys.argv[1],"wb") as fd: pickle.dump(v,fd)
  62.    else: print "Especifica el nombre del fichero para almacenar el patron"
  63.  
  64.  
40  Foros Generales / Sugerencias y dudas sobre el Foro / hoy miercoles 01 09 2016, el foro fue atacado ? en: 2 Septiembre 2016, 03:57 am
por que el foro esta desconfigurado???
Páginas: 1 2 3 [4] 5 6 7 8 9 10 11 12
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines