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


Friday, December 18, 2020

Houdini 18 : Parse .bgeo files

 

$hython /opt/hfs18.0.460/houdini/public/hgeo/hgeo.py file.bgeo

       7199 Points
       7199 Vertices
          1 Primitives
----- Attributes -----
Point Attributes
   numeric P[3]
   numeric v[3]
Primitive Attributes
   string name[1]
Global Attributes
   numeric rest_ratio[1]
   numeric rest2_ratio[1]
   numeric timescale[1]
1 Primitives
         1 PolySoup
Primitive 0 is a PolySoup and has 0 vertices.

 

$ hython /opt/hfs18.0.460/houdini/public/binary_json/json_binary_verify.py /opt
/hfs18.0.460/houdini/geo/defgeo.bgeo  
JSON Valid: /opt/hfs18.0.460/houdini/geo/defgeo.bgeo (0.002985 s)

 

Professor Position Requeriments

How to write "memorial" para concurso

[1] Examples https://marcoarmello.wordpress.com/2018/07/19/memorial/ 


Friday, November 06, 2020

Books

 

[1] La Incognita Newton ( My First book )


 

[1] Amazon https://www.amazon.com/INCOGNITA-NEWTON-CATHERINE-SHAW/dp/B00A6FIPGK


[2] As palavras de saramago

https://kbook.com.br/wp-content/uploads/2016/07/aspalavrasdesaramago.pdf

Monday, November 02, 2020

Compile g3dviewer in Ubuntu16

 

Source:

[1] http://automagically.de/g3dviewer/


Settings:

$cd src

$grep DATA_DIR *
$locate g3dviewer.glade #to define DATA_DIR

#To find right libraries

$pkg-config --libs gtk+-2.0     
$pkg-config --libs gtkglext-x11-1.0

 

Compile Code:

$gcc -o app main.c model.c screenshot.c texture.c trackball.c glarea.c gl.c gu
i_callbacks.c gui_glade.c gui_infowin.c gui_log.c -I /usr/include/gtk-2.0 -I /u
sr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/inclu
de/cairo -I /usr/include/pango-1.0 -I /usr/lib/x86_64-linux-gnu/gtk-2.0/include
-I /usr/include/gdk-pixbuf-2.0 -I /usr/include/atk-1.0 -I /usr/include/gtkglex
t-1.0 -I /usr/lib/gtkglext-1.0/include -I /usr/include/libglade-2.0 -lgtk-x11-2
.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
-lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lm
-lGL -lglut -lGLU -lglade-2.0 -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL
-lXmu -lXt -lSM -lICE -lgdk-x11-2.0 -lpangox-1.0 -lX11 -Wl,--export-dynamic -l
gmodule-2.0 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lc
airo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib
-2.0 -lfontconfig -lfreetype -lg3d


 


Friday, October 30, 2020

Maxx alternatives

 

Resources:

[1] php+mysql https://sourceforge.net/projects/simple-invoice/

      demo http://obedalvarado.pw/simple-invoice/

[2] php+mysql https://sourceforge.net/projects/gatax/

 

Compile k3d in Ubuntu 16

 

Logo

Source http://www.k-3d.org/

Main errors:

INCLUDE(K3DFindFreetype2) # freetype6-dev

INCLUDE(K3DFindGtkmm) #DEBUG 

https://gtkmm.org/en/download.html #works with version 2.x

INCLUDE(K3DFindFTGL) #DEBUG

#To DEBUG Variables

message(STATUS "DEBUG: K3D_FREETYPE2_FOUND: ${K3D_FREETYPE2_FOUND}")
message(STATUS "DEBUG: Aqsis_FOUND: ${Aqsis_FOUND}")

#Support CUDA need to enable in CMakeLists.txt (main)

Day 2:

K3DFindBoost.cmake (update paths)

SET(K3D_BOOST_INCLUDE_DIR "/usr/local/include" CACHE PATH "Override the default location for Boost header files.")
SET(K3D_BOOST_LIBRARY_DIR "/usr/local/lib" CACHE PATH "Override the default location for Boost libraries.")


renderframe/CMakeLists.txt

LINK_DIRECTORIES() #add boost path

TARGET_LINK_LIBRARIES()  #add boost_regex boost_program_options boost_system boost_python27 boost_thread boost_date_time

 #disable CGAL

#K3D_CHECK(K3D_BUILD_CGAL_MODULE REQUIRES K3D_CGAL_FOUND RESOURCE "CGAL") #DEBUG


 

Saturday, October 24, 2020

Compile and Links snippets

 

 

[1] cmake parameters https://stackoverflow.com/questions/31387188/pass-variable-value-to-make-using-cmake

 

[2] PYTHONPATH https://www.devdungeon.com/content/python-import-syspath-and-pythonpath-tutorial

 

Wednesday, October 21, 2020

Boost 1.7 on Ubuntu16

 

 

https://www.boost.org/users/download/


Enable to work with Python3


cd boost1.7
 $./bootstrap.sh -with-libraries=python -with-python-version=3.6 
$./b2
$sudo ./b2 install

Thursday, October 01, 2020

Sunday, September 27, 2020

Pdf Listen tools

 

 

http://freesoftwaremagazine.com/articles/listen_your_books_epub_pdf_okular/

 https://askubuntu.com/questions/633337/pdf-reader-that-can-read-out-loud

Installed this extension on chrome called readaloud

https://www.sodapdf.com/pdf-reader/  (Just for open pdf online)

Friday, September 25, 2020

Python Animation Matrix Convolution

 

[1] Convolution animation https://stackoverflow.com/questions/52067833/how-to-plot-an-animated-matrix-in-matplotlib

Friday, September 18, 2020

Time series

https://towardsdatascience.com/the-complete-guide-to-time-series-analysis-and-forecasting-70d476bfe775

https://github.com/AileenNielsen/TimeSeriesAnalysisWithPython
https://github.com/aurea-soriano/PublicAnomalyDetection

 

Tools

[1] Smooth time series

https://machinelearningmastery.com/moving-average-smoothing-for-time-series-forecasting-python/


[2] Auto encoders https://towardsdatascience.com/autoencoders-for-the-compression-of-stock-market-data-28e8c1a2da3e


PostgreSQL json fields

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