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

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Mensajes
Páginas: 1 ... 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 [808] 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 ... 1236
8071  Programación / Programación General / Re: Un if realmente se lee cuando la condición es falsa? en: 4 Octubre 2013, 15:15 pm
Aunque la primera evaluación sea falsa se hace la segunda evaluación y por ello es mejor realizar un if anidado.

En lugar de anidar podemos servirnos del resto de operadores del lenguaje (los que ya ha nombrado ABDERRAMAH),
solo es necesario leer la referencia de los operadores de VBNET para entender como funcionan y saber las expresiones que se evaluan y las que no...

-> Logical/Bitwise Operators (Visual Basic)

Saludos!
8072  Sistemas Operativos / Windows / Re: error en windows 7 en: 4 Octubre 2013, 10:45 am
ups, perdon.

Te explico, por descomprimir me refiero a desempaquetar, si no sabes hacerlo manuálmente puedes dejar que el instalador lo haga por ti...

...En la VM, símplemente haz click para ejecutar el instalador, manten el instalador abierto pero no instales nada, dirígete al directorio "%TEMP%" y allí encontrarás la carpeta con los archivos que necesitas, el nombre exacto de la carpeta no te lo puedo especificar porque la carpeta se genera con un nombre único temporal, pero te di una pista creo que eran 181 archivos, y pesaban 30 MB en total, pues el contenido de esa carpeta es lo que te tienes que pasar a tu PC.

Si tienes complicaciones para encontrar los archivos desempaquetados del instalador puedes utilizar un monitor: http://www.moo0.com/?top=http://www.moo0.com/software/FileMonitor/

Saludos!
8073  Sistemas Operativos / Windows / Re: ¿Como puedo imprimir una imagen en 15x15 en Windows 7 ? en: 3 Octubre 2013, 15:25 pm

¿Descargarse una aplicación pesada (y encima de Microsoft) y realizar 4 pasos sólamente para redimensionar + imprimir?...

Lo más sencillo es hacerlo en Paint como ha dicho Simorg o Irfanview como ha dicho Songoku, o en cualquier otro visor de imágenes.

En Irfan:
paso 1: Pulsar "CTRL+R" y redimensionar a las dimensiones deseadas.
paso 2:  Pulsar "CTRL+P" para imprimir.

Saludos
8074  Programación / Scripting / Re: Armando un BAT en: 3 Octubre 2013, 11:10 am
Lo que necesito es crear un bat que me mueva de cada una de esas maquinas todas las grabaciones exceptuando siempre la ultima que es la que se esta generando hacia otras carpetas alojadas en un servidor.

No es necesario realizar ningún código de varias lineas, puedes mover todos los videos diréctamente con el comando "Move":

Código
  1. Set "Output=C:\Carpeta" & call mkdir "%Output%" 2>NUL
  2.  
  3. net use Z: "\\IP\Carpeta De Grabaciones"
  4. move "Z:\*.mp4" "%Output%\"

PD: El último archivo, es decir, el archivo que se esté generando actualmanete no se moverá ya que la aplicación que realiza las grabaciones debería mantener ese archivo abierto en modo escritura, así que el sistema no permitirá moverlo porque el archivo está siendo leido/escrito, símplemente no se moverá, pero el resto de archivos si, por eso no es necesario filtrar los archivos del directorio para descartar el último archivo, es una tontería.

Saludos
8075  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets) en: 3 Octubre 2013, 10:43 am
Una Class para manejar la aplicación mp3gain.

Sirve para aplicar una ganancia NO destructiva a archivos MP3.

http://mp3gain.sourceforge.net/

