2019-12-30

rclone and symlinks: a good news

with -l you can copy (i.g. on Mega) your symlinks (as a file with .rclonelink as extension).
When you will sync from remote, that symlink will be created in your local system as symlink.

2019-12-26

groups in nextcloud

Nextcloud is a very interesting, open source online platform. With /e/ you have a cloud of 5 free Gb with calendar, contacts and tasks shareable between PC and smartphone.
1) First of all you should export your data (calendar, tasks, contacts) from Google; a problem arises with contacts because Google export your contacts in a vcf file without groups.
2) So you have to import your contacts from vcf google file in nextcloud and re-create groups, which this time could be saved in a vcf file with groups (as categories).
3) To see your contacts and groups you have to use DAVx5 and in account settings - > cardDAV -> group organization you have to choose as in the following image:

not [ ] groups are separated vcards
but [x] groups are per-contact categories
4) This way you will be able to see your contacts and groups in your phone app (or in whatever other app).

2019-12-14

edit views in phpmyadmin

You can go in view -> structure and find (below) "edit view". Then you can change something, i.g. adding a new field, not yet present when that view was created.

2019-12-13

test sddm screen, without logging out

this is the code (in terminal):
sddm-greeter --test-mode --theme /usr/share/sddm/themes/breeze

2019-12-12

phpmyadmin relations in views

You can create a relation between two tables, or better between a table and a view (more flexible), so that you can use data of related table/view in the table you are using.

But if you create a view from that table (a table whose structure is "related" to another one) you have to repeat (in structure view) the relation settings.

2019-12-11

field name containing "-" not accepted in a mysql query

You have to put the field name into quotes "`" some-text (not working) -> `some-text` (working)

2019-12-08

if Kodi doesn't resume your videos

You can try adding in .kodi/userdata a file named «advancedsetting.xml», whose content is something like:
 <advancedsettings>  
 <video>  
 <playcountminimumpercent>95</playcountminimumpercent>  
 <ignoresecondsatstart>60</ignoresecondsatstart>  
 <ignorepercentatend>1</ignorepercentatend>  
 </video>  
 </advancedsettings>  

batch convert absolute symlinks to relative

You can use the small program "symlinks" (i.e. in Kubuntu). Remember to indicate the complete path, i.g.
symlinks -rc /your/path

2019-12-06

jobs in avidemux

Load 1st video, When finished making changes:

Avidemux menu: File -> Queue
in window "Queue job to joblist"
 Job name   : Job1 (name for job in joblist)
 Output file: click [Open] and choose name for saved video
Close that video (unless you want append the next)

Load 2nd video, When finished making changes
Avidemux menu: File -> Queue
in window "Queue job to joblist"
 Job name   : Job2 (name for job in joblist)
 Output file: click [Open] and choose name for saved video

Exit avidemux

Then, to avoid a bug, go in usr/bin, open a terminal and do
sudo ln -s avidemux2.7_cli avidemux3_cli
sudo ln -s avidemux2.7_qt5 avidemux3_qt5 
Start avidemux jobs (separate executable, same location where avidemux sits)

mark [v] use QT4 version (bottom of window)
press [Run jobs]

2019-12-05

reference mode in epub

Because Calibre viewer doesn't support any more reference mode, we can do this workaround: add a css rule, like the following
body {
  counter-reset: section; }
h2 {
 counter-reset: paragraph; 

 counter-increment: section;
}
p::before {counter-increment: paragraph; content: "[cap." counter(section) ", para." counter(paragraph) "] ";
  color: gray; font-size: 70%;
}

This is an example of the result (the small text in gray is the css result):


Blog Archive