Wednesday, March 22, 2023

Houdini Repositories

 

 

host: ftp.sidefx.com

Houdini5.5 to Houdini19.5 Installers (Windows.exe/Linux.tar.gz/Macosx.dmg)




Jetson Nano installation

 

Installing cuda11 in Jetson Nano [1]. All instructins works, but doesn't run on it. Better is cuda10.

 

[1] https://jfrog.com/connect/post/installing-cuda-on-nvidia-jetson-nano/

 

 

Errors:

The following packages have unmet dependencies

...
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Fix:

sudo apt-get -o dpkg::Options::="--force-overwrite" install --fix-broken

 

Tuesday, March 21, 2023

Python and OpenCV issues

Error:

   import cv2, numpy as np,time
 File "/home/fincahuanaco/.local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in <module>
   from .cv2 import *
ImportError: numpy.core.multiarray failed to import

 

Solution:

$ python3 -m pip install opencv-python==4.0.0.21

$ python3 -m pip list  
 

opencv-python          4.0.0.21

numpy                  1.15.0

 

Other combinations

opencv_python==4.4.0.46 and numpy==1.19.3 works.

 

Saturday, March 18, 2023

AWS Python issues

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

References:

[1] https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-linux.html

 

AWS Common commands

 

Without ifconfig command

public IP

$ curl ifconfig.me

private IP

$ ip addr 

References:

[1] https://opensource.com/article/18/5/how-find-ip-address-linux

Friday, March 17, 2023

Vocal Remover

 

[1] AI Vocal Remover and Isolation https://vocalremover.org/

[2] AI Vocal remover, it split in to tracks https://multimedia.easeus.com/vocal-remover/    #2024

 

Tuesday, February 28, 2023

ffmpeg: Extract audio and reinsert a new for use in whatsapp

 

#Extract audio

ffmpeg -i mad-pi.mp4 -map 0:a:0 mad-pi_audio.wav 

 

#Extract reinsert new audio

ffmpeg -i mad-pi.mp4 -i mad-pi_audiohd.mp3 -c:v copy -map 0:v:0 -map 1:a:0 new.mp4
 

#reencode for whatsapp

ffmpeg -i new.mp4 -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p working.mp4

 

Friday, February 17, 2023

Python tools for Web Developers

 

[1] FastAPI https://fastapi.tiangolo.com/

[2] Dash Python https://dash.plotly.com/background-callbacks

 

Wednesday, February 15, 2023

Ringtones: Download mp3

 

 

Resources:

[1] Easy download https://mp3-ringtone.com/

[2] Play and using FireBug download https://www.zedge.net/find/ringtones/2023


Monday, February 13, 2023

ffmpeg: Extract mp3 from video

 

 ffmpeg -i mad-principio_peter.mp4 -vn -y out1.mp3 #9M

 

ffmpeg -i mad-principio_peter.mp4 -f mp3 -ab 192000 -vn out2.mp3 #14M

ffmpeg -i mad-principio_peter.mp4 -f mp3 -ab 128000 -vn out3.mp3 #9M
ffmpeg -i mad-principio_peter.mp4 -vn -acodec libmp3lame out4.mp3 #9M

ffmpeg -i mad-principio_peter.mp4 -acodec libmp3lame -ab 128k out5.mp3 #9M

ffmpeg -i gym.mp4 -f webm -c:v libvpx -b:v 1M -acodec libvorbis gym.webm -hide_banner

Second

ffmpeg -i sample.avi -q:a 0 -map a sample.mp3  #complete
ffmpeg -i sample.avi -ss 00:03:05 -t 00:00:45.0 -q:a 0 -map a sample.mp3 #fraction
Parameters :
-q:a 0 for variable bit rate
-ss starting timestamp
-t  the encoding time (If you don't specify, it will go to the end)
-map 0:a:3 selects audio stream #4 (ffmpeg starts counting from 0) 
** specific the timestamps in HH:MM:SS.xxx format.

 

References:

[1] https://json2video.com/how-to/ffmpeg-course/ffmpeg-extract-audio.html

Friday, December 23, 2022

Download zip file from Google Drive

 First

Share your file in GD (with anybody access by link) and get FILEID

Second

Execute next code(replace FILEID and choose FILENAME):

wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt

 

Note:

Previous methods doesn't work, because now GD needs confirmation, then using cookies it's possible.

Monday, December 12, 2022

Ubuntu NFS Installation

On Server (10.10.7.229):

$ sudo apt install nfs-kernel-server  #install server

$ sudo mkdir -p /mnt/nfs_drive  #create share point

$ sudo chown -R nobody:nogroup /mnt/nfs_drive  #no owner

$ sudo chmod 777 /mnt/nfs_drive  #set r/w permission

$ sudo vi /etc/exports  #define clients grants
 

/mnt/nfs_drive 10.10.7.218(rw,sync,no_subtree_check) #mine
/mnt/nfs_drive 10.10.7.235(rw,sync,no_subtree_check) #houdini

$ sudo exportfs -a

$ sudo systemctl restart nfs-kernel-server
 

On Client: 

$ sudo apt install nfs-common 

$ sudo mkdir -p /mnt/nfs_drive_client   #mirror

$ sudo mount 10.10.7.229:/mnt/nfs_drive /mnt/nfs_drive_client

Notes: 

$ sudo ufw status  #verify the firewall, more details in reference[0]


References: 

[0] Working https://linuxhint.com/install-and-configure-nfs-server-ubuntu-22-04/

[1] https://www.tecmint.com/install-nfs-server-on-ubuntu/

Wednesday, November 23, 2022

qemu bridge to enable network during simulation

 Install brctl

 sudo apt install bridge-utils

Add new virtual bridge

sudo brctl addbr virbr0
sudo brctl addif virbr0 eth0 

Check

/etc/qemu-ifup and /etc/qemu-ifdown  #files
 

 

 

 

Monday, November 21, 2022

Candide Model Applications

 

[0] Model and code https://github.com/wobushizhanghua/candide3-face/blob/master/src/main.cpp

[1] Landmark 3D https://webspace.science.uu.nl/~veltk101/publications/art/wss06.pdf 

[2] https://github.com/MarekKowalski/FaceSwap

[3] https://github.com/jorticus/face-replace/blob/master/README.md

 

Friday, November 18, 2022

Gimp Python-Fu

 

[0] https://www.gimp.org/docs/python/index.html#PREGION-OBJECT-MEMBERS

[1] https://www.gimp.org/docs/python/index.html#DRAWABLE-OBJECT-METHODS

[2] http://myvirtualbrain.blogspot.com/2012/06/gimp-python-fu-very-basics.html 

[3] Samples https://github.com/jfmdev/PythonFuSamples

[4] https://github.com/gummyCowboy/GIMP-python-fu

[5] https://gist.github.com/garystafford/5259576a7e9299d5b80284489aa25fc3


Tuesday, May 31, 2022

OnLine Animation

[0] gif editor crop, mp4 to gif https://ezgif.com

[1] https://www.powtoon.com/?locale=en

[2] https://www.animaker.com/

[3] https://biteable.com/

 

 

Tuesday, May 10, 2022

Houdini Trying to use textures

 

[1] How to use textures on Houdini

http://wordpress.discretization.de/houdini/home/advanced-2/textures/

[2] Repository of textures with normals

https://opengameart.org/content/50-free-textures-4-normalmaps

[3] Textures for Blender

https://polyhaven.com/textures/brick/outdoor/wall

[4] HDRs (Environment Ilumination patterns) https://polyhaven.com/hdris

Thursday, May 05, 2022

NVIDIA tools

 

 

[1] https://github.com/NVIDIA/warp

https://media.githubusercontent.com/media/NVIDIA/warp/main/docs/img/gifs/nanovdb.gif

Tuesday, May 03, 2022

Ubuntu upgrade cmake

 

1. Download https://cmake.org/download/

2. Unpack and enter to folder to execute commands

./bootstrap
make -j$(nproc)
sudo make install
 

 References

[1] https://askubuntu.com/questions/355565/how-do-i-install-the-latest-version-of-cmake-from-the-command-line

 

Wednesday, April 27, 2022

Monday, April 25, 2022

Python tools

#Force to install a version Python-3.7.4

 wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz

tar xvf Python-3.7.4.tgz
cd Python-3.7.4
./configure --enable-optimizations --with-ensurepip=install
make -j 8
sudo make altinstall



#Install pip module into any version of Python

curl -o get-pip.py https://bootstrap.pypa.io/pip/get-pip.py
python3.8 get-pip.py  #or
python3.9 get-pip.py

Wednesday, March 23, 2022

Stock Price Prediction - data source

 

[1] Nasdaq API https://data.nasdaq.com/sign-up 

[2] API https://data.nasdaq.com/tools/python (API is in setting option)


Sunday, March 20, 2022

Monday, March 14, 2022

Convert webp to png

 

Any file to PNG

$ sudo apt install webp
$ for i in *.webp; do name=`echo "$i" | cut -d'.' -f1`; echo "$name"; dwebp "$i"
-o "${name}.png"; done

Add to Nautilus Script
fincahuanaco@pisces:~/.local/share/nautilus/scripts$ cat toPNG   
dwebp $1 -o "$1.png"
rm $1

$chmod +x toPNG 
 
Updated to Selection to PNG (2023)
#!/bin/bash
count=0
success=0

# Transform command line arguments (if provided)
[[ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]] &&
NAUTILUS_SCRIPT_SELECTED_FILE_PATHS=$(printf "%s\n" "$@")

# Process each file in turn
while IFS= read -r src
do
if [[ -f "$src" ]]
then
# Target
dst="${src}.png"

# Primary conversion to PNG
step=0

dwebp $src -o $dst && ((step++))

# Remove src
if [[ step -eq 1 ]]
then
rm $src && ((step++))
fi

# Update
if [[ step -eq 2 ]]
then
((success++))
fi

# Count it
((count++))
fi

done <<<"$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"

[[ count -gt 1 ]] &&
notify-send "Conversion finished ($success files of $count)"

exit $((count - success)) 
 
AVIF format support
[1] libavif https://github.com/AOMediaCodec/libavif/ 
 
References:

[1] https://unix.stackexchange.com/questions/710013/making-a-bash-script-apply-to-only-selected-files-nautilus 








Saturday, March 12, 2022

Linux Libraries path

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


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


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

 

$ LD_LIBRARY_PATH=. ./programtest  #direct execution
 

$ echo $LD_LIBRARY_PATH  
/usr/local/cuda-8.0/lib64
 

$ ls /etc/ld.so.conf.d
cuda-8-0.conf                   opencv.conf
fakeroot-x86_64-linux-gnu.conf  x86_64-linux-gnu.conf
glew.conf                       x86_64-linux-gnu_EGL.conf
i386-linux-gnu.conf             x86_64-linux-gnu_GL.conf
libc.conf                       zz_i386-biarch-compat.conf

$ldconfig -p  #list libraries

$sudo ldconfig #update paths

 

 


 

C/C++ Tools

 

[1] BIC Interactive C tracer https://github.com/hexagonal-sun/bic


Friday, March 11, 2022

Miner cryptocurrency

 

[0] Card power https://whattomine.com

[1] Linux Dodge https://www.youtube.com/watch?v=Ng-OU38-RjY

     Tool for mine Dodge https://xmrig.com/download

[2] Linux bittorrent https://www.youtube.com/watch?v=y5EWimXPOD0 

[3] Linux Minero(Alternative to xmrig) https://www.youtube.com/watch?v=NMMiT_eMd-s

[1] Windows tool https://unmineable.com/coins/MATIC

[2] How to mine Matic ESP https://www.youtube.com/watch?v=m_qLQQSWRW0

 

Wednesday, February 23, 2022

Cryptomarket Trading and bots

Bots

[1] Master disseration about bots https://repositorio.ufpe.br/bitstream/123456789/30495/1/DISSERTA%C3%87%C3%83O%20Severino%20Mizael%20da%20Silva.pdf

[2] Api info https://www.mercadobitcoin.com.br/trade-api/

[3] Documentation https://www.mercadobitcoin.com.br/docv4#section/Overview 

[3] Documentation v5.3 https://api.mercadobitcoin.net/api/v4/docs

[3] Glossary https://www.mercadobitcoin.com.br/trade-api/#glossario-trade-api

[4]  Api Wrapper MB

       https://github.com/mbampi/mercado-bitcoin 

       https://github.com/samuelfac/mb-api-client-python

[5] Api Wrapper Binance https://python-binance.readthedocs.io/en/latest/

 

Other Strategies

[1] https://zignaly.com/

[2] Free option/triggers https://www.cryptohopper.com/pricing 

[3] Copy trading https://www.napbots.com

[4] Bots $15 / month  https://tradesanta.com/en/pricing 

[5] 1 free Bot https://3commas.io/pricing

[6] AI powered https://signalboa.com

[7] Bots https://bitsgap.com/pricing/



 


Thursday, February 17, 2022

Paraview Convert VTK file to PLY using Paraview script

 

1. vtk2ply 


from paraview.simple import *

import sys

pFrame30vtk = LegacyVTKReader(FileNames=[sys.argv[1]])

SaveData(sys.argv[2], proxy=pFrame30vtk)

Friday, November 26, 2021

Sunday, November 21, 2021

Rip current detection

 

[1] Correntes de retorno https://www.youtube.com/watch?v=yKvDOzvjApE

[2] Rip Current  https://www.youtube.com/watch?v=RJ4hcaJ91TY

[3] Paper 2021 https://arxiv.org/pdf/2102.02902.pdf

 

Tuesday, November 16, 2021

3D grid savig methods using struct.pack

 

Python version for ints
def save2grid(filename,volume,dimx,dimy,dimz):

  with open(filename, "wb") as file:
    for i in range(dimx):
      for j in range(dimy):
        for k in range(dimz):
          f = (volume[i][j][k]*255).astype(np.uint8) #numpy.uint8
          #print(type(f))
          b = struct.pack('B', f)  #was f
          file.write(b)
          
def save2gridfast(filename,volume,dimx,dimy,dimz):
  flat=volume.reshape((dimx*dimy*dimz))
  flat=(flat*255).astype(np.uint8)
  with open(filename, "wb") as file:
       b = struct.pack('%sB' % len(flat), *flat)
       file.write(b) 

Python version for floats

def save2grid(filename,volume,dimx,dimy,dimz):

  with open(filename, "wb") as file:
    for i in range(dimx):
      for j in range(dimy):
        for k in range(dimz):
          f = volume[i][j][k] #[3.14, 2.7, 0.0, -1.0, 1.1]
          b = struct.pack('f', f)
          file.write(b)
def save2grid2(filename,volume,dimx,dimy,dimz):
  flat=volume.reshape((dimx*dimy*dimz))
  with open(filename, "wb") as file:
    for i in range(dimx*dimy*dimz):
       f = flat[i]
       b = struct.pack('f', f)
       file.write(b)
def save2grid3(filename,volume,dimx,dimy,dimz):
  flat=volume.reshape((dimx*dimy*dimz))
  with open(filename, "wb") as file:
       b = struct.pack('%sf' % len(flat), *flat)
       #b = struct.pack('f', f)
       file.write(b)

Update Chrome in Ubuntu

 


# Install
# via http://askubuntu.com/questions/510056/how-to-install-google-chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update 
sudo apt-get install google-chrome-stable


# Update

sudo apt-get --only-upgrade install google-chrome-stable

Sunday, November 14, 2021

Time series forecasting

To review

 

[1] https://machinelearningmastery.com/how-to-develop-lstm-models-for-time-series-forecasting/

[2] https://www.tensorflow.org/tutorials/structured_data/time_series

[3] https://analyticsindiamag.com/tutorial-on-univariate-single-step-style-lstm-in-time-series-forecasting/

[4] https://towardsdatascience.com/multivariate-time-series-forecasting-with-transformers-384dc6ce989b

 

 

Friday, October 29, 2021

Houdini 18 - Changing temp directory

 

Setting temp directory

$ locate houdini.env

/home/cloud/houdini18.0/houdini.env

#
# Houdini Environment Settings
#
# The contents of this file are read into the environment
# at startup.  They will override any existing entries in
# the environment.
#
# The syntax is one entry per line as follows:
#    VAR = VALUE
#
# Values may be quoted
#    VAR = "VALUE"
#
# Values may be empty
#    VAR =  
#

# Example:
#
# HOUDINI_NO_SPLASH = 1


HOUDINI_TEMP_DIR = /home/cloud/.houdinitmp

 

 

Wednesday, October 27, 2021

DualSPHysics Simulation pipeline

 

First Step: Create geometry

[1] FreeCAD https://www.freecadweb.org/downloads.php

[2] Plugin DesignSPHysics https://github.com/DualSPHysics/DesignSPHysics

Second Step: Compile/Install DualSPHysics

[1] How to https://melhorum.blogspot.com/2019/07/dualsphysics.html

Third Step: Run smulation CPU or GPU

[1] ...

Fourth Step: Polygonize/Render

[1] ...

 

 

Tuesday, October 26, 2021

Video tools online

Rotate/Crop/Resize

[1] https://ezgif.com/rotate-video

[2] Fast https://www.rotatevideo.org/ 


Thursday, October 21, 2021

Linux check input ports

 $ sudo cat /proc/ioports

0000-0cf7 : PCI Bus 0000:00
 0000-001f : dma1
 0020-0021 : pic1
 0040-0043 : timer0
 0050-0053 : timer1
 0060-0060 : keyboard
 0061-0061 : PNP0800:00
 0064-0064 : keyboard
 0070-0071 : rtc0
 0080-008f : dma page reg
 00a0-00a1 : pic2
 00c0-00df : dma2
 00f0-00ff : PNP0C04:00
   00f0-00ff : fpu
 0290-0297 : pnp 00:03
 0378-037a : parport0
 037b-037f : parport0
 03c0-03df : vesafb
 03f8-03ff : serial
 0400-041f : 0000:00:1f.3
 04d0-04d1 : pnp 00:04
 0500-053f : 0000:00:1f.0
 0778-077a : parport0
 0800-087f : 0000:00:1f.0
   0800-087f : pnp 00:04
     0800-0803 : ACPI PM1a_EVT_BLK
     0804-0805 : ACPI PM1a_CNT_BLK
     0808-080b : ACPI PM_TMR
     0820-082f : ACPI GPE0_BLK
     0830-0833 : iTCO_wdt.0.auto
     0850-0850 : ACPI PM2_CNT_BLK
     0860-087f : iTCO_wdt.0.auto
0cf8-0cff : PCI conf1
0d00-ffff : PCI Bus 0000:00
 1000-1fff : PCI Bus 0000:05
 2000-2fff : PCI Bus 0000:04

$ cat /proc/bus/input/devices

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0  
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd event1  
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0003 Vendor=046d Product=c016 Version=0110
N: Name="Logitech Optical USB Mouse"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/0003:046D:C016.0001/i
nput/input5
U: Uniq=
H: Handlers=mouse0 event2  
B: PROP=0
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=045e Product=0750 Version=0111
N: Name="Microsoft Wired Keyboard 600"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/0003:045E:0750.0002/i
nput/input6
U: Uniq=
H: Handlers=sysrq kbd event3 leds  
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=045e Product=0750 Version=0111
N: Name="Microsoft Wired Keyboard 600"
P: Phys=usb-0000:00:1d.0-2/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.1/0003:045E:0750.0003/i
nput/input7
U: Uniq=
H: Handlers=sysrq kbd event4  
B: PROP=0
B: EV=10001f
B: KEY=3f0003007f 0 0 4c3ffff17aff32d bf54445600000000 1 130f938b17c007 ffff7bfa
d971dfff febeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=10100000000
B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel Front Mic"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input8
U: Uniq=
H: Handlers=event5  
B: PROP=0
B: EV=21
B: SW=10


$sudo cat /dev/input/event3 #test if it's working



Saturday, October 16, 2021

Linux Touchpad issues

 

xinput list

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Dell Dell Universal Receiver              id=11   [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad          id=16   [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint Stick             id=15   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
   ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
   ↳ Power Button                              id=6    [slave  keyboard (3)]
   ↳ Video Bus                                 id=7    [slave  keyboard (3)]
   ↳ Power Button                              id=8    [slave  keyboard (3)]
   ↳ Sleep Button                              id=9    [slave  keyboard (3)]
   ↳ Dell Dell Universal Receiver              id=10   [slave  keyboard (3)]
   ↳ Laptop_Integrated_Webcam_HD: In           id=12   [slave  keyboard (3)]
   ↳ Dell WMI hotkeys                          id=13   [slave  keyboard (3)]
   ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
   ↳ Dell Dell Universal Receiver              id=17   [slave  keyboard (3)]

xinput -list-props 16

 
Device 'AlpsPS/2 ALPS DualPoint TouchPad':
       Device Enabled (142):   1
       Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
       Device Accel Profile (275):     0
       Device Accel Constant Deceleration (276):       1.000000
       Device Accel Adaptive Deceleration (277):       1.000000
       Device Accel Velocity Scaling (278):    5.000000
       Trackpad Disable Input (305):   0
       Trackpad Sensitivity (306):     0.500000
       Trackpad Touch Pressure (307):  5, 5
       Trackpad Button Settings (308): 1, 1
       Trackpad Button Emulation Settings (309):       0, 1, 100
       Trackpad Button Emulation Values (310): 3, 2, 0
       Trackpad Tap Settings (311):    50, 120, 400
       Trackpad Tap Button Emulation (312):    1, 3, 2, 0
       Trackpad Thumb Detection (313): 0, 0
       Trackpad Thumb Size (314):      25, 70
       Trackpad Palm Detection (315):  0, 0
       Trackpad Palm Size (316):       40
       Trackpad Gesture Settings (317):        10, 100
       Trackpad Scroll Distance (318): 150
       Trackpad Scroll Buttons (319):  4, 5, 6, 7
       Trackpad Swipe Distance (320):  700
       Trackpad Swipe Buttons (321):   8, 9, 10, 11
       Trackpad Swipe4 Distance (322): 700
       Trackpad Swipe4 Buttons (323):  0, 0, 0, 0
       Trackpad Scale Distance (324):  150
       Trackpad Scale Buttons (325):   14, 15
       Trackpad Rotate Distance (326): 150
       Trackpad Drag Settings (327):   1, 350, 40, 200
       Trackpad Axis Inversion (328):  0, 0


xinput -set-prop 16 306 0.5

 

Tuesday, October 05, 2021

Processing mp3 by Python3 in Linux

 

 

$ sudo apt install llvm-8
 

$ locate llvm-config

$ LLVM_CONFIG=/usr/bin/llvm-config-8 pip3 install librosa --user
 

 

packages: llvmlite, numba, soundfile, resampy, audioread, librosa


 

Monday, September 20, 2021

Tuesday, August 31, 2021

Cryptocurrencies Resources

Where to Check

[1] Cryptocurrencies info (BR)  https://investidor10.com.br/criptomoedas/chiliz/

[2] Cryptocurrencies info https://coinmarketcap.com/

[3] https://panoramacrypto.com.br/

[4] Bitcoin https://www.lookintobitcoin.com

[5] Prediction chart https://www.lookintobitcoin.com/charts/stock-to-flow-model/

Where to buy

[1] Choose where to buy by country https://www.buybitcoinworldwide.com/

[2] Exchange in Brazil www.mercadobitcoin.com.br  

Where to Save

[1] Wallet MetaMask (Expensive to transfer in Wallet)

 

PerĆŗ

[1] https://fluyez.com/

[2] https://www.buda.com/


Whales

[1] https://www.whalestats.com/


Software

[1] ATANI Windows/MacOS/Linux https://atani.com/download

   
$ sudo apt update
$ sudo apt install snapd
$ sudo snap install core

$sudo snap install atani

 

 

 

 

 

 

 


Thursday, August 19, 2021

OpenGL in Cuda Study

Starting

[1] https://www.geeksforgeeks.org/getting-started-with-opengl/

 


1) http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/

2) https://math.hws.edu/graphicsbook/c3/s4.html

 

 

Thursday, July 15, 2021

Spanish books

 [1] Calculo http://blog.espol.edu.ec/srpinarg/files/2014/05/Calculo-de-Purcell-9na-Edici%C3%B3n.pdf


Wednesday, July 14, 2021

English movie subtitles

 

Game of Thrones Blue Ray sub titles

https://australiapopulation.com/game-of-thrones-season-3-subtitles/

[2] Shifter https://subshifter.bitsnbites.eu/

Thursday, July 01, 2021

Images to PDF file (case study)

0. Previous requeriments

$sudo apt install img2pdf
$sudo apt install ocrmypdf

1. Download images by script

for n in `seq 1 23`
do
  sn=`printf "%02d" $n`
  echo $sn
  wget https://larepublica.cronosmedia.glr.pe/printed/2021/07/01/lima/pages/$sn.jpeg
done
 

2. Convert images to pdf (after executed download script by sh)

$img2pdf *.jpeg --output rep1.pdf #or

$convert *.jpeg rep2.pdf

$ocrmypdf rep1.pdf rep1_ocr.pdf #reduce size

 

Notes for convert command(change from none to read|write):

sudo vim /etc/ImageMagick-6/policy.xml

<policy domain="coder" rights="none" pattern="PDF" />

<policy domain="coder" rights="read|write" pattern="PDF" />
 
 
Bonus
[1] El Pueblo news url https://www.diarioelpueblo.com.pe/wp-content/uploads/2021/07/01-07-2021.pdf
 

Wednesday, June 30, 2021

Challenges

 

https://www.edx.org/course/high-dimensional-data-analysis

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


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/ 


Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Wrong GPS tracking) Strava   (Curr...