Monday, June 21, 2021

Python Settings to use in environments

Solving multiple python instalation:
 
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
sudo update-alternatives --config python3
  

Solving:

Error: Command '['/home/DRIVE/Temp/aa/bin/python3.9', '-Im', 'ensurepip', '--upg
rade', '--default-pip']' returned non-zero exit status 1.
 

apt-get install python3.6-dev python3.6-venv
python3.6 -m venv myVenv 

Upgrade pip

pip3 install --upgrade pip
 

 

Friday, June 04, 2021

Saturday, March 27, 2021

Houdini Courses

 

[1] https://www.cgcircuit.com/tutorial/houdini-basics-episode-i

 

Developer postions Brazil

 

[1] https://jobs.kenoby.com/eldorado

 

Friday, March 26, 2021

Houdini18 topics

 

Import libraries

 

/opt/hfs18.0/python/lib/python2.7


 

Asset libraries

Digital assets are stored in digital asset library files, with a .hda extension. (Older versions of Houdini used a .otl extension.) Houdini loads any .hda (or .otl) files it finds in HOUDINIPATH/otls.

Steps:

 1) Create Subnet

 2) Define Parameters and Save .otl

References:

[1] creating an otl on Houdini18 https://www.sidefx.com/tutorials/getting-cozy-with-houdini-engine-lesson-3-creating-our-first-otl/ 

[2] Create digital assets https://www.sidefx.com/docs/houdini/assets/create.html

[2] https://www.youtube.com/watch?v=Q6U_q5PASiU


Tuesday, March 23, 2021

Rendering by Python 3

 

trimesh
trimesh-3.9.10-py3-none-any.whl

pyrender
pyrender-0.1.45-py3-none-any.whl

Dependences:
  PyOpenGL==3.1.0
  PyOpenGL-3.1.0.tar.gz

  pyglet>=1.4.10
  pyglet-1.5.15-py3-none-any.whl

  freetype-py
  freetype_py-2.1.0.post1-py2.py3-none-manylinux1_x86_64.whl
 



 

Friday, March 19, 2021

Amazonas deforestation

 

Main page

[1] http://terrabrasilis.dpi.inpe.br/en/home-page/

Dataset

[2] http://www.dpi.inpe.br/prodesdigital/dadosn/

[3] 2005-2009 http://www.dpi.inpe.br/prodesdigital/dadosn/mosaicos/

[4] Image 9GB http://www.dpi.inpe.br/prodesdigital/dadosn/mosaicos/2019/

Wednesday, March 17, 2021

Python set right version to execute 3.6 3.7 3.8

 

 

https://tech.serhatteker.com/post/2019-12/upgrade-python38-on-ubuntu/

https://stackoverflow.com/questions/63823964/importerror-cannot-import-name-sysconfig-from-distutils-usr-lib-python3-8

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

python3 get-pip.py --force-reinstall


ModuleNotFoundError: No module named 'apt_pkg' error
sudo apt-get remove python3-apt
sudo apt-get install python3-apt

 

 


ImportError: No module named OpenGL.GL

apt-get install python3-opengl
or  
pip3 install pyopengl --user

As well as:

sudo apt-get install python python-numpy python-opengl python-qt4 python-qt4-gl

 

 

 

 

Monday, March 15, 2021

Cuda on Linux18 (y2021)

After installation don't forget it(.bashrc):

#Cuda 8.0 Settings
export CUDA_HOME=/usr/local/cuda-8.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64  
PATH=${CUDA_HOME}/bin:${PATH}
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:

 

Drivers

[1] Legacy https://www.nvidia.com/en-us/drivers/unix/

To Review (Cuda and Driver)

CUDA 11.2             >= 450.80.02
CUDA 11.1 (11.1.0)     >= 450.80.02
CUDA 11.0 (11.0.3)     >= 450.36.06
CUDA 10.2 (10.2.89)     >= 440.33
CUDA 10.1 (10.1.105)     >= 418.39
CUDA 10.0 (10.0.130)     >= 410.48
CUDA 9.2 (9.2.88)     >= 396.26
CUDA 9.1 (9.1.85)     >= 390.46
CUDA 9.0 (9.0.76)     >= 384.81
CUDA 8.0 (8.0.61 GA2)     >= 375.26
CUDA 8.0 (8.0.44)     >= 367.48
CUDA 7.5 (7.5.16)     >= 352.31
CUDA 7.0 (7.0.28)     >= 346.46

