Friday, August 16, 2024

Sunarp consulta partida

 

Obtener numero de partida

https://www.sunarp.gob.pe/bus-personas-juridicas.asp


Consulta partida

https://conoce-aqui.sunarp.gob.pe/conoce-aqui/inicio

Inspect/canvas/copy/Image DATA-URL (to get the page image)

Monday, August 12, 2024

Thursday, August 08, 2024

Sunat 2024

 

Resources:

[1] https://cpe.sunat.gob.pe/noticias/servicio-beta-para-realizar-pruebas-ubl-21

[2] Manual https://cpe.sunat.gob.pe/sites/default/files/inline-files/manual_programador.pdf

[3] Servicios https://cpe.sunat.gob.pe/sites/default/files/inline-files/servicios%20web%20disponibles.pdf

 

References:

[1] https://cpe.sunat.gob.pe/sites/default/files/inline-files/Manual-de-Consulta-Integrada-de-Comprobante-de-Pago-por-ServicioWEB_v2.pdf

 [2] Facturador SUNAT https://cpe.sunat.gob.pe/sistema_emision/facturador_sunat

 

 

Friday, August 02, 2024

Odoo 17 Lessons

 

Custom Entity

https://odooforbeginnersblog.wordpress.com/2017/03/05/how-to-create-wizards-in-odoo/

Menus

https://www.cybrosys.com/blog/how-to-define-menus-actions-in-odoo-17

Reports

https://apps.odoo.com/apps/modules/16.0/report_xlsx


Tools

https://github.com/OCA/server-brand (disable to external apps)



Friday, July 26, 2024

OSE/PSE Resources

Crawler site

wget -m -p -k -np -R '*html*,*htm*,*asp*,*php*,*css*' -X 'www' https://khalifagroup.ma/odoo-server/ --no-check-certificate

Best alternative

lftp -c 'mirror --parallel=100 https://example.com/files/ ;exit'
$vi ~/.lftprc
set ssl:verify-certificate false
 
Alternative host https://57.129.7.94:444/enterprise/  
 
 

References
[1] https://www.m00nie.com/specifically-disable-cert-verification-lftp

https://khalifagroup.ma/odoo-server/enterprise

Thursday, July 04, 2024

Ubuntu18 Upgrade Postgres10 to Postgres12

 

sudo apt-get install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
 
 
#pgdg.list #update
deb https://apt-archive.postgresql.org/pub/repos/apt bionic-pgdg main 

 

$ sudo apt update
$ sudo apt install postgresql-12

 

Error that force us to update

psycopg2.errors.UndefinedFunction: function jsonb_path_query_array(jsonb, unknown) does not exist
LINE 1: ...ate_name_index" ON "product_template" USING gin ((jsonb_path...

 
 

Wednesday, June 26, 2024

Odoo 17 migrations issues

Tips

wkhtmltopdf in ubuntu 18 - Qt problem

The latest package taken from the download page (0.12.6.1-2 at the moment), works on Ubuntu 22.04, it has the QT patch inside

Tools

[1] https://github.com/pierrelocus/odoo-attrs-replace

Friday, June 21, 2024

Alpaca Information

 [1] https://www.youtube.com/watch?v=l_ie4_Yyxjg

[2] Alpaca Breeding/Feeding https://www.youtube.com/watch?v=0sO9rizj7I4

     Types Suri, Tuy-Wacaya

[3] Alpaca Breeding (Chigmo, SilluSillu) https://www.youtube.com/watch?v=ksN5x9y5HNw


Thursday, June 20, 2024

Ubuntu 20 VMWare Player

 

sudo apt update
sudo apt install build-essential linux-headers-generic

Next, download and install from the following resources

VMware-Player-Full-17.5.0-22583795.x86_64.bundle

Download from drive

[1] https://drive.google.com/file/d/1X0MifVmJ_gr5UgShUKGrt8V49YA2wI6O/view?usp=drive_web

[2] Linux Lite 5.2 based on Ubuntu 20 https://osdn.net/dl/linuxlite/linux-lite-5.2-64bit.iso

References:

[1] original link https://salvatorenoschese.it/vmware-17-5-2-download-url/

[2] Linux Lite mirror https://osdn.net/projects/linuxlite/storage/

Friday, June 14, 2024

VPS 2024

 

 

References:

[1] https://github.com/cloudcommunity/Cloud-Free-Tier-Comparison

[2] Uptime Kuma https://github.com/louislam/uptime-kuma

Thursday, June 13, 2024

ERP and CRM

 

