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 ... 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 [57] 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 ... 137
561  Programación / Programación Visual Basic / Re: Saber cuando termino de cargar la pagina - Control Webbrowser. en: 13 Marzo 2012, 13:24 pm
HOLA!!!

Eventos

Código
  1. Private Sub WebBrowser1_DownloadBegin()
  2. ct = ct+1
  3. End Sub
  4.  
  5. Private Sub WebBrowser1_DownloadComplete()
  6. ct = ct-1
  7. if ct = 0 then finish
  8. End Sub

GRACIAS POR LEER!!!
562  Programación / Programación Visual Basic / Re: ¿Números aleatorios sin repetición? en: 2 Marzo 2012, 16:02 pm
HOLA!!!

En el mundo de las computadoras no existe lo aleatorio...

Todas las funciones aleatorias funcionan con una raiz o semilla un numero base con el cual calculas el resto.

Eso del desplazamiento de bits aleatorio no tiene sentido ya que para hacer esa funciona aleatoria dependerias de la funcion rnd que estas utilizando actualmente por ende es codigo sin sentido.

No se si te fui util o no, mucho no me interesa pero solo queria aclarar eso.

P.D: hay una manera de conseguir numeros aleatorios...
Se necesita un periferico que capte por ejemplo la velocidad del viento (sera aleatoria aunque progresiva y escalada) y ese numero combinado con la fecha y hora actual se usa como semilla para la funcion.

GRACIAS POR LEER!!!
563  Programación / Programación Visual Basic / Re: calcular numero mayor de 4 valores en: 24 Febrero 2012, 18:04 pm
HOLA!!!

Alternativa 3, aprovechando la función de @79137913  ;-):

Código
  1. Private Function MaxInArr(a() As Long) As Long
  2.  
  3. Dim max As Long
  4.  
  5.    max=a(0)
  6.  
  7.    For x = 1 To UBound(a)
  8.        If a(x) >max Then Max = a(x)
  9.   Next
  10.  
  11.  MaxInarr=max
  12.  
  13. End Function
  14.  



Saludos.

Que le hiciste?
· Le quitaste el soporte para arrays irregulares (Lbound)
· Usas memoria sin sentido (variable max)

GRACIAS POR LEER!!!
564  Programación / Programación Visual Basic / Re: calcular numero mayor de 4 valores en: 24 Febrero 2012, 14:17 pm
HOLA!!!

Te dejo una alternativa y una funcionque saca el mayor de un array de x items:

Código
  1. Private Function max4(a As Long, b As Long, c As Long, d As Long) As Long
  2. Dim m1 As Long: Dim m2 As Long
  3.    If a > b Then m1 = a Else m1 = b
  4.    If c > d Then m2 = c Else m2 = d
  5.    If m1 > m2 Then max4 = m1 Else max4 = m2
  6. End Function
  7.  
  8. Private Function MaxInArr(a() As Long) As Long
  9.    For x = LBound(a) To UBound(a)
  10.        If a(x) > MaxInArr Then MaxInArr = a(x)
  11.    Next
  12. End Function
  13.  

GRACIAS POR LEER!!!
565  Programación / Programación Visual Basic / Re: [Source] The Golden Bug (Análisis de Frecuencia) en: 22 Febrero 2012, 14:34 pm
HOLA!!!

@chance_gardiner:
Yo creo que habria que analizar mas de cerca LA FECHA DE LA ULTIMA RESPUESTA DEL POST (13 Octubre 2008, 18:12, Publicado por: Spider-Net).

No revivas temas, para algo estan los MP's

GRACIAS POR LEER!!!
566  Foros Generales / Foro Libre / Re: cuantos litros de agua tomas al dia? en: 14 Febrero 2012, 19:34 pm
HOLA!!!

Yo por dia tomo aprox entre 4 y 5 litros de liquido...

Al desayuno un vaso de jugo de naranja con gin zeng.

Durante la mañana y el almuerzo 1,5 L de agua común.

En la merienda Medio litro de leche, leche chocolatada o yogur.

En la cena o por la noche 1,5 L de agua saborizada o gaseosa (no coca-cola).

+ algún que otro vasito con agua o café o te no contabilizado.

GRACIAS POR LEER!!!
567  Programación / Programación Visual Basic / Re: Multithread Socket (Thread per Socket)not Complete en: 10 Febrero 2012, 17:53 pm
HELLO!!!

Well...

Yes, in my post i show the way to send 2 strings at the same time and the way to recive at the same time... you are right about the practicality of your method but what i wanna expose it's that with the regular sockets you can do that because each socket is a separate process.

although...

Nothing XD i'm just kidding :P.

P.S: We need to compare the memory and processor consumption.

THANKS FOR READING!!!
568  Programación / Programación Visual Basic / Re: Multithread Socket (Thread per Socket)not Complete en: 10 Febrero 2012, 01:00 am
HELLO!!!

Oh! i see this socket sends and recive with multithread, and the regular socket only recive with multithread.

Cool but! (i allways have a but in my pocket XD)
with the regular sockets with this code:

Código:
Public sub SendInformation()
Winsock1.senddata 5mbDatastring
Winsock2.senddata 5mbDataString
End Sub

The first socket will start the sending process and the code will go to the next instruction winsock2.senddata 5mbDataString when the second socket starts the process the winsock1 and 2 would be sending at the same time.

What do you think?

THANKS FOR READING!!!
569  Programación / Programación Visual Basic / Re: Multithread Socket (Thread per Socket)not Complete en: 9 Febrero 2012, 18:48 pm
HELLO!!!

You're asking him to use paste bin. So your answer is really stupid and not polite.

+1



I really do not understand this to much...
The regular sockets (winsock and socketmaster) already are multithread i think.

For example with 2 winsocks i have this code:
Código:
Private sub Winsock1 data arrival()
Do
doevents
Loop
end sub
Private sub winsock2 data arrival()
Debug.print "a"
end sub

If i send information to the first socket the program will enter in an endless loop but if while the program its in that loop i send information to socket2 it will print "a" in the debug window.

it's like reinvent the wheel.

Plz correct me if im wrong.

P.D: I don't read the code, i only have tested the software.

THANKS FOR READING!!!
570  Comunicaciones / Android / Re: Motorola Atrix o Samsung Galaxy S2 en: 2 Febrero 2012, 15:31 pm
HOLA!!!

XD Si, mas vale, ahora me baje el "IM+ Pro" anda muy bien, pero como digo android lo mata despues de x inactividad y pasa a modo push y no me llegan las notificaciones hasta que inicio de nuevo la aplicacion.

La configuracion de datos esta puesta en modo Performance y solo 3G//HDSPA+.
Si, Blackberry es mas comodo para todo eso creo XD, el teclado es invaluable.

GRACIAS POR LEER!!!
Páginas: 1 ... 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 [57] 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 ... 137
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines