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

 

 

Running apps

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