102  sudo apt install python3-setuptools
103  sudo apt-get install python3-venv
105  sudo apt-get install python3-virtualenv
106  sudo apt-get install python3.10-venv

112  python3 -m venv odoovenv

118  sudo apt update && sudo apt upgrade -y
119  sudo apt install software-properties-common -y
120  sudo add-apt-repository ppa:deadsnakes/ppa
121  sudo apt update
122  sudo apt install python3.10
123  python3
125  sudo unlink python3
126  python3
131  sudo unlink /usr/bin/python3
132  sudo ln -s /usr/bin/python3.10 /usr/bin/python3

134  cd Software/
135  ls
136  source odoovenv/
137  source odoovenv/bin/activate
138  cd odoo-17.0/
139  ls
141  pip install --upgrade pip
142  pip install -r requirements.txt

150  sudo apt install postgresql
154  sudo apt install python3-dev
155  sudo apt install python3.10-dev
156  sudo apt-get install libsasl2-dev python-dev-is-python3 libldap2-dev libssl-dev
157  sudo apt-get install libldap2-dev
158  sudo apt install python3-ldap
159  sudo apt-get install libpq-dev

Note:

Modules/LDAPObject.c:16:10: fatal error: sasl/sasl.h: No such file or directory

when python3.10 installed from source, and python3.10-dev isn't available

apt-get install python-dev libsasl2-dev
 

Note in Ardaldinho server by python3.10.15

ModuleNotFoundError: No module named 'OpenSSL'

$ pip install pyOpenSSL

ModuleNotFoundError: No module named '_cffi_backend'

$ sudo apt remove python3-cffi
$ pip install cffi  #inner venv

ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509'
 

$ pip install pyopenssl==21.0.0 #inner venv

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'. Did you mean: 'X509_V_FLAG_EXPLICIT_POLICY'?

 
$ pip install cryptography==3.4.8
#inner venv

 

Resources:

[1] https://github.com/odoo/odoo

[2] fe_sendauth https://stackoverflow.com/questions/17996957/fe-sendauth-no-password-supplied

[3] https://store.webkul.com/odoo-pos-pharmacy-management.html

[4] https://apps.odoo.com/apps/modules/14.0/bi_pos_pharmacy_management

 


Tuesday, June 11, 2024

Postgres 10/12 into Linux 18

 

sudo systemctl status postgresql.service

sudo systemctl start postgresql.service

sudo systemctl restart postgresql.service


sudo -i -u postgres psql
 

SELECT version();
 
pg_config --version
psql --version
 
CREATE ROLE mysuperuser2 WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD 'mysuperpass2'  
 
$ sudo vi /etc/postgresql/12/main/pg_hba.conf
 
local   all             postgres                                trust #peer
# TYPE  DATABASE        USER            ADDRESS                 METHOD
# "local" is for Unix domain socket connections only
local   all             all                                     md5 #peer
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     peer
host    replication     all             127.0.0.1/32            md5
host    replication     all             ::1/128                 md5
Enable remote access
$ sudo vi /etc/postgresql/12/main/pg_hba.conf
host    all             all             127.0.0.1/32            md5 
host    all             all             192.168.0.1/24            md5 
$ sudo vi /etc/postgresql/12/main/postgresql.conf
listen_address='*' # host1, host2, ..., localhost  
  

Monday, June 10, 2024

Set default Python3

 

 

fincahuanaco@RolumaraT01:~$ sudo unlink /usr/bin/python3              
fincahuanaco@RolumaraT01:~$ sudo ln -s /usr/bin/python3.10 /usr/bin/python3


 fincahuanaco@RolumaraT01:~$ python3
Python 3.10.14 (main, Apr  6 2024, 18:45:05) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()


Python3.10 on Ubuntu18

Manual Installation

sudo apt install software-properties-common
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev

wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
tar -zxvf Python-3.10.0.tgz  
ls
cd Python-3.10.0/
ls
 
./configure --enable-optimizations
make -j $(nproc)
sudo make altinstall
python3.10

 

References:

[1] https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/

Wednesday, May 01, 2024

Running apps


Runtastic (I uninstalled because force to update your device - Internet connection problems)

Runkeeper  (Wrong GPS tracking)

Strava   (Currently testing)

Runna (Complex, force to use a plan)

Runtopia (Very simple, but works)

Google fit (No maps)

Relive Paid

RoadID Paid

Joggo Paid


Resources:


[1] Strava 2023 https://strava-running-and-cycling-gps.apk.gold/android-7.0








Tuesday, April 16, 2024

Firefox open multiple private window

 

 

/opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com
 

Thursday, April 04, 2024

AI Applications for Draw

 


[1] Swap face (Adapt face shape to target) https://www.artguru.ai #Use anonymous windows

      Same core than previous line https://www.pica-ai.com/

[2] Swap face pose https://faceswapper.ai/swapper  #Free 10 by day (Works good with 3/4 face)

[3] Swap free 8 times/day https://www.vidnoz.com/face-swap.html #Check by IP, PW

[4] Swap free 8 times/day https://www.miocreate.com/face-swap.html  #Check by IP, PW

[5] https://www.ismartta.com/ #Check by IP,  works more time in private window

[0] https://aifaceswap.io/  HD Inf

Compose

[1] Replace hair style https://picsart.com/ai-replace/


By email

 

[1] 10/day https://pixlr.com/face-swap/ HD











Tuesday, April 02, 2024

Nvidia Metrics and more

 

[1] Times by cuda https://developer.nvidia.com/blog/how-implement-performance-metrics-cuda-cc/

[2] GPU Code https://http.download.nvidia.com/developer/GPU_Gems/CD_Image/Index.html 

[3] Fluid in GPU theory https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-38-fast-fluid-dynamics-simulation-gpu


[4] GPU Computing https://researchcomputing.princeton.edu/support/knowledge-base/gpu-computing


Cards 

[1] Guide https://www.nvidia.com/content/geforce-gtx/GEFORCE_RTX_2070_SUPER_User_Guide.pdf

[2] RTX 2070 Techinal summary  https://www.techpowerup.com/gpu-specs/geforce-rtx-2070-super.c3440



Important notes

* CUDA technology is developed by NVIDIA, and it is primarily designed to work with NVIDIA GPUs. CUDA is a parallel computing platform and application programming interface model that allows developers to use NVIDIA GPUs for general-purpose processing.

AMD has its own equivalent technology called OpenCL (Open Computing Language), which is an open standard for parallel programming of heterogeneous systems. OpenCL is not specific to AMD; it is supported by various vendors, including AMD, Intel, and others.

If you have an AMD GPU and want to leverage its parallel processing capabilities, you would typically use OpenCL rather than CUDA. However, it's important to note that not all software applications support both CUDA and OpenCL. The level of support depends on how the software was developed.

 * CUDA technology is specific to NVIDIA GPUs (Graphics Processing Units), and it cannot be used with AMD GPUs. CUDA (Compute Unified Device Architecture) is a parallel computing platform and programming model developed by NVIDIA for their GPUs. It includes a programming interface and software development kit (SDK) for general-purpose computing on NVIDIA GPUs.

On the other hand, AMD uses a different technology called OpenCL (Open Computing Language) for parallel computing across CPUs, GPUs, and other processors. OpenCL is an open standard maintained by the Khronos Group, and it is designed to be vendor-neutral, allowing developers to write code that can run on different hardware platforms, including AMD GPUs. For getting information about CAD Drafting and designing visit CAD Drafter.

If you have an AMD GPU and you are looking to perform GPU-accelerated computing, you would generally use OpenCL or other AMD-specific technologies like ROCm (Radeon Open Compute). CUDA-based applications are not compatible with AMD GPUs, and vice versa.

It's worth noting that some software applications and libraries support both CUDA and OpenCL, allowing users to choose between NVIDIA and AMD GPUs. However, the underlying GPU-specific code would need to be implemented separately for CUDA and OpenCL.

* in 2024 it is possible to run CUDA code in AMD GPUs

https://github.com/vosen/ZLUDA

* Is CUDA faster than MPI?

CUDA is fast, but only if your do a lot of parallel processing on matrices. CUDA can be very fast, but for some kind of applications. Data transfer in CUDA is often the bottleneck. MPI is suitable for cluster environment and large scale network of computers.

 

 

References



[1] NVidia Pascal https://wccftech.com/nvidia-pascal-gpu-gtc-2015/

[2] https://community.amd.com/t5/ai-discussions/is-it-possible-to-use-cuda-technology-with-amd/td-p/643124







Tuesday, March 12, 2024

Animation online

Sketch to animation

[1] https://sketch.metademolab.com/

 

Animate avatar from audio recorded


 

[1] https://new.express.adobe.com/tools/animate-from-audio


Tuesday, February 27, 2024

Online Machine Learning tools

 

 Multiclass Image Classification

https://teachablemachine.withgoogle.com/train/image

Saturday, January 27, 2024

Series Online

[1] Spanish  https://elnovelerovariadito.com/el-senor-de-los-cielos-sus-comienzos-t-1/

