This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
services: | |
bd: | |
environment: | |
- MYSQL_ROOT_PASSWORD=12345Abcde | |
- MYSQL_DATABASE=blog | |
- MYSQL_USER=blog | |
- MYSQL_PASSWORD=12345Abcde |
Generar el scriptidea
desdeTools -> Create Command-line Launcher
, no desde el Toolbox.- A partir de la versión 2019.1 no existe la opción, hay que crearlo desde el Toolbox.
- Con más de 10 proyectos a veces alguno no se abre.
- REF: https://www.jetbrains.com/help/idea/opening-files-from-command-line.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DefaultComboBoxModel<String> modelo = new DefaultComboBoxModel<>(); | |
modelo.addElement("Opción 1"); | |
modelo.addElement("Opción 2"); | |
modelo.addElement("Opción 3"); | |
comboBox1.setModel(modelo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.jaureguialzo</groupId> | |
<artifactId>ejemplo</artifactId> | |
<version>1.0-SNAPSHOT</version> |
Artículo original: Cómo utilizar Hyper-V y VirtualBox en el mismo equipo con Windows 10
Los comandos se tienen que ejecutar en un símbolo de sistema (CMD) como administrador.
Copia de seguridad:
En Windows, para usar el comando make
, hay que instalar Chocolatey y después instalarlo mediante choco install make
.
Para que no de error, editar el archivo ~/.docker/config.json
y borrar la clave credsStore
.
make hadoop
wc -l /ficheros/GlobalLandTemperaturesByCity.csv
awk 'NR != 1 {print}' \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileprivate func alerta(titulo: String, mensaje: String) { | |
// REF: How to use UIAlertController in Swift: https://medium.com/ios-os-x-development/how-to-use-uialertcontroller-in-swift-70143d7fbede | |
let alertController = UIAlertController(title: titulo, message: mensaje, preferredStyle: .alert) | |
let accion = UIAlertAction(title: "Ok", style: .default) { (action: UIAlertAction) in | |
// Acciones cuando se pulsa en OK | |
} | |
alertController.addAction(accion) |