Sunday, January 5, 2020

ubuntu avahi fix for Belarus/Beltelecom/Byfly

If there's "Avahi Service discovery disabled" popup displayed, check
"host -t SOA local".
If there's something like "local has SOA record local. root.mgts.by", you can make avahi ignore that wrong configuration via editing /etc/default/avahi-daemon:
AVAHI_DAEMON_DETECT_LOCAL=0 

xubuntu 18.04 installing with nvidia graphics, tearing fixes

Before installing (running LiveCD/USB)

Edit GRUB options in the live-cd menu by adding "nomodeset" argument to the  kernel parameters string.

After installing

Repeat "nomodeset" option as described above before the first boot.
  1. "apt install nvidia-driver-435"
  2. Reboot
  3. In "NVidia X Server Settings -> X Server Display Configuration -> Advanced..." switch on "Force Composition Pipeline".
  4. Enable XFCE compositor (Menu->Window Manager Tweaks->Compositor->Enable display compositing)
  5. Enable the "Synchronize drawing to the vertical blank" option in the "Window Manager Tweaks" "Compositor" tab.

Saturday, November 2, 2019

Fix nvidia OpenCL/CUDA driver after resume from suspend

fixes OpenCL/CUDA/NVENC after suspend:

sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm

Sunday, February 3, 2019

Backup home directory

duplicity --no-encryption --progress -vi --include-filelist incl_filelist.txt --exclude '/home/yur' /home/yur file://./home_yur
date -Isec


incl_filelist.txt:
/home/yur/.config
/home/yur/Desktop
/home/yur/Documents
/home/yur/.dosbox
/home/yur/Downloads
/home/yur/.gitconfig
/home/yur/.hgrc
/home/yur/.local
/home/yur/local_inst
/home/yur/local_src
/home/yur/.mozilla
/home/yur/.mpv
/home/yur/my_projects
/home/yur/myvim.vim
/home/yur/.nbi
/home/yur/.netbeans
/home/yur/.ssh
/home/yur/.vim
/home/yur/.vimrc
/home/yur/.vscode

Saturday, November 17, 2018

G-Pen 560 in 2018, manjaro linux

cat /usr/share/X11/xorg.conf.d/70-aiptekmy.conf

Section "InputClass"                                                          
    Identifier "pen"                                                          
    MatchProduct "Aiptek|AIPTEK|aiptek"                                       
    MatchDevicePath "/dev/input/event*"                                       
    Driver "evdev"                                                           
    Option "SendCoreEvents" "true"                                            
    Option "USB" "on"                                                         
    Option "Type" "stylus"                                                    
    Option "Mode" "absolute"                                                  
    Option "zMin" "0"                                                         
    Option "zMax" "1023"                                                      
    Option               "TopX"          "185"
    Option               "TopY"          "372"
    Option               "BottomX"       "11811"
    Option               "BottomY"       "8793"
    Option               "TopZ"          "32"
EndSection

Monday, October 8, 2018

Organizing photo/video with rating

I use the following rating meaning in Shotwell:

 rejected = candidate for wastebin

 unrated = have not analyzed this photo yet

 1 = keep and return to reanalyze later and maybe then mark as 'rejected' or '2'

 2 = keep and forget

 3 = keep, needs editing

 4 = keep, do not publish -- this is original photo which was edited but saved as a diffenet image file (e.g. edited via external program and saved as IMG000_edit, so look for _edit image)

 5 = publish finished work: a) perfect out of the camera b) was edited (file has 'edited' suffix or tag)

 flagged = used to mark photos for immediate processing, work in progress

And the following workflow:

Folder tree:
YYYY/YYYY_MM_DD_tag1_tag2.../
    - video
        - edited
    - edited
       

1) Mark ranks, add tags.
2) Edit those marked with '3': mark 'flagged'
3) Export final image as '_edited', mark original as '4', clear flag.
4) Add '_edited' to Shotwell, mark as '5'.

Friday, September 1, 2017

Lua rocks on Mac



Install macports, install readline.

Install luajit.

Install luarocks.

Edit luarocks_installed/etc/luarocks/config-5.1.lua to use libs from /opt/local (those from macports):

external_deps_dirs = {
"/opt/local",
}


In luarocks install inspect, prompt.

/luarocks_installed/bin/luap

Enjoy repl with history and autocomplete.