[2]

 

Corean 

[1] https://pandrama.app

[2] https://doramashd.com 

[3] https://doramason.com/pais/corea-del-sur/

Sunday, January 14, 2024

AI Animation

Draw to 3D https://monstermash.zone/

 https://econ3d.com/en/

https://www.csm.ai/

https://dreamgaussian.github.io/

Diffusion

Text to image https://ideogram.ai

 

Filters

Image to Image https://www.seaart.ai/ai-tools/ai-filter

Leonardo https://app.leonardo.ai/ai-generations

Speech

Antoni/Adam/Thomas(soft) https://elevenlabs.io/speech-synthesis















Video edition online

 

Downloaders

[1] Skip filters https://www.highperformr.ai/tools/ai-youtube-video-downloader

Tools

[1] Loop 5x/Crop/Resolution https://online-video-cutter.com/loop-video

[2] Extract mp3/Resolution https://video-converter.com

[3] Replace audio https://www.onlineconverter.com/add-audio-to-video


Thursday, December 14, 2023

Windows Server 2019



Quitar mensaje de error al acceder al panel de idioma 

1. Ejecuta secpol.msc 

2. Habilita la siguiente directiva - Directivas locales - Opciones de seguridad - Control de cuentas de usuario: Modo de aprobación de administrador para la cuenta predefinida Administrador

Monday, December 11, 2023

Add audio track to mp4

 

 

ffmpeg -i badges-of-fury-2013-watch-hd-freedownloadvideo.net.mp4 -i badges-of-fury-2013-watch-hd-freedownloadvideo.net
.mp3 -map 0 -map 1 -codec copy output_video.mp4   

ffmpeg -i badges-of-fury-2013-watch-hd-freedownloadvideo.net.mp4 -itsoffset 00:00:24 -i badges-of-fury-2013-watch-hd-f
reedownloadvideo.net.mp3 -map 0 -map 1 -codec copy badges_output_video.mp4


References:

[1] https://stackoverflow.com/questions/11779490/how-to-add-a-new-audio-not-mixing-into-a-video-using-ffmpeg

[2] https://superuser.com/questions/708125/add-audio-at-specific-time-in-video-using-ffmpeg

[3] Extract mp3 from youtube https://tuberipper.com

[4] Download mp4 from dailymotion https://freedownloadvideo.net

Monday, November 20, 2023

Investments

 

[1] PerĆŗ Plazo Fijo https://andina.pe/agencia/noticia-guerra-bancos-2023-mira-cuales-pagan-mayores-tasas-depositos-a-plazos-900339.aspx

Sunday, November 12, 2023

Arcade Games Linux

 

Snes9x

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.snes9x.Snes9x 

ZSNES is a Super Nintendo Emulator that can run on Windows, Linux, FreeBSD, and DOS. It runs as a GUI interface where you can load ROM of NES games.

sudo apt install zsnes
higan is an emulator for Nintendos SNES, NES, Gameboy, Gameboy Color, and Gameboy Advance. It was formerly called bsnes and the SNES emulation is especially complete and polished.
sudo apt install higan 

 

References:

https://www.debugpoint.com/3-nes-emulators-to-play-old-nes-games-in-linux/

 

Tuesday, October 31, 2023

Graph tools

 


š“šØšØš„š¬ š­šØ š¦ššš¢š§š„š² šÆš¢š¬š®ššš„š¢š³šž š§šžš­š°šØš«š¤š¬:
- Geph - https://gephi.org
- Gephisto- https://lnkd.in/diSp3BWN
- VOSviewer - https://www.vosviewer.com
- Cytoscape - https://cytoscape.org
- Kumu - https://kumu.io
- GraphInsight - https://lnkd.in/d5XnkWJr
- NodeXL - https://nodexl.com
- Orange - https://lnkd.in/dZU8Zx3D
- Graphia - https://graphia.app
- Graphistry - https://www.graphistry.com
- SocNetV - https://socnetv.org
- Tulip - https://lnkd.in/dtc_BD33


ššžš­š°šØš«š¤ š„š¢š›š«ššš«š¢šžš¬ š¢š§ šš²š­š”šØš§:
- networkx - https://lnkd.in/dKCCXjif
- graphviz - https://lnkd.in/dtrTeqRv
- pydot - https://lnkd.in/dA46YZvy
- python-igraph - https://lnkd.in/dCGsRXh2
- pyvis - https://lnkd.in/dVrQ64nN
- ipycytoscape - https://lnkd.in/d-hJjDdG
- pygsp - https://lnkd.in/dS7s-A_v
- graph-tool - https://lnkd.in/dvytUzdu
- nxviz - https://lnkd.in/duHbKGPN
- py2cytoscape - https://lnkd.in/dWUU8TZH
- ipydagred3 - https://lnkd.in/diXgFWMD
- ipysigma - https://lnkd.in/dP55J5et
- Py3Plex - https://lnkd.in/dhwe7f_g
- net wulf - https://lnkd.in/dxrHAm2P
 

Monday, September 25, 2023

Render tools - POV Ray

Compiling

https://github.com/POV-Ray/povray/releases/tag/v3.8.0-beta.2 


configure error: Could not link against boost_

sudo apt-get install libboost-all-dev

Saturday, September 23, 2023

Update Gimp

From 2.8 to 2.10 using apt-get

$ sudo add-apt-repository ppa:otto-kesselgulasch/gimp

$ sudo apt-get update

$ sudo apt-get install gimp

 

References:

https://linuxhint.com/install_gimp_210_ubuntu_1804/

Wednesday, September 20, 2023

ASNetwork : Breaking ambiguity

 

 

[1] Salient Object Detection Driven by Fixation Prediction https://openaccess.thecvf.com/content_cvpr_2018/papers/Wang_Salient_Object_Detection_CVPR_2018_paper.pdf

[2] Action Schema Networks https://ipc2023-learning.github.io/abstracts/asnets.pdf

Tuesday, September 12, 2023

Volume Fractions

Thesis

[1] Smooth Interface Reconstruction from Volume Fraction Data Using Variational
Techniques and Level Set Methods

https://escholarship.org/content/qt2466j56f/qt2466j56f_noSplash_4c9dcb1c6cacafb1bcdc4a7bab220630.pdf?t=odypru

 

Volume Fractions in Rectangular Grids



Analytical Relations Connecting Linear Interfaces and Volume Fractions in Rectangular Grids
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.536.848&rep=rep1&type=pdf
[1] Markers - A front-tracking algorithm for accurate representation of surface tension (Zaleski)
https://hal.archives-ouvertes.fr/hal-01445441/document



[2] Level Set Methods (LSM)
[2.1] Tutorial Level Set vs Marching Methods https://math.berkeley.edu/~sethian/2006/Explanations/level_set_explain.html

[2.2-1] Part I (Def) https://wiseodd.github.io/techblog/2016/11/05/levelset-method/
[2.2-2] Part II(Application for segmentation) https://wiseodd.github.io/techblog/2016/11/20/levelset-segmentation/

Monday, September 11, 2023

Deep Gan Applications

Super Resolution

[0] https://replicate.com/collections/super-resolution 

[1] https://replicate.com/nightmareai/real-esrgan  /require github account

[2] https://replicate.com/mv-lab/swin2sr (alternative) 

[3] Nightmare https://www.nightmare-ai.com/playground

Styles

[1] https://replicate.com/collections/ml-makeovers 


Restoration



[1] 5byday https://www.restorephotos.io/restore (based on replicate)

[2] https://replicate.com/collections/image-restoration

[3] https://replicate.com/microsoft/bringing-old-photos-back-to-life

 

Alternatives

[1] https://ai.nero.com/photo-restore

[2] https://www.aiease.ai/app/restore-photo

[3] https://photobooth.online/en-us/photo-restoration/upload

[4] https://www.photorestore.io/restore 

[5] https://jpghd.com/








Friday, September 01, 2023

Frequence space ( Source codes )


References:

[1] Elliptic Harmonics http://www.cs.utah.edu/~jfishbau/advimproc/project3/



Resources:
 0) Discrete Fourier Transform 1D, source code c/c++/java/python and more https://www.nayuki.io/page/how-to-implement-the-discrete-fourier-transform
1) Discret Sine Tranform  https://people.sc.fsu.edu/~jburkardt/cpp_src/sine_transform/sine_transform.html
  1.1) Python version http://www-personal.umich.edu/~mejn/computational-physics/dcst.py

2) Haar Wavelet compression https://people.math.osu.edu/husen.1/teaching/wi2010/572/572.html

3) Fast Fourier Tranform 1d/2d http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html
4) Elliptic Fourier Transform source code python https://github.com/hbldh/pyefd
5) Spatial Elliptical Fourier Descriptors python https://spatial-efd.readthedocs.io/en/latest/raster_link.html 


6) Morphometric in R https://github.com/MomX/Momocs/

Saturday, August 19, 2023

Writing

Image de couverture