[1] Compatibility  https://docs.nvidia.com/deploy/cuda-compatibility/index.html 

To Review (Cuda and GCC)

CUDA version     Max GCC version
11.1             10.0
11                9
10.1, 10.2    8
9.2, 10.0      7
9.0, 9.1        6
8                  5.3
7                  4.9
5.5, 6           4.8
4.2, 5           4.6
4.1               4.5
4.0               4.4

Cuda Toolkit from 6.5 to 10 and more

[1] https://developer.nvidia.com/cuda-toolkit-archive

Common problems

[1] Can't locate InstallUtils.pm in @INC

$sh ./cuda(your version).run --tar mxvf #for unpack

$cp InstallUtils.pm /usr/lib/x86_64-linux-gnu/perl-base #check path in error message

[2] Messages during Cuda installation

$sudo ./cuda_6.5.14_linux_64.run --override

$sudo ./cuda_xxx.run --override  #to ignore last compiler or related

#During Cuda 6.5

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 340.29?

#During Cuda 8

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?

#During Cuda 9

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?

[3] Adicional  notes

https://forums.dual.sphysics.org/discussion/1324/get-the-gpu-running


[4] How to disable nouveau driver to install NVIDIA drivers

$vi /etc/modprobe.d/blacklist-nvidia-nouveau.conf
blacklist nouveau
options nouveau modeset=0
$sudo update-initramfs -u 
$sudo reboot 

 

 

Friday, March 12, 2021

Ubuntu users tools

 

To hidden (no initial list at login)

sudo vi /var/lib/AccountsService/users/cloud

SystemAccount=true #change this from false to true

References:

[1] add user https://linoxide.com/usr-mgmt/give-normal-user-root-privileges/

[2] hidden user https://swatij.me/hacks/ubuntu/hide-user-from-login-screen-in-ubuntu-14-04.html

Wednesday, March 10, 2021

Ubuntu enable Sony Xperia USB transfer

 

sudo apt-get install libusb-dev

sudo apt-get install gmtp

References:

[1] Manual installation of libmtp http://www.humans-enabled.com/2011/12/how-to-fix-samsung-galaxy-nexus-mtp.html

[2] https://gmtp.sourceforge.io/

[3] Original post https://android.stackexchange.com/questions/36376/cant-explore-files-on-my-sony-xperia-u-using-my-ubuntu-12-10-laptop

VideoChat Background Filter

 

[1] https://github.com/scumjr/cameo

 


Friday, March 05, 2021

Deep nostalgia

 

https://time-travel-rephotography.github.io/

https://www.myheritage.com.br/deep-nostalgia

Tuesday, March 02, 2021

3D Models (free)

 

[1] Gallery https://free3d.com/3d-models/toys?page=2


[2] Cat with Wings https://www.cgtrader.com/items/716159/download-page

Sunday, February 28, 2021

Banks Perú - Credits

 

 75%
Tasa Efectiva Anual (TEA)

https://www.crediscotia.com.pe/Negocios/simuladores/simuladores/credito-libre-disponibilidad

 

 http://aplicacionespichincha.com.pe/simuladorWEB/cotizador.aspx


https://web.compartamos.com.pe/crear/simulador.php


https://www.cajaarequipa.pe/simulador/

Tuesday, February 09, 2021

Online Book Stores

 

[1] https://www.bookdepository.com/ (Problems by tracking/UK?)

[2] https://www.thriftbooks.com (Unavailable by covid)

[3] https://www3.livrariacultura.com.br

[4] http://betterworldbooks.com/ (block brazil country)

[5] https://www.awesomebooks.com (UK?)

Sunday, February 07, 2021

Poligonization tools

 

 

https://snorpey.github.io/triangulation/

https://polygonize.net/

 

 

Friday, February 05, 2021

Houdini 18: Fundamentals

 

PDG & examples (~2020)

[1] https://www.sidefx.com/learn/pipeline-pdg/


Materials

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


Hair Shading

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

Objects

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


Flip

[0] Tips to improve https://blendermarket.com/posts/flip-fluids-10-tips-to-improve-your-blender-workflow

[1] https://vimeo.com/182074285

[2] https://vimeo.com/189254805

[3] Splash https://vimeo.com/209763376

[4] Collider https://vimeo.com/252645795

 

Sources

[1] pool https://www.sidefx.com/forum/topic/27689/?page=1#post-130379


PostgreSQL json fields

select name->'es_PE',* from product_template where name->>'es_PE' like '%MEGACI%'   References: [1] https:/...