arch: disable linux error beep

this beep comes up in terminals and for each error in matlab. just annoying…. fix this by disabling the right kernel module.

    1. append to /etc/modprobe.d/blacklist.conf:
      blacklist pcspkr
    2. include in /etc/mkinitcpio.conf:
      ...
      FILES="/etc/modprobe.d/blacklist.conf"
      ...
    3. Then rebuild the initramfs and reboot:
      $ mkinitcpio -p linux
      $ reboot
Advertisements

arch+matlab: setup opengl rendering

hardware accelerated rendering needs enabling.

  1. check out the arch-wiki page.
  2. i needed to install the intel graphics driver. explained here.
  3. to set the opengl paths (as explained in the wiki), i needed to modify the .desktop file
    1. for me, the path was: /usr/share/applications/matlab.desktop
    2. changed execution line
      1. before: Exec=matlab -desktop -nosplash
      2. after: Exec=/my/personal/binary/path/matlab_startWithEnvVars
    3. created seperate start script
      1. path: (same as given to Exec command above)
      2. content:
        #!/bin/sh
        
        export LD_PRELOAD=/usr/lib/libstdc++.so
        export LD_LIBRARY_PATH=/usr/lib/xorg/modules/dri/
        
        exec /usr/local/bin/matlab -desktop -nosplash "$@"
        
      3. make file executable

thunderbird: export message filters

one can export/import/backup the message filters but it’s more involved than it should be.

the message filters are in single files within your home directory. their path is

~/.thunderbird/<profileStr>/ImapMail/<mailAcc>/msgFilterRules.dat

For example

~/.thunderbird/asdbasbdas.default/ImapMail/mail.yahoo.ru/msgFilterRules.dat

Latex+beamer: dual screen presentation

you can include notes into your slides. just use \note{txt} inside of your frame environment. you can also make use of overlays and align all notes in itemize environment

\note<overlay>[item]{txt}

you can chose the style of your output pdf by the following options in your preamble

\setbeameroption{hide notes} 		% default
\setbeameroption{show notes}		
\setbeameroption{show notes on second screen=left} % 
\setbeameroption{show only notes}

when choosing “second screen” you get a pdf containing your standard slides and one showing your notes. get a pdf viewer which can actually distinguish between both (e.g. pdfpc).

use pdfpc as such

pdfpc --notes=left --duration=30  ~/presentation.pdf

ecosia: add search engine to ff nightly (using opensearch)

ff nightly will not work with the current ecosia extension. the opensearch form is also not loaded(?) automatically, and searching through the use of keyword is not conventient.

i found the opensearch url of ecosia: https://www.ecosia.org/opensearch.xml

and adding it through the webconsole (ctrl+shift+k): window.external.AddSearchProvider(engineURL);

fixed my problem (using “https….” as the engineURL).


source: mozilla.org