[1]  Writing and Publishing Scientific Papers Image de couverture Series https://books.openbookpublishers.com/10.11647/obp.0235.pdf

AI Surfaces

 

[1] https://dsilvavinicius.github.io/nise/

Tuesday, July 04, 2023

Geo DataScience

Datasets

[1] Flood Mapping https://ieee-dataport.org/competitions/2024-ieee-grss-data-fusion-contest-flood-rapid-mapping

 

[1] datos https://www.datosabiertos.gob.pe/

[2] lat/long PerĆŗ https://github.com/jmcastagnetto/ubigeo-peru-aumentado

[3] variables vivienda y conocimiento https://www.redalyc.org/journal/6357/635767693004/html/

CONCLUSIONES

El conocimiento sobre dengue, las viviendas que presentan depósitos de basura y agua acumulada estÔn relacionadas a los casos de Dengue en los distritos de Luyando y Rupa Rupa, en la provincia de Leoncio Prado. Persisten conductas de riesgo a pesar del adecuado conocimiento sobre la enfermedad. No se encontró asociación con el tipo de vivienda, género, material predominante en las viviendas, tipo de abastecimiento de agua y servicios higiénicos.

 

[4] datos amazonia https://www.dge.gob.pe/sala-situacional-dengue/#grafico27

[5] Mapas PerĆŗ .shp https://www.geogpsperu.com/2014/03/base-de-datos-peru-shapefile-shp-minam.html

[6] Información Geoespacial Perú https://www.idep.gob.pe/geovisor/descarga/visor.html

[6] HidrografĆ­a https://data.humdata.org/dataset/hidrografia-de-peru?

   https://data.humdata.org/dataset

[7] Ɓreas  naturales protegidas https://geo.sernanp.gob.pe/visorsernanp/

[8] Biomasa Brasil https://mapbiomas.org/download

Processing 

[1] plotting maps https://ggplot2-book.org/maps.html

[1.1] https://community.rstudio.com/t/geom-label-with-custom-background-and-color-text/45161

[2] poly2nb https://www.rdocumentation.org/packages/spdep/versions/1.2-8/topics/poly2nb

[3] Indicadores demograficos PerĆŗ (teoria) https://www.inei.gob.pe/media/MenuRecursivo/publicaciones_digitales/Est/Lib1743/Libro.pdf


Sunday, July 02, 2023

R Installation and more

 
* R installation

$sudo apt install r-base

 

* Package installation

install.packages('readr')

 

* install.packages('sf')

//Configuration failed because libudunits2.so was not found

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev 

* install.packages('dplyr') //dataframe, works with R version >= 3.5

* install.packages('tidyverse') //Contains other packages (dplyr, ggplot2, etc.)  

* install.packages('spdep') //Spatial Dependence: Weighting Schemes, Statistics. A collection of functions to create spatial weights matrix objects from polygon

* install.packages('GGally') //extends 'ggplot2'
 
* install.packages('leaflet') //makes it easy to integrate and control Leaflet maps in R.

* install.packages('coda')
 
* install.packages('CARBayes')
* install.packages('CARBayesdata') 
 
* install.packages('xlsx')  
 
    dependences:
      1) java
      2) sudo apt-get install openjdk-11-jdk
      3) sudo R CMD javareconf    
      4) https://github.com/PCRE2Project/pcre2/releases  
      4.1) compilation https://www.appsloveworld.com/r/100/371/how-to-solve-lpcre2-8-error-while-installing-rjava-package-in-r

* install.packages('readxl')
 
* install.packages('tmap')
 
 
 
References:

[1] rstudio https://linuxconfig.org/rstudio-on-ubuntu-18-04-bionic-beaver-linux

[2] R 3.5 installation on Linux 18 https://rtask.thinkr.fr/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages

[2] rstudio previous https://docs.posit.co/previous-versions/rstudio/

Thursday, June 29, 2023

Latex writing

Highlighting code

[1] Custom C https://tex.stackexchange.com/questions/312789/lstdefinelanguage-cannot-handle-keywords-if-endif


Multi references

\bibliography{paper,references2019}

Monday, June 26, 2023

Soundscape works

 

[1] A pipeline for identification of bird and frog species in tropical soundscape recordings using a convolutional neural network

https://www.sciencedirect.com/science/article/pii/S1574954120300637?via%3Dihub

[2] https://www.frontiersin.org/articles/10.3389/fevo.2021.738537/full

Backtesting

 

[1] popular code https://github.com/kernc/backtesting.py/tree/master/backtesting