EDITO: Código mejorado.
Código
  1. #Region " mp3gain Helper "
  2.  
  3.  
  4.  
  5. ' [ mp3gain Helper ]
  6. '
  7. ' // By Elektro H@cker
  8. '
  9. '
  10. ' Instructions:
  11. '
  12. ' 1. Add the "mp3gain.exe" into the project.
  13. '
  14. '
  15. ' Examples :
  16. '
  17. ' MsgBox(mp3gain.Is_Avaliable) ' Checks if mp3gain executable is avaliable.
  18. '
  19. ' MsgBox(mp3gain.File_Has_MP3Gain_Tag("File.mp3")) ' Checks if file contains mp3gain APE tag
  20. '
  21. ' mp3gain.Set_Gain("File.mp3", 95) ' Set the db Gain of file to 95 db (In a scale of "0/100" db)
  22. ' mp3gain.Set_Gain("File.mp3", 95, True) ' Set the db Gain of file to -95 db and preserve the datetime of file.
  23. '
  24. ' mp3gain.Apply_Gain("File.mp3", +5) ' Apply a change of +5 db in the curent gain of file.
  25. ' mp3gain.Apply_Gain("File.mp3", -5) ' Apply a change of -5 db in the curent gain of file.
  26. '
  27. ' mp3gain.Apply_Channel_Gain("File.mp3", mp3gain.Channels.Left, +10) ' Apply a change of +10 db in the curent Left channel gain of file.
  28. ' mp3gain.Apply_Channel_Gain("File.mp3", mp3gain.Channels.Right, -10) ' Apply a change of -10 db in the curent Right channel gain of file.
  29. '
  30. ' mp3gain.Undo_Gain("File.mp3") ' Undo all MP3Gain db changes made in file.
  31. '
  32. '
  33. ' ------
  34. ' EVENTS
  35. ' ------
  36. ' Public WithEvents mp3gain As New mp3gain
  37. '
  38. ' Sub mp3gain_Progress(Progress As Integer, e As EventArgs) Handles mp3gain.PercentDone
  39. '     ProgressBar1.Maximum = 100
  40. '     ProgressBar1.Value = Progress
  41. ' End Sub
  42. '
  43. ' Sub mp3gain_Exited(Message As String, e As EventArgs) Handles mp3gain.Exited
  44. '     ProgressBar1.Value = 0
  45. '     MessageBox.Show(Message)
  46. ' End Sub
  47.  
  48.  
  49.  
  50. Public Class mp3gain
  51.  
  52. #Region " CommandLine parametter legend "
  53.  
  54.    ' MP3Gain Parametter Legend:
  55.    '
  56.    ' /c   - Ignore clipping warning when applying gain.
  57.    ' /d   - Set global gain.
  58.    ' /e   - Skip Album analysis, even if multiple files listed.
  59.    ' /g   - apply gain
  60.    ' /p   - Preserve original file timestamp.
  61.    ' /r   - apply Track gain automatically (all files set to equal loudness)
  62.    ' /t   - Writes modified data to temp file, then deletes original instead of modifying bytes in original file.
  63.    ' /u   - Undo changes made (based on stored tag info).
  64.    ' /s c - Check stored tag info.
  65.  
  66. #End Region
  67.  
  68. #Region " Variables "
  69.  
  70.    ' <summary>
  71.    ' Gets or sets the mp3gain.exe executable path.
  72.    ' </summary>
  73.    Public Shared mp3gain_Location As String = "c:\mp3gain.exe"
  74.  
  75.    ' Stores the MP3Gain process ErrorOutput.
  76.    Private Shared ErrorOutput As String = String.Empty
  77.  
  78.    ' Stores the MP3Gain process StandardOutput.
  79.    Private Shared StandardOutput As String = String.Empty ' Is not needed
  80.  
  81.    ' Sets a Flag to know if file has MP3Gain APE tag.
  82.    Private Shared HasTag As Boolean = False
  83.  
  84. #End Region
  85.  
  86. #Region " Enumerations "
  87.  
  88.    Enum Channels As Short
  89.        Left = 0  ' /l 0
  90.        Right = 1 ' /l 1
  91.    End Enum
  92.  
  93. #End Region
  94.  
  95. #Region " Events "
  96.  
  97.    ' <summary>
  98.    ' Event raised when process progress changes.
  99.    ' </summary>
  100.    Public Shared Event PercentDone As EventHandler(Of PercentDoneEventArgs)
  101.    Public Class PercentDoneEventArgs : Inherits EventArgs
  102.        Public Property Progress As Integer
  103.    End Class
  104.  
  105.    ' <summary>
  106.    ' Event raised when MP3Gain process has exited.
  107.    ' </summary>
  108.    Public Shared Event Exited As EventHandler(Of ExitedEventArgs)
  109.    Public Class ExitedEventArgs : Inherits EventArgs
  110.        Public Property Message As String
  111.    End Class
  112.  
  113. #End Region
  114.  
  115. #Region " Processes Info "
  116.  
  117.    Private Shared Process_TagCheck As New Process() With { _
  118.    .StartInfo = New ProcessStartInfo With { _
  119.                .CreateNoWindow = True, _
  120.                .UseShellExecute = False, _
  121.                .RedirectStandardError = False, _
  122.                .RedirectStandardOutput = True _
  123.    }}
  124.  
  125.    Private Shared Process_For_Tag As New Process() With { _
  126.    .StartInfo = New ProcessStartInfo With { _
  127.                .CreateNoWindow = True, _
  128.                .UseShellExecute = False, _
  129.                .RedirectStandardError = False, _
  130.                .RedirectStandardOutput = True _
  131.    }}
  132.  
  133.    Private Shared Process_For_NonTag As New Process() With { _
  134.    .StartInfo = New ProcessStartInfo With { _
  135.                .CreateNoWindow = True, _
  136.                .UseShellExecute = False, _
  137.                .RedirectStandardError = True, _
  138.                .RedirectStandardOutput = True _
  139.    }}
  140.  
  141. #End Region
  142.  
  143. #Region " Miscellaneous functions "
  144.  
  145.    ' <summary>
  146.    ' Checks if mp3gain.exe process is avaliable.
  147.    ' </summary>
  148.    Public Shared Function Is_Avaliable() As Boolean
  149.        Return IO.File.Exists(mp3gain_Location)
  150.    End Function
  151.  
  152.    ' Checks if a file exist.
  153.    Private Shared Sub CheckFileExists(ByVal File As String)
  154.  
  155.        If Not IO.File.Exists(File) Then
  156.            ' Throw New Exception("File doesn't exist: " & File)
  157.            MessageBox.Show("File doesn't exist: " & File, "MP3Gain", MessageBoxButtons.OK, MessageBoxIcon.Error)
  158.        End If
  159.  
  160.    End Sub
  161.  
  162. #End Region
  163.  
  164. #Region " Gain Procedures "
  165.  
  166.    ' <summary>
  167.    ' Checks if mp3gain APE tag exists in file.
  168.    ' </summary>
  169.    Public Shared Function File_Has_MP3Gain_Tag(ByVal MP3_File As String) As Boolean
  170.  
  171.        CheckFileExists(MP3_File)
  172.  
  173.        Process_TagCheck.StartInfo.FileName = mp3gain_Location
  174.        Process_TagCheck.StartInfo.Arguments = String.Format("/s c ""{0}""", MP3_File)
  175.        Process_TagCheck.Start()
  176.        Process_TagCheck.WaitForExit()
  177.  
  178.        Return Process_TagCheck.StandardOutput.ReadToEnd.Trim.Split(Environment.NewLine).Count - 1
  179.  
  180.        ' Process_TagCheck.Close()
  181.  
  182.    End Function
  183.  
  184.    ' <summary>
  185.    ' Set global db Gain in file.
  186.    ' </summary>
  187.    Public Shared Sub Set_Gain(ByVal MP3_File As String, _
  188.                               ByVal Gain As Integer, _
  189.                               Optional ByVal Preserve_Datestamp As Boolean = True)
  190.  
  191.        Run_MP3Gain(MP3_File, String.Format("/c /e /r /t {1} /d {2} ""{0}""", _
  192.                                            MP3_File, _
  193.                                            If(Preserve_Datestamp, "/p", ""), _
  194.                                            If(Gain < 0, Gain + 89.0, Gain - 89.0)))
  195.  
  196.    End Sub
  197.  
  198.    ' <summary>
  199.    ' Apply db Gain change in file.
  200.    ' </summary>
  201.    Public Shared Sub Apply_Gain(ByVal MP3_File As String, _
  202.                                 ByVal Gain As Integer, _
  203.                                 Optional ByVal Preserve_Datestamp As Boolean = True)
  204.  
  205.        Run_MP3Gain(MP3_File, String.Format("/c /e /r /t {1} /g {2} ""{0}""", _
  206.                                            MP3_File, _
  207.                                            If(Preserve_Datestamp, "/p", ""), _
  208.                                            Gain))
  209.  
  210.    End Sub
  211.  
  212.    ' <summary>
  213.    ' Apply db Gain change of desired channel in file.
  214.    ' Only works for Stereo MP3 files.
  215.    ' </summary>
  216.    Public Shared Sub Apply_Channel_Gain(ByVal MP3_File As String, _
  217.                                         ByVal Channel As Channels, _
  218.                                         ByVal Gain As Integer, _
  219.                                         Optional ByVal Preserve_Datestamp As Boolean = True)
  220.  
  221.        Run_MP3Gain(MP3_File, String.Format("/c /e /r /l {2} {3} ""{0}""", _
  222.                                            MP3_File, _
  223.                                            If(Preserve_Datestamp, "/p", ""), _
  224.                                            If(Channel = Channels.Left, 0, 1), _
  225.                                            Gain))
  226.  
  227.    End Sub
  228.  
  229.    ' <summary>
  230.    ' Undo all MP3Gain db changes made in file (based on stored tag info).
  231.    ' </summary>
  232.    Public Shared Sub Undo_Gain(ByVal MP3_File As String, _
  233.                                Optional ByVal Preserve_Datestamp As Boolean = True)
  234.  
  235.        Run_MP3Gain(MP3_File, String.Format("/c /t {1} /u ""{0}""", _
  236.                                            MP3_File, _
  237.                                            If(Preserve_Datestamp, "/p", "")))
  238.  
  239.    End Sub
  240.  
  241. #End Region
  242.  
  243. #Region " Run MP3Gain Procedures "
  244.  
  245.    Private Shared Sub Run_MP3Gain(ByVal MP3_File As String, ByVal Parametters As String)
  246.  
  247.        CheckFileExists(MP3_File)
  248.  
  249.        HasTag = File_Has_MP3Gain_Tag(MP3_File)
  250.  
  251.        Process_For_Tag.StartInfo.FileName = mp3gain_Location
  252.        Process_For_Tag.StartInfo.Arguments = Parametters
  253.  
  254.        Process_For_NonTag.StartInfo.FileName = mp3gain_Location
  255.        Process_For_NonTag.StartInfo.Arguments = Parametters
  256.  
  257.        If HasTag Then
  258.            Run_MP3Gain_For_Tag()
  259.        Else
  260.            Run_MP3Gain_For_NonTag()
  261.        End If
  262.  
  263.    End Sub
  264.  
  265.    Private Shared Sub Run_MP3Gain_For_Tag()
  266.  
  267.        Process_For_Tag.Start()
  268.        Process_For_Tag.WaitForExit()
  269.  
  270.        RaiseEvent Exited(Process_For_Tag.StandardOutput.ReadToEnd.Trim.Split(Environment.NewLine).LastOrDefault, Nothing)
  271.  
  272.        StandardOutput = Nothing
  273.        ' Process_For_Tag.Close()
  274.  
  275.    End Sub
  276.  
  277.    Private Shared Sub Run_MP3Gain_For_NonTag()
  278.  
  279.        Process_For_NonTag.Start()
  280.  
  281.        While Not Process_For_NonTag.HasExited
  282.  
  283.            Try
  284.  
  285.                ErrorOutput = Process_For_NonTag.StandardError.ReadLine.Trim.Split("%").First
  286.                If CInt(ErrorOutput) < 101 Then
  287.                    RaiseEvent PercentDone(ErrorOutput, Nothing)
  288.                End If
  289.  
  290.            Catch : End Try
  291.  
  292.        End While
  293.  
  294.        StandardOutput = Process_For_NonTag.StandardOutput.ReadToEnd.Trim.Split(Environment.NewLine).Last
  295.  
  296.        RaiseEvent Exited(StandardOutput, Nothing)
  297.  
  298.        ErrorOutput = Nothing
  299.        StandardOutput = Nothing
  300.        ' Process_For_Tag.Close()
  301.  
  302.    End Sub
  303.  
  304. #End Region
  305.  
  306. End Class
  307.  
  308. #End Region
