viernes, 18 de octubre de 2019

AMPPS MySQL not working, Solution!

  1. Open Ampps Application -> MySQL Tab -> Configuration.
  2. In [mysqld] section, add the following line: innodb_force_recovery = 1
  3. Save the file and try starting MySQL
  4. Remove that line which you just added and Save.


     
If that not works try:

open the following folder
Ampps/mysql/data/
delete all files like ib_logfile** and mysql-bin.index,mysql-bin.****,
then start or restart MySQL via the AMPPS pannel

jueves, 10 de octubre de 2019

Mostrar y ocultar el contenido de un div con un checkbox

Siempre que tengamos contenido no muy importante o que no queramos resaltar en nuestra página Web o especialmente en los formularios, cuando nos referimos a campos no obligatorios, podriamos ocultarlos y mostrarlos al antojo del usuario medante un checkbox que muestre o no muestre el contenido según esté chekeado o no.
Para implementar esto necesitarmos crear una función javascript dentro de la etiqueta <head> de la siguiente forma:

<script type="text/javascript">
    function showContent() {
        element = document.getElementById("content");
        check = document.getElementById("check");
        if (check.checked) {
            element.style.display='block';
        }
        else {
            element.style.display='none';
        }
    }
</script>
 
Con esta función lo que conseguimos es obtener el elemnto con id=»content», que se trata del contenido escondido y seguidamente comprobar si el input checkbox con id=»check» está chekeado o no para mostrar o no el div con id=»content».

<b>Mostrar contenido?</b>
<input type="checkbox" name="check" id="check" value="1" onchange="javascript:showContent()" />

El código anterior estaría dentro del formulario y se trata del checkbox que mostrará o no según esté chekeado o no el div escondido.
Y finalmente, tendremos a continuación el div escondido que será mostrado al checkear el checkbox.

<div id="content" style="display: none;">
   contenido del div escondido<br/>
   contenido del div escondido<br/>
   contenido del div escondido<br/>
 </div>

miércoles, 9 de octubre de 2019

Eliminar virus de accesos directos en pendrives

Lo unico que tienes que hacer es conectar el pendrive y ver que unidad le asignó (e:\ por ejemplo)
Luego abrir el cmd (win+r) y escribir cmd y enter
Ejecutar el comando attrib e:*.* /d /s -r -h -s (remplazo e por la unidad)
Esperar a que termine y listo

viernes, 4 de octubre de 2019

Cómo hacer que un programa se inicie automáticamente al arrancar Windows 10

Hacer que un programa se inicie automáticamente en Windows 10 es muy fácil:
  • Pulsa las teclas Windows + R
  • Seguidamente tienes que escribir shell:startup
  • A continuación verás una ventana, en ella simplemente tienes que arrastrar los accesos directos de aquellos programas que deseas que se inicien automáticamente al arrancar Windows 10
  • Reinicia el equipo
Si quieres hacer todo lo contrario, o sea, que una aplicación no se inicie automáticamente, el proceso es prácticamente idéntico. Solo tienes que eliminar el acceso directo de la carpeta que se abre al ejecutar el comando shell:startup.

sábado, 26 de enero de 2019

Enabling File Sharing Applications like BitTorrent and Emule


This page explains how to configure Comodo Firewall for file sharing applications like Shareaza/Emule and BitTorrent/UTorrent. To allow these file sharing applications, you must:
To Disable 'Do Protocol analysis'
  1. Open 'Tasks' interface by clicking the green curved arrow at top right of the 'Home' screen
  2. Open 'Firewall Tasks' by clicking 'Firewall Tasks' from the Tasks interface and click 'Open Advanced Settings'.


  1. Ensure that 'Do Protocol Analysis' checkbox is not selected.
To Create a 'Predefined Firewall Ruleset' for Shareaza/Emule
  1. Click 'Rulesets' under 'Firewall' from the LHS navigation pane of 'Advanced Settings' interface to open 'Rulesets' panel
  2. Click the handle from the bottom of the panel and choose 'Add'



The 'Firewall Ruleset' interface will open for creating a new set of rules.
  1. Click the handle from the bottom and choose 'Add'
  2. Enter a descriptive name for the new ruleset to be created in the 'Description' text box (for example: For allowing Shareaza/Emule).
  3. Now you need to create six rules for the newly created ruleset. To do so, click 'Add'. The 'Firewall Rule' interface will appear. For creating each rule, select the check box and choose the drop-down options under each tab as given below. After creating each rule, click 'OK' for the rule to be added. Click handle in the 'Firewall Ruleset' interface and choose 'Add' to create the next rule.


Rule 1
  • Action : Allow
  • Protocol : TCP
  • Direction : In
  • Description : Rule for incoming TCP connections
  • Source Address : Any Address
  • Destination Address : Any Address
  • Source port : A Port Range : (Start Port = 1025 / End Port = 65535)
  • Destination port : A Single Port : (Port : Your TCP port of Shareaza/Emule)
Rule 2
  • Action : Allow
  • Protocol : UDP
  • Direction : In
  • Description : Rule for incoming UDP connections
  • Source Address : Any Address
  • Destination Address : Any Address
  • Source port : A Port Range : (Start Port = 1025 / End Port = 65535)
  • Destination port : A Single Port : (Port : Your UDP port of Shareaza/Emule)
Rule 3
  • Action : Allow
  • Protocol : TCP or UDP
  • Direction : Out
  • Description : Rule for outgoing TCP and UDP connections
  • Source Address : Any Address
  • Destination Address : Any Address
  • Source port : A port range : (start port = 1025 / end port = 65535)
  • Destination port : A port range : (start port = 1025 / end port = 65535)
Rule 4
  • Action : Allow
  • Protocol : ICMP
  • Direction : Out
  • Description : Ping the server (edk network)
  • Source Address : Any Address
  • Destination Address : Any Address
  • ICMP Details : Message : ICMP Echo Request
Rule 5
  • Action : Ask (Also select the check box 'Log as a firewall event if this rule is fired')
  • Protocol : TCP
  • Direction : Out
  • Description : Rule for HTTP requests
  • Source Address : Any Address
  • Destination Address : Any Address
  • Source port : A port range : (start port = 1025 / end port = 65535)
  • Destination port : Type : Single Port; (Port : 80)
Rule 6
  • Action : Block (Also select the check box 'Log as a firewall event if this rule is fired')
  • Protocol : IP
  • Direction : In/Out
  • Description : Block and Log All Unmatching Requests
  • Source Address : Any Address
  • Destination Address : Any Address
  • IP Details : IP Protocol : Any
  1. Click 'OK' in the 'Firewall Ruleset' interface.
The new ruleset will be created and added as a Predefined ruleset. Start Shareaza or Emule. When Comodo raises a pop-up alert, choose 'Treat this application as', select the descriptive name you gave for this rule (e.g. For allowing Shareaza/Emule) from the options and select 'Remember my answer'.

To create a 'Predefined Firewall Ruleset' for BitTorrent/Utorrent'
  1. Click 'Rulesets' under 'Firewall' from the LHS navigation pane of 'Advanced Settings' interface to open 'Rulesets' panel
  2. Click the handle from the bottom of the panel and choose 'Add'
The 'Firewall Ruleset' interface will open for creating a new set of rules.
  1. Click the handle from the bottom and choose 'Add'
  2. Enter a descriptive name for the new ruleset to be created in the 'Description' text box (for example: For allowing BitTorrent/Utorrent).
  3. Now you need to create six rules for the newly created ruleset. To do so, click 'Add'. The 'Firewall Rule' interface will appear. For creating each rule, select the check box and choose the drop-down options under each tab as given below. After creating each rule, click 'OK' for the rule to be added. Click handle in the 'Firewall Ruleset' interface and choose 'Add' to create the next rule.
Rule 1
  • Action : Allow
  • Protocol : TCP or UDP
  • Direction : In
  • Description : Rule for incoming TCP and UDP connections
  • Source Address : Any Address
  • Destination Address : Any Address
  • Source port : A Port Range : (Start port = 1025 / End port = 65535)
  • Destination port : A Single Port (Port: The port of BitTorrent/Utorrent)
Rule 2
  • Action : Allow
  • Protocol : TCP
  • Direction : Out
  • Description : Rule for outgoing TCP connections
  • Source Address : Any Address
  • Destination Address : Any Address
  • Source port : A Port Range : (Start port = 1025 / End port = 65535)
  • Destination port : A Port Range : (Start port = 1025 / End port = 65535)
Rule 3
  • Action : Allow
  • Protocol : UDP
  • Direction : Out
  • Description : Rule for outgoing UDP connections
  • Source Address : Any Address
  • Destination Address : Any Address
  • Source port : A Single Port: Port: the port of utorrent
  • Destination port : A Port Range : (Start port = 1025 / End port = 65535)
Rule 4
  • Action : Ask (Also select the check box 'Log as a firewall event if this rule is fired')
  • Protocol : TCP
  • Direction : Out
  • Description : Rule for HTTP requests
  • Source Address : Any Address
  • Destination Address : Any Address
  • Source port : A Port Range : (Start port = 1025 / End port = 65535)
  • Destination port ; A Single Port (Port = 80)
Rule 5
  • Action : Block (Also select the check box 'Log as a firewall event if this rule is fired')
  • Protocol : IP
  • Direction : In/Out
  • Description : Block and Log All Unmatching Requests
  • Source Address : Any Address
  • Destination Address : Any Address
  • IP Details : IP Protocol : Any
  1. Click 'OK' in the 'Firewall Ruleset' interface.
The new ruleset will be created and added as a Predefined Firewall ruleset. Start BitTorrent or Utorrent. When Comodo raises a pop-up alert, choose 'Treat this application as', select the descriptive name you gave for this rule (e.g. For allowing BitTorrent/Utorrent) from the options and select 'Remember my answer'.

lunes, 8 de octubre de 2018

How To Convert Virtual Machines Between VirtualBox and VMware

image

Migrating to another virtual machine program can be intimidating. if you already have your virtual machines set up they way you like them, you don’t necessarily have to install them from scratch – you can migrate your existing virtual machines.
VirtualBox and VMware use different virtual machine formats, but each supports the standard Open Virtualization Format. Convert your existing virtual machine to OVF or OVA and you’ll be able to import it into another virtual machine program.
Unfortunately, this may not always work perfectly, as VirtualBox and VMware both seem to use slightly different OVA/OVF implementations that aren’t entirely compatible. If this doesn’t work, you may want to reinstall your virtual machine’s guest operating system from scratch.

VirtualBox to VMware

Before migrating a virtual machine from VirtualBox to VMware, ensure it’s “powered off” in VirtualBox – not suspended. If it’s suspended, launch the virtual machine and shut it down.


image

Click the File menu in VirtualBox and select Export Appliance.

image

Select the virtual machine you want to export and provide a location for it.

image

VirtualBox will create a nOpen Virtualization Format Archive (OVA file) that VMware can import. This may take some time, depending on the size of your virtual machine’s disk file.

image

To import the OVA file in VMware, click the Open a Virtual Machine option and browse to your OVA file.

image

VirtualBox and VMware aren’t perfectly compatible, so you’ll probably receive a warning message saying the the file “did not pass OVF specification performance” – but if you click Retry, the virtual machine should import and function properly.

image

After the process completes, you can boot the virtual machine in VMware, uninstall VirtualBox Guest Additions from the Control Panel inside the virtual machine, and install VMware Tools from the virtual machine’s menu.

VMware to VirtualBox

Before migrating a virtual machine from VMware to VirtualBox, ensure it’s “powered off” in VMware – not suspended. If it’s suspended, launch the virtual machine and shut it down.

image5

Next, browse to the OVFTool folder. If you’re using VMware Player, you’ll find it at C:\Program Files (x86)\VMware\VMware Player\OVFTool. Hold Shift, right-click inside the OVFTool folder, and select Open command window here.

image

Run ovftool with the following syntax:
ovftool source.vmx export.ovf
For example, if we wanted to convert the virtual machine located at C:\Users\NAME\Documents\Virtual Machines\Windows 7 x64\Windows 7 x64.vmx and create a new OVF file at C:\Users\NAME\export.ovf, we’d run the following command:
ovftool “C:\Users\NAME\Documents\Virtual Machines\Windows 7 x64\Windows 7 x64.vmx” C:\Users\NAME\export.ovf
If you receive a “failed to open disk” error, it’s likely that the virtual machine is still running or wasn’t shut down properly – boot the virtual machine and perform a shut down.

image

Once the process is complete, you can import the .ovf file into VirtualBox. Use the Import Appliance option in the File menu.

image

After the process completes, you can boot the virtual machine, uninstall VMware Tools, and install VirtualBox’s Guest Additions.

viernes, 10 de junio de 2016

Find out where a user is located in OU structure with a search

It seems that very few people actually know how to find out where a user account is actually located in AD. The easiest way is to start a search on top of your domain, find the user and than the magic trick. Click on top of search box on view and choose columns.

 Choose_Columns

Here you add the "published at".

 Choose_Columns01

After you press Ok you will notice that the results will also display where the user is located.

 ad_search_published_at

It is also possible to use the distinguished name if you prefer that.


Cambiar tamaño de fuente al reducir la ventana (HTML / CSS)

Cambiar el tamaño del texto a medida que se reduce el tamaño de la ventana (HTML5 / CSS3)   . container { border : solid 1px blue ; ...