[2] https://blog.devgenius.io/algorithmic-trading-backtesting-a-strategy-in-python-3a136be16ece

[3]  https://towardsdatascience.com/backtest-your-trading-strategy-with-only-3-lines-of-python-3859b4a4ab44

Monday, June 19, 2023

Transformers in Computer Vision

 

[1] Review https://sh-tsang.medium.com/review-vision-transformer-vit-406568603de0

[2] Colab ViT Tutorial https://colab.research.google.com/github/hirotomusiker/schwert_colab_data_storage/blob/master/notebook/Vision_Transformer_Tutorial.ipynb

[3] ViT pytorch https://github.com/lucidrains/vit-pytorch

[4] Vit Keras https://wandb.ai/ayush-thakur/keras_cv_vit/reports/Image-Classification-Using-Vision-Transformer-and-KerasCV--VmlldzozNTE4MzMz

[5] Fine tunning https://huggingface.co/blog/fine-tune-vit

[6] Full material https://github.com/cmhungsteve/Awesome-Transformer-Attention

Watercolor tips

 

Material

[1] https://www.nicoletalle.com/como-elegir-el-mejor-set-de-acuarelas/

Paper

[1] ...

Friday, June 16, 2023

Latex - Format listing environment

minted package 

References:

[1] https://www.overleaf.com/learn/latex/Code_Highlighting_with_minted

Tuesday, June 06, 2023

Ubuntu 18 OpenGL compilation issues

1) 

In file included from main.cpp:8:0:
gluvi.h:10:10: fatal error: GL/glut.h: No such file or directory
#include <GL/glut.h> // ...when everyone else puts it here?
         ^~~~~~~~~~~

$ sudo apt-get install freeglut3-dev

2)

util.h: In function ‘double randhashd(unsigned int)’:
util.h:259:33: error: UINT_MAX’ was not declared in this scope
{ return randhash(seed)/(double)UINT_MAX; }

#include <climits>

3)

array1.h: In constructor ‘Array1<T>::Array1(long unsigned int, const T*, long unsigned int)’:
array1.h:124:12: error: memcpy’ is not a member of ‘std
      std::memcpy(data, data_, n*sizeof(T));

#include <cstring>


4) Does not find/recognize libGL

fincahuanaco@pisces:~/DRIVE/Research23/viscosity$ g++ testgl.cpp -lglut -lGLU -L/usr/lib -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

#Check symbolic link

$ file /usr/lib/x86_64-linux-gnu/libGL.so 
/usr/lib/x86_64-linux-gnu/libGL.so: broken symbolic link to libGL.so.1.0.0 
 
$ file /usr/lib/x86_64-linux-gnu/libGL.so.1.7.0 #this is right file
/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

#Update libGL link, first go to directory and update

$ cd /usr/lib/x86_64-linux-gnu
$ sudo ln -s libGL.so.1.7.0 libGL.so

#back to source directory and try again

fincahuanaco@pisces:~/DRIVE/Research23/viscosity$ g++ testgl.cpp -lglut -lGLU -lGL            
fincahuanaco@pisces:~/DRIVE/Research23/viscosity$ ./a.out

References:

[1] First OpenGL code http://www.codebind.com/linux-tutorials/install-opengl-ubuntu-linux/




Friday, June 02, 2023

Tuesday, May 30, 2023

My Wallpapers

 [1] Leopard https://wallhere.com/en/wallpaper/1058505

Saturday, May 20, 2023

AI tools to create videos

[0] Create a Story using chatGPT

[1] Text to speach https://www.speachy.ai  #no includes english/doesnt work

[2] Text and Speach to Video https://invideo.io/

[3] Free Atatars https://www.synthesia.io


Data Visualization tools

 

[1] A new library for LLMs and NNs that provides visual clustering analysis and model interpretability. Super useful.

!pip install arize-phoenix

Wednesday, May 17, 2023

CG Visualization tools

 

[1] tools https://graphics.tudelft.nl/software/

[2] Surface from fluid in GPU https://github.com/xiaoxiaoyu1872/PostMPS

Tuesday, May 16, 2023

Latent space

 

References:

[1] https://www.europeanvalley.es/noticias/el-espacio-latente-en-la-ia/

[2] https://rstudio-pubs-static.s3.amazonaws.com/840251_35002e1971484924bc78c24f442e530a.html

Tuesday, May 09, 2023

Convert Photo in Cartoon

 

 

[1] https://imglarger.com/Cartoonizer

[2] https://vanceai.com/toongineer-cartoonizer/

[3] Prompt image to cartoon https://deepai.org/machine-learning-model/image-editor