8076  Programación / Scripting / Re: Leyenda en Batch en: 1 Octubre 2013, 22:42 pm
Leyenda. Es decir el nombre del programador bien grande

Creo que confundes lo que es una Leyenda, una Leyenda es una especie de ayuda para describir ciertos parámetros, como por ejemplo la Leyenda de un desfragmentador (EJ: rojo: archivos, amarillo: carpetas, negro: espacio reservado, etc...).

Código
  1. Echo. ___________.__                      
  2. Echo. \_   _____/^|__^|______  _____ _____  
  3. Echo.  ^|    __)  ^|  \_  __ \/     \\__  \  
  4. Echo.  ^|     \   ^|  ^|^|  ^| \/  Y Y  \/ __ \_
  5. Echo.  \___  /   ^|__^|^|__^|  ^|__^|_^|  (____  /
  6. Echo.      \/                    \/     \/

Eso se denomina Art-ASCII, puedes generar tu "Firma" ASCII con cualquier servicio online: http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Firma

Saludos
8077  Sistemas Operativos / Windows / Re: error en windows 7 en: 1 Octubre 2013, 22:35 pm
http://en.wikipedia.org/wiki/Virtual_machine

https://www.virtualbox.org/wiki/Downloads

saludos
8078  Foros Generales / Sugerencias y dudas sobre el Foro / Re: Problemas de acceso al foro en: 1 Octubre 2013, 19:36 pm
Según me comentaron los que atacan son de holoscripter.org y uno de los users que atacan es inzect02, es de México. Mail: nnnj8@hotmail.es

En letra grande, que se enteren esos lammers!

Como siempre el equipo infalible de EHN "devolviendo el golpe" a cualquier juanker que ose atacarles, Gran trabajo encontrando las huellas de los sospechosos y hallando respuestas.

Saludos!
8079  Foros Generales / Dudas Generales / Re: Problema con todos los navegadores en: 1 Octubre 2013, 09:33 am
el controlador de nvidia dejo de funcionar

Sin duda tienes un problema con la T.Gráfica.

Puedes probar esto:

1. Actualizar el driver de tu tarjeta (o reinstalar el mismo) haciendo una instalación LIMPIA del driver:
 - Descargar la última versión del Driver: http://www.nvidia.es/Download/index.aspx?lang=es
 - Iniciar el instalador y elegir la opción "Instalación limpia".
 - Al finalizar la instalación, reiniciar el PC y testear tus navegadores.

2. Downgradear la tarjeta, esta técnica nunca me ha fallado para solucionar problemas similares en los peores momentos con mis tarjeta nVidia:
 - Descargar e instalar ASUS GPU Tweak: http://support.asus.com/download.aspx?p=9&m=GPU+Tweak&hashedid=n%2fa
 - Iniciar la aplicación y disminuir en un 20% (o más si no resulta suficiente) todos los valores de frecuencia y de RAM.
 - Guardar los cambios en el programa y seguídamente testear tus navegadores.

3. Abre las opciones de configuración de la pantalla (en el panel de control)
 - Reduce el modo de visualización a 16 Bits, perderás bastante color, pero solo es para testear.
 - Testea los navegadores.

PD: Los cambios si no recuerdo mal no eran permanentes, cada vez que reinicies el PC vas a tener que abrir la aplicación para volver a disminuir los valores.





El problema de "un script está tardando demasiado en responder" me ha pasado alguna que otra vez de forma ocasional, en tu caso podría estar relacionado con el mismo problema gráfico de la tarjeta, o también podría ser otro problema aislado del navegador (de la página web que corre el script),
sea como sea instálate estas dos extensiones en Firefox y lo agradecerás (creo que también disponen de versión para Chrome):

-> NoScript
-> Adblock+

El primero bloquea scripts, puedes configurar los que se bloquean y los que no, aunque esto no significa que tu problema en concreto se vaya a solucioanr, quizás no se solucione.
El segundo bloquea "Ads", popus molestos y otras historias.

Saludos
8080  Sistemas Operativos / Windows / Re: error en windows 7 en: 30 Septiembre 2013, 22:06 pm
desde su pagina inicial me baja un archivo de eses qu antes de instalar se tienen qe descomprimir

TODOS los installbuilders necesitan desempaquetar (descomprimir) el contenido del instalador antes de instalar (expandir archivos).

Comprueba que tienes bien registrada la ruta de extracción de archivos temporales, es decir, la variable de entorno "TEMP"

En consola:
Código:
Echo %TEMP%

Eso debería mostrarte algo parecido a esto:
Código:
C:\Users\NOMBRE\AppData\Local\Temp

Ahí es donde se extraen los archivos del instalador,
si sigues teniendo problemas, puedes instalarte una VM (Máquina Virtual) y descomprimir los archivos del instalador en la VM para después pasar los archivos a tu máquina Host , son 181 archivos los que extrae el instalador, unos 30 mb, no me apetece subirlos, lo siento xD.

Saludos!
Páginas: 1 ... 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 [808] 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 ... 1236
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines