Sunday, December 18, 2022

Load Strava Heatmap on qgis

 Use the URL:

https://heatmap-external-a.strava.com/tiles-auth/ACTIVITY/COLOR/{zoom}/{x}/{y}.png?Key-Pair-Id=MYVALUE&Policy=MYVALUE&Signature=MYVALUE

After logging in to https://www.strava.com/heatmap/ using a browser, you then have to retrieve and replace the MYVALUE items with appropriate cookie values for the following:

  • CloudFront-Key-Pair-Id
  • CloudFront-Policy
  • CloudFront-Signature
Click on the padlock icon in the URL bar while at https://www.strava.com/heatmap/ and take the values from Cookies.

You can use also this Chrome extension to fill the fields:
https://github.com/zekefarwell/josm-strava-heatmap

Monday, October 31, 2022

Jabra: cannot set freq 48000 to ep 0x3

 To fix this problem, I followed the steps in:

https://cloudalbania.com/posts/2022-04-fix-pulseaudio-usb-device/


Edit /etc/pulse/daemon.conf


$ grep sample-rate /etc/pulse/daemon.conf

; default-sample-rate = 44100

; alternate-sample-rate = 48000


$ pulseaudio --dump-conf  | grep sample-rate

default-sample-rate = 44100

alternate-sample-rate = 48000


and change default-sample-rate to 48000:


$ pulseaudio --dump-conf  | grep sample-rate

default-sample-rate = 48000

alternate-sample-rate = 48000


Finally, restarted PulseAudio with pulseaudio -k



Monday, January 10, 2022

Install MAXIMA 5.30

Unzip all *.rpm that are found in 

https://sourceforge.net/projects/maxima/files/Maxima-Linux/5.30.0-Linux/

(Files maxima-lang-*.rpm are optional)


Download:

 wget http://mirrors.kernel.org/ubuntu/pool/universe/n/ncurses/libncurses5_6.2-0ubuntu2_i386.deb

wget http://ftp.de.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.2+20201114-2_i386.deb


Crear soft link a info/

drwxrwxr-x  6 daam daam 4096 Dec 15 21:18 ./

drwxrwxr-x  4 daam daam 4096 Dec 15 22:03 ../
drwxrwxr-x  2 daam daam 4096 Dec 15 21:22 bin/
lrwxrwxrwx  1 daam daam   41 Dec 15 21:18 info -> /home/daam/bin/maxima-5.30/usr/share/info/
drwxrwxr-x  3 daam daam 4096 Dec 15 20:38 lib/
drwxrwxr-x  3 daam daam 4096 Dec 15 20:38 libexec/
drwxrwxr-x 13 daam daam 4096 Dec 15 21:11 share/
(base) daam@almarhall:~/bin/maxima-5.30/usr$


Para instalar WXMAXIMA:

sudo apt-get install autotools-dev automake

sudo apt-get install libwxgtk-media3.0-gtk3-dev

Download wxmaxima from: https://github.com/wxMaxima-developers/wxmaxima/releases/tag/Version-16.04.2

./configure --prefix=/home/daam/Downloads/wx



Execute:

export LD_LIBRARY_PATH=/home/daam/bin/maxima-5.30/lib/i386-linux-gnu:/usr/lib/x86_64-linux-gnu


Now you can make

./wxmaxima


Saturday, November 27, 2021

Installing KUBUNTU 20.04

I opt for installing using the PPAs/DEBs the following programs (this is because the UBUNTU repositories tend to store older software):

  • anaconda (python distribution)
  • audacity
  • brave browser
  • google earth
  • google chrome
  • gwenview
  • inkscape
  • matlab
  • microsoft edge
  • obstudio
  • pdfstudioviewer
  • qgis
  • texstudio
  • tor browser
  • vscode
  • workrave
  • xournal++
  • zoom


I install from the official repositories the huion driver

digimend-kernel-drivers (en caso de que lo de arriba no funcione)


I install using "apt install"

  • dict 
  • dvipng 
  • git
  • git lfs
  • htop
  • hunspell-es
  • helix
  • imagemagick
  • kdiff3 (no se si valga la pena instalarlo)
  • kolourpaint
  • kompare
  • krename
  • kruler
  • krusader
  • kubuntu-restricted-extras
  • matlab-support
  • mc
  • meld 
  • octave
  • rar
  • subversion
  • synaptic
  • texlive-full
  • ttf-mscorefonts-installer
  • vim
  • wxmaxima


Programas necesarios preinstalados

  • LibreOffice
  • VLC


After installing I had a problem with the resolution 640x480 was the only one available. I fixed it using:

Search Nvidia packages:

$ dpkg -l | grep -i nvidia

Remove all the Nvidia drivers

$ sudo apt-get remove --purge '^nvidia-.*'

Go to: System settings >> Driver manager >> Additional Drivers >> select first one (NVIDIA driver 390 propietary, tested) >> Apply Changes

Reboot

Taken from: https://askubuntu.com/questions/1138975/stuck-at-640x480-resolution/1351606 


Install the HELVETICA FONT: 

https://getfontfree.com/helvetica-font/

So that inkscape does not complain when opening EPS files generated in MATLAB


Finally, disable the boot screen and show only kernel and boot text:

https://askubuntu.com/questions/33416/how-do-i-disable-the-boot-splash-screen-and-only-show-kernel-and-boot-text-inst


Install MATLAB 2021b in Linux Kubuntu 20.04

 In order to install MATLAB 2021b, run the following commands:

$ sudo unzip -X -K matlab_R2021b_glnxa64.zip 

$ xhost +SI:localuser:root

$ sudo ./install 

(adapted from: https://www.mathworks.com/matlabcentral/answers/1459909-installer-hang-when-installing-matlab-r2021b-as-root-on-ubuntu-20-04/)


Finally run:

$ sudo apt install matlab-support

Wednesday, November 24, 2021

Configurando OBS para las clases por ZOOM

* Instale Websockets server plug in.

* Instale StreamFX plug in - 3D transform filter.

* Configure el audio Input/Output con PulseAudio

* Cámara (3D transform filter):
 - Alinear la cámara con el borde superior del tablero, y las dos esquinas superiores con la pantalla.
 - 3D transform:

OPCION 1:
    - Camera mode: Corner pin
    - Enable Mipmapping: OFF (due to computational overhead)

OPCION 2:
   - Camera mode: Perspective
   - Field of view: 86
   - Rotation (pitch): 2.59 grados
   - Shear X: 1.95%
   
* Video Capture Device (V4L2):
   - Video format: BGR3 (emulated)
   - Resolution 1280x720
   - Sharpness: 180
   - Focus, Auto: OFF
   
* Para las diapositivas de fondo use Window Capture (Xcomposite):   
   - Color key: CUSTOM -> #ffffff
   - Contrast: -1.5

* Configure el directorio de los videos:
Settings -> Output -> Recording -> Recording Path -> /home/daalvarez/Videos

* Cuando intente grabar aparecerá el error "Failed to open NVENC Codec: Function not implemented". Se soluciona con:
Settings -> Output -> Recording -> Encoder -> Software (x264 low CPU usage preset)

* Para evitar una titilación si no estoy mal lo que hice fue:
  - EN NVIDIA X Server Settings  -> OpenGL settings -> Allow Flipping -> OFF (ensaye primero)

Saturday, November 13, 2021

How to crop PDFs

 Something that I have is to read papers with a very small font, specially when there are large margins around.


In order to crop this margin, I do not use linux at all, but this page: Crop PDF Online. Automatically trim white margins in one click. Then, I download the PDF and I print it using FIREFOX. I like it better than OKULAR,since it does have an accurate preview. 

When cropping a PDF, simply concentrate on the upper and lower margins. Left and right margins are not that important, since when you print the PDF, it will scale properly.