[4] https://www.befunky.com/create/photo-to-cartoon/

[5] Head+ [Body models]  https://imagetocartoon.com/ 10/week

[6] 4Adults AI https://metaroids.com/lists/adult-ai-art-tools-that-can-generate-nsfw-ai-images/

Wednesday, April 12, 2023

Jetson Wifi issues

#Alternative to wpa_supplicant

Creating connection(important don't remove --):

$ nmcli connection add type wifi con-name "myconname" ifname wlan0 ssid "eduroam" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls
 802-1x.phase2-auth mschapv2 802-1x.identity "USERNAME" 
$ sudo --ask nmcli c up myconname 
 

 

 

$ ls /etc/NetworkManager/system-connections  #show connections
$ cat /etc/NetworkManager/system-connections/myconname #show file connection 
$ nmcli con show myconname  #show connection detailed

Error 1:

password for '802-1x.identity' not given in 'passwd-file' 

Solution 1:

$ vi mypassfile  #add next line with pass value
802-11-wireless-security.psk:mypassvalue

$ nmcli con up <myconname> passwd-file <mypassfile>



References:

[1] Single connection https://www.linuxfordevices.com/tutorials/ubuntu/connect-wifi-terminal-command-line

[2] https://vessokolev.blogspot.com/2018/08/using-nmcli-to-create-8021x-eap-ttls.html

 




 

 

Monday, April 10, 2023

Python - Creating virtual environments

Install pip if it doesn't exist


$curl -O https://bootstrap.pypa.io/get-pip.py

$python3 get-pip.py --user

$python3 -m pip list

$python3 -m pip install tensorflow --no-cache-dir  #for space issue
 

Error during execution of: python3.8 -m venv myenv

Error: Command '['/path/to/desired/env/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

Solution: Create a virtual environment using a especific python version

$virtualenv --python=$(which python3.7) envtf4p37


 

Thursday, April 06, 2023

Proxy list and tools

 

 

Tools:

[1] https://hidemy.name/en/proxy-checker

[2] Listing proxies by country https://www.proxynova.com/proxy-server-list/country-us

Monday, April 03, 2023

FAPESP Brazil

References

[1] https://fapesp.br/valores/bolsasnopais

Tuesday, March 28, 2023

Jetson Nano and Tensorflow 2.4 in Python3.6

 

References:

[1] https://qengineering.eu/install-tensorflow-2.4.0-on-jetson-nano.html

[2] Lite https://qengineering.eu/install-tensorflow-2-lite-on-jetson-nano.html

[3] Install bazel https://github.com/jkjung-avt/jetson_nano/blob/master/install_bazel-3.1.0.sh

Linux verify disk activities

 

 

$ sudo apt-get install iotop

$ sudo iotop -a
$ sudo iotop -oPa -d 2  #more specific
 

$ iostat  #activity by sda, sdb, etc.
 

jbd2 is a kernel thread that updates the filesystem journal.

 

References:

[1] Reduce firefox disk access https://gist.github.com/gagarine/5cf8f861abe0dd035b7af19e4f691cd8

[2] Monitoring disk activity(htop) https://askubuntu.com/questions/276669/how-to-monitor-disk-activity

Get create/birth date from files

$ stat wakeup.txt  #get the inode

$ df -h wakeup.txt #get device name sdxy

$ sudo debugfs -R 'stat <586205>' /dev/sda1

Output:

Inode: 586205   Type: regular    Mode:  0664   Flags: 0x80000
Generation: 1277687204    Version: 0x00000000:00000001
User:  1000   Group:  1000   Size: 31
File ACL: 0    Directory ACL: 0
Links: 1   Blockcount: 8
Fragment:  Address: 0    Number: 0    Size: 0
ctime: 0x615eed87:dba39c9c  -- Thu Oct  7 09:52:23 2021
atime: 0x64231159:334e6b48  -- Tue Mar 28 13:10:01 2023
mtime: 0x615eed87:dba39c9c  -- Thu Oct  7 09:52:23 2021
crtime: 0x615eed87:dba39c9c -- Thu Oct  7 09:52:23 2021
Size of extra inode fields: 32

 

References:

[1] https://www.linuxshelltips.com/find-file-creation-date/

[2] https://www.baeldung.com/linux/get-file-creation-date


 

Upgrade old Android to 10 in Sony Xperia

 https://dev.androidfilehost.com/?w=files&flid=295879&sort_by=name&sort_dir=ASC  https://twrp.me/sony/sonyxperia10.html   https:...