Open a Popup Window in IntelliJ from a Button

Open a Popup Window in IntelliJ from a Button

Tiempo de lectura: 2 minutos To do this, we will first design one of the windows where we create a button that, when pressed, will open an alert window of the selected type: information, caution, etc. Each window or class in IntelliJ must have its corresponding FXML, which is shown below: In this case, our main window will be devcodelight.fxml, … Read more

Convert Android XML Vector to SVG

Convert Android XML Vector to SVG

Tiempo de lectura: 2 minutos Reading time: 2 minutes We can convert an Android XML vector to SVG for use on the web. We have the following XML taken from the SVG repository with CC0 license: <vector android:height=”50dp” android:viewportHeight=”512″ android:viewportWidth=”512″ android:width=”50dp” xmlns:android=”http://schemas.android.com/apk/res/android”> <path android:fillColor=”#5D9BEB” android:pathData=”M0,256.006C0,397.402 114.606,512.004 255.996,512C397.394,512.004 512,397.402 512,256.006C512.009,114.61 397.394,0 255.996,0C114.606,0 0,114.614 0,256.006z”/> <path android:fillColor=”#4988DB” android:pathData=”M507.859,301.669l-0.604,-0.554c-0.114,-0.118 -0.163,-0.283 -0.286,-0.395c0,0 -147.972,-147.983 -148.095,-148.095l-97.389,-89.274c-2.378,-2.163 … Read more

How to validate your website to meet WCAG 2.2 accessibility criteria

How to validate your website to meet WCAG 2.2 accessibility criteria

Tiempo de lectura: 2 minutos Reading time: 2 minutes If we want to meet the accessibility criteria of the WCAG 2.2 standard, we can use various tools to assist us. One very useful tool is WAVE, available as a web tool and browser plug-in (Firefox/Chrome). It allows us to analyze the web for accessibility errors and offers the following features: … Read more

Restore root Password in MySQL without Access

Restore root Password in MySQL without Access

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If we install MySQL and forget the root user password, we can recover it using the following steps: First, we start MySQL with sudo from the Linux console: sudo mysql Once inside, to restore the root password, execute the following command: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new_password'; Replace ... Read more

Allow Using .htaccess in Apache2

Allow Using .htaccess in Apache2

Tiempo de lectura: < 1 minuto Reading time: < 1 minute In order to use .htaccess on our Apache server, we need to enable the option in the Apache configuration file. To do this, we open the file: sudo vi /etc/apache2/apache2.conf Once it’s open, we need to go to the line that says AllowOverride None and change it to: AllowOverride All ... Read more

Hide directory tree (index) in Apache2

Hide directory tree (index) in Apache2

Tiempo de lectura: < 1 minuto Reading Time: < 1 minute Yes, we have folders to organize our code in the www directory and we don’t want them to appear when accessed through the browser. All you need to do is create a .htaccess file and add the following line: Options -Indexes If the change is not applied, you need to … Read more

Open another window in IntelliJ using JavaFX

Open another window in IntelliJ using JavaFX

Tiempo de lectura: 2 minutos Reading time: 2 minutes To do this, we will first design one of the windows where we create a button that, when pressed, will open another window with a different design. Each window or class in IntelliJ must have its corresponding FXML, as shown below: In this case, our main window will be “devcodelight.fxml”, where … Read more

Add and use GitHub Copilot to help you program any language in VSCode

Add and use GitHub Copilot to help you program any language in VSCode

Tiempo de lectura: 2 minutos Reading time: 3 minutes One day ago, GitHub released its code assistant Copilot, capable of helping you program in any language. It’s important to note that this Artificial Intelligence (AI) is not capable of programming on its own, but it can assist us in avoiding web searches while programming. It is available for €10/month or … Read more

How to close a port or ports in Ubuntu (Linux) by default using ip-tables

How to close a port or ports in Ubuntu (Linux) by default using ip-tables

Tiempo de lectura: 2 minutos Reading Time: < 1 minute Following the tutorial on How to Open a Port in Ubuntu (Linux) by Default using IP Tables, we will learn how to close a port in Ubuntu using IP Tables. Ubuntu To check if the port is open, you can use the following website: https://www.yougetsignal.com/tools/open-ports/. Enter your machine’s IP and … Read more