Translate tokens (decode)
[1] https://www.jwt.io/
Software Developer, Programming, Web resources and entertaiment. Desarrollo de software, programación, recursos web y entretenimiento.
Object.entries(obj)const obj = { foo: "bar", baz: 42 };
console.log(Object.entries(obj)); // [ ['foo', 'bar'], ['baz', 42] ] const obj = { foo: "bar", baz: 42 };
const map = new Map(Object.entries(obj));
console.log(map); // Map(2) {"foo" => "bar", "baz" => 42}// Using for...of loop
const obj = { a: 5, b: 7, c: 9 };
for (const [key, value] of Object.entries(obj)) {
console.log(`${key} ${value}`); // "a 5", "b 7", "c 9"
}
// Using array methods
Object.entries(obj).forEach(([key, value]) => {
console.log(`${key} ${value}`); // "a 5", "b 7", "c 9"
});const object = {
a: 1,
b: 2,
c: 3,
};
console.log(Object.getOwnPropertyNames(object));
// Expected output: Array ["a", "b", "c"]
const object1 = {
a: 'somestring',
b: 42,
c: false
};
console.log(Object.values(object1));
// Expected output: ["somestring", 42, false]
References:
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames
Interactive learn for example docker, kubernetes, linux, python and more
Resources:
[1] extract endpoints/URLs https://github.com/s0md3v/Diggy/tree/master
[2] alternative to nmap https://github.com/s0md3v/Smap
Qwen Image Edit 2511 — 3D Camera Control
[1] https://huggingface.co/spaces/multimodalart/qwen-image-multiple-angles-3d-camera
Testimonios:
[1] Sesion 29 / Santiago Martin Rivas https://www.youtube.com/watch?v=yKYVZirFdhs
[2] Sesion 30 / Santiago Martin Rivas https://www.youtube.com/watch?v=rXx4uFF8yaM
[3] Sesion 28 / Carlos Pichilingue
[4] Sesion 57/ Gral Rodolfo Robles Espinoza https://www.youtube.com/watch?v=uq6hwVLTLsw (Mafia Montesinos/Generales/Ejercito alternativo)
Caso Barrios Altos
[4] Sesion 17 / Pedro Suppo Sánchez https://www.youtube.com/watch?v=nVy6ysUzIWE
[5] Sesion 24 / Héctor Gamarra Mamani https://www.youtube.com/watch?v=IyNIHDJD9QE
Caso Cantuta
[6] Sesion 19/ Ángel Felipe Sauñi Pomaya https://www.youtube.com/watch?v=A2lsUQ7VKTw
[7] Sesion 23/ Pablo Atúncar Cama https://www.youtube.com/watch?v=BBq6IqQrOAY
Hoy en dia
[1] Hercules Gomez Casanova sale libre https://www.youtube.com/watch?v=w2rhaj_GiBI
Sentencia Final
Sesion 161 https://www.youtube.com/watch?v=zLl9A69dTuU
Referencias:
[1] Escuela de las Americas, egresados https://derechos.org/soa/pe-mq.html
Problem: Time to load is too big. We have 8k products and it take 30seg to load, but is exist concurrence it increase, then we trey to reduce that time without program many code.
Set these in Settings > Technical > System Parameters to limit initial data batch (backported from Odoo 18):
text
point_of_sale.limited_product_count = 500
point_of_sale.limited_customer_count = 100
Problem: CSS file does not loading for apply style to pdf reports
Fail assets loading from manifest file
Go to Settings > Technical > System Parameters (if not exist add it)
Key: report.url
Value: https://your-production-domain.com
Sample:
Key: report.url
Value: http://127.0.0.1:8069
Solve wkhtmltopdf 0.12.5 (with patched qt) for Odoo 17
wkhtmltopdf -V
wkhtmltopdf 0.12.5
sudo apt remove wkhtmltopdf
Get the latest official builds from the wkhtmltopdf site. https://wkhtmltopdf.org/downloads.html
sudo dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt install xfonts-75dpi
sudo dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb
wkhtmltopdf -V
wkhtmltopdf 0.12.6 (with patched qt)
After copy old directory to new OS(U18 to U20) i got python error:
fincahuanaco (e) venv ~ Software odoo-17.0 pip3
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/home/.../odoo-17.0/venv/bin/python3'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/home/.../odoo-17.0/venv/bin/python3'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.platlibdir = 'lib'
sys.executable = '/home/.../odoo-17.0/venv/bin/python3'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python310.zip',
'/usr/lib/python3.10',
'/usr/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f8016431740 (most recent call first):
<no Python frame>
After execute the following command its solved:
fincahuanaco (e) venv ~ Software odoo-17.0 1 export PYTHONHOME=/usr/local
remote-touchpad available on snap
sudo apt install snap
sudo apt install snapd
sudo snap install remote-touchpad
Error: version `GLIBC_2.34' not found
You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:
deb http://security.ubuntu.com/ubuntu jammy-security main
sudo apt update
sudo apt install libc6 References:
[1] https://packages.ubuntu.com/jammy/amd64/libc6/download
[2] https://stackoverflow.com/questions/71940179/error-lib-x86-64-linux-gnu-libc-so-6-version-glibc-2-34-not-found
systemctl status display-manager.service
echo $XDG_CURRENT_DESKTOP
XFCE
echo $DESKTOP_SESSION
xfce
Linux Lite 5.8 with Ubuntu 20 does not show all thumbnails after settings
sudo apt-get install ubuntu-restricted-extras
Install odoo as service Step 1: Create a script user ~ vi /usr/local/bin/odoo-start.sh #!/bin/bash # Optional: Port forward examp...