06052024

inicio{
"host":"0170E84F190967D265F0474C0A",
"porta":"75E559"
}fim

06052024

inicio{
"host":"0170E84F190967D265F0474C0A",
"porta":"C1B7AA88"
}fim

verificar si un puerto está recibiendo peticiones

- Comando netstat (Linux/Unix): Puedes usar el comando netstat para ver las conexiones de red y los puertos abiertos. Ejecuta el siguiente comando en la terminal:
```
netstat -tuln
```
Esto mostrará una lista de puertos abiertos y los programas asociados.

- Comando nc (Linux/Unix): El comando nc (netcat) también puede ayudarte a verificar si un puerto está abierto. Por ejemplo:
```
nc -zv localhost 5000
```

Particle Velocity

Este código sirve para que las velocidad que le pongas a las particulas o lo que sea siempre este apuntando en Y pero en positivo. Cualquier velocidad apuntando en Negativo se vuelvo positiva
if (@v.y < 0) {
   @v.y = 0.01;
}

v@v *= chf("Vel_Mult");

O TAMBIEN PUEDES USAR ESTE DE AQUI

abs = siempre regresará el valor absoluto en positivos del número equivalente

@v.y = abs(@v.y);

Remove Nodes

/**
 * Definition for singly-linked list.
 * function ListNode(val, next) {
 *     this.val = (val===undefined ? 0 : val)
 *     this.next = (next===undefined ? null : next)
 * }
 */
/**
 * @param {ListNode} head
 * @return {ListNode}
 */
var removeNodes = function(head) {
    // If the list is empty or has only one node, there is nothing to remove
    if (head === null || head.next === null) {
        return head;
    }

    // Start from the end of the list
    let newHead = removeNodes(head.n

Docker y Postgres

docker ps

*Intenta conectarte nuevamente utilizando el usuario “slonik”:*
```
psql -h localhost -p 5432 -U slonik -d tapuykachay
```
*Verifica la Configuración de Autenticación:*

Asegúrate de que el usuario “slonik” tenga los permisos adecuados en la base de datos
```
docker exec -it tapuykachay-ssut-db-1 psql -U slonik -d tapuykachay
```
Luego, dentro de la consola de PostgreSQL, verifica los permisos del usuario:
```sql
\du
```

*Reinicia los Contenedores: Si realizas cambios en la configura

HOW TO USE ta (TECHNICAL ANALYSIS)

HOW TO USE ta (TECHNICAL ANALYSIS)
{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": [],
      "authorship_tag": "ABX9TyNYiAb5zc03A92DqIhH8xad",
      "include_colab_link": true
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    }
  },
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "view-in-github",
        "colab_type": "text"
      },
      "source": [
       

delete lookups

below deletes all rows with matching value for particular lookup_id
delete from lookup_values where lookup_id = 22 and row_number in 
(select row_number from (select row_number from lookup_values where lookup_id = 22 and value like '%steve.anderson%') as foo);


example if from ranger deleting particular email notifications

Promise - withResolvers

// neni nutne vracet new Promise jak je vsude v prikladech

// 1
async function test () {
	let resolve, reject;

const promise = new Promise((res, rej) => {
  resolve = res;
  reject = rej;
});

	setTimeout(() => {
	 Math.random() > 0.5 ? resolve("ok") : reject("not ok");

	}, 1500)

	return promise	
}

test().then(res => console.log(res)).catch(err => console.log(err))


// 2
const { promise, resolve, reject } = Promise.withResolvers();
Math.random() > 0.5 ? resolve("ok") : reject("not ok");

05062024m

inicio{
"host":"81F06BC9938F9D8CAE86EC2D121D",
"porta":"9F9584"
}fim

6.2 - C - Stationarity

# Augmented dicky fuller test
## Theory


## Snippet

```python
# Run the ADF test on the time series
result = adfuller(df["column"])

# Plot the time series
fig, ax = plt.subplots()
df["column"].plot(ax=ax)
plt.show()

# Print the test statistic and the p-value
print('ADF Statistic:', result[0])
print('p-value:', result[1])

print("If p-value < alpha, reject HO, assume series is stationary")
print("If p-value > alpha, accept HO, assume series is not stationary")
```

05052024

inicio{
"host":"0170E84F190967D265F0474C0A",
"porta":"75E559"
}fim

Docker Compose YAML

This example **sets up two services**, a web server using Nginx and a MySQL database. * The web service is using the Nginx image, exposing port 8080 on the host and mapping it to port 80 inside the container. It mounts the local html directory to the container's /usr/share/nginx/html directory for serving static content. * The db service is using the MySQL image, sets up some environment variables for configuring the MySQL database, and mounts the local db_data directory to the container's /var/lib/mysql directory for persistent storage. * Both services are connected to a custom network called mynetwork. _You can save this YAML file as docker-compose.yml in your project directory and run docker-compose up to start both services defined in the file. Make sure to adjust configurations as per your project requirements_
version: '3.8'

services:
  web:
    image: nginx:latest
    ports:
      - "8080:80"
    volumes:
      - ./html:/usr/share/nginx/html
    networks:
      - mynetwork

  db:
    image: mysql:latest
    environment:
      MYSQL_ROOT_PASSWORD: example
      MYSQL_DATABASE: mydatabase
      MYSQL_USER: myuser
      MYSQL_PASSWORD: mypassword
    volumes:
      - ./db_data:/var/lib/mysql
    networks:
      - mynetwork

networks:
  mynetwork:

denison_brain_gym_resources

https://fitedukacja.com.pl/fitness-dla-mozgu-czyli-jak-pomnazac-potencjal-tworczy-dzieci-i-uczniow-rozwiniecie-cz-1/
https://fitedukacja.com.pl/jaka-historie-moga-opowiedziec-rzeczy-scenariusz-lekcji-z-motywem-

regex

https://www.codingforentrepreneurs.com/blog/python-regular-expressions/