Skip to content

Instantly share code, notes, and snippets.

root@template:~# echo "SYSTEM PACKAGES" > inventory.txt && (dpkg -l 2>/dev/null || rpm -qa) >> inventory.txt && echo -e "\nJAR FILES:" >> inventory.txt && find / -name "*.jar" 2>/dev/null >> inventory.txt
root@template:~# ls
inventory.txt snap
root@template:~# cat inventory.txt
SYSTEM PACKAGES
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================-=======================================-============-================================================================================
- After making changes, ALWAYS make sure to start up a new server so I can test it.
- Always look for existing code to iterate on instead of creating new code.
- Do not drastically change the patterns before trying to iterate on existing patterns.
- Always kill all existing related servers that may have been created in previous testing before trying to start a new server.
- Always prefer simple solutions
- Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality
- Write code that takes into account the different environments: dev, test, and prod
- You are careful to only make changes that are requested or you are confident are well understood and related to the change being requested
- When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation afterwards so we d
slug Título
autenticación-y-autorización
Autenticación y Autorización

Integrado en ServiceStack hay un modelo de autenticación simple y extensible que implementa la autenticación de sesión HTTP estándar donde Las cookies de sesión se utilizan para enviar solicitudes autenticadas que hacen referencia a los usuarios de sesión de usuario personalizados POCO en el archivo Proveedor de almacenamiento en caché registrado.

ServiceStack también incluye una serie de proveedores de autenticación que "autentican por solicitud", en este caso la sesión de usuario autenticada

Research Lines Declared by the Group of Research: Social and Solidarity Economy

Introduction

The concept of the Social and Solidarity Economy (SSE) has gained significant traction over the years as an alternative economic model that prioritizes social well-being, equity, and sustainability over profit maximization. Various academic and research institutions globally have dedicated themselves to studying and promoting this model, contributing to its theoretical and practical development. This report aims to provide a detailed analysis of the research lines declared by groups and institutions focused on the Social and Solidarity Economy, based on the information provided from multiple sources. The report will explore the key research themes, their objectives, and the institutions involved in advancing this field.


Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.
************** Texto de la excepción **************
System.IO.DirectoryNotFoundException: Could not find a part of the path 'd:\temp\_LogOutput.txt'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1

Crea un ChatBot de RAG con GCP usando la plataforma de IA de Vertex

Introducción

Un ChatBot RAG (Generación Aumentada de Recuperación) es un chatbot que puede buscar rápidamente a través de una gran fuente de datos para encontrar la mejor información para responder a sus preguntas, y luego responde de una manera que es fácil de entender, casi como tener una conversación con un amigo experto.

RAG ChatBot Metafórico

Get:105 http://co.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8 amd64 3.8.10-0ubuntu1~20.04.12 [387 kB]
Get:106 http://co.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-stdlib amd64 3.8.10-0ubuntu1~20.04.12 [1,674 kB]
Get:107 http://co.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-minimal amd64 3.8.10-0ubuntu1~20.04.12 [1,896 kB]
Get:108 http://co.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-minimal amd64 3.8.10-0ubuntu1~20.04.12 [720 kB]
Get:109 http://co.archive.ubuntu.com/ubuntu focal-updates/main amd64 ntfs-3g amd64 1:2017.3.23AR.3-3ubuntu1.3 [388 kB]
Get:110 http://co.archive.ubuntu.com/ubuntu focal-updates/main amd64 libntfs-3g883 amd64 1:2017.3.23AR.3-3ubuntu1.3 [150 kB]
Get:111 http://co.archive.ubuntu.com/ubuntu focal-updates/main amd64 rsync amd64 3.1.3-8ubuntu0.7 [322 kB]
Get:112 http://co.archive.ubuntu.com/ubuntu focal-updates/main amd64 uuid-runtime amd64 2.34-0.1ubuntu9.6 [35.3 kB]
Get:113 http://co.archive.ubuntu.com/ubuntu foca

El cuaderno que proporcionaste es un cuaderno de Python para construir y entrenar una Red Neuronal Convolucional (CNN) para reconocer lecturas de medidores de energía. Aquí tienes un desglose detallado:

1. Preparación de Datos

  • Augmentor: El cuaderno comienza mencionando Augmentor, una biblioteca de Python utilizada para la aumentación de imágenes. Esto significa generar variaciones de las imágenes existentes (como voltear, rotar, distorsionar) para aumentar el tamaño y la diversidad del conjunto de datos de entrenamiento.
  • Carga de Datos: El código carga imágenes de dos directorios:
    • './data/raw-data-energy-meters/no-meter-readings-raw/': Imágenes de medidores sin lecturas.
    • './data/raw-data-energy-meters/meter-readings/': Imágenes de medidores con lecturas.
  • Preprocesamiento de Imágenes:
  • El código lee las imágenes en escala de grises utilizando cv2.imread(..., cv2.IMREAD_GRAYSCALE).
graph TD
    A[Farmacia Hospitalaria] ==> B[Comunicación y Coordinación]

    %% Subprocesos de Comunicación y Coordinación
    B --> C(Confirmación de pedido de medicamentos)
    C --> C1{Pedido recibido?}
    C1 -->|| C2[Verificación de disponibilidad]
    C1 -->|No| C3[Reenviar solicitud de pedido]
    
graph TD
    A[Web Scraping] ==> B[Comunicación y Coordinación]
    
    %% Subprocesos de Comunicación y Coordinación
    B --> C(Confirmación de correo)
    C --> C1{Correo recibido?}
    C1 -->|| C2[Revisión de contenido]
    C1 -->|No| C3[Reenvío de correo]