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

Load Object Data into a TableView in IntelliJ using JavaFX

Load Object Data into a TableView in IntelliJ using JavaFX

Tiempo de lectura: 2 minutos Reading time: 3 minutes We begin by creating the design of the application window, where we need to add a TableView element. We give this element its own ID, in this case, I’ll call it “tablaAplicaciones”, resulting in the window looking like this: Next, in order to display the data in the table, we are … Read more

Configure your SSH connections with the .ssh folder for Windows and Ubuntu

Configure your SSH connections with the .ssh folder for Windows and Ubuntu

Tiempo de lectura: 2 minutos Reading time: 2 minutes In order to connect to remote servers, we can use the .ssh folder configuration and the config file that Ubuntu and Windows use to create SSH connections. This tool is presented as an alternative to Putty. The first thing we need to do is create our .ssh directory: In Ubuntu, it … Read more

Creating Cookies in PHP

Tiempo de lectura: < 1 minuto Reading Time: < 1 minute A cookie is a “text file” that is stored in the browser and collects various information from a webpage, such as identifying user preferences, displaying relevant content based on searches, and most importantly, remembering user access and credentials. Let’s see how to work with cookies in PHP. CREATE COOKIE: setcookie(name, … Read more

Create an Oracle Cloud account to get 2 free servers (always free)

Create an Oracle Cloud account to get 2 free servers (always free)

Tiempo de lectura: 3 minutos Reading time: 3 minutes Oracle Cloud allows us to have 2 servers that are completely free and available forever, with minimal services, but they can be helpful for our projects or for testing purposes. It can also be interesting for deploying a Telegram bot How to Create a Telegram Bot (Python). First of all, we … Read more