Welcome to the most active Linux Forum on the web.
Go Back > Blogs
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.

Awk line to convert [HH]:MM:SS to seconds

Posted 08-17-2015 at 06:35 PM by the dsc (linux-related notes)

awk -F':' '{if (NF == 2) {print $1 * 60 + $2} else {print $1 * 60 * 60 + $2 * 60 + $3}}'

I saw it somewhere and maybe tweaked a bit, maybe not -- I barely know anything of awk.

I find it particularly good because you can give just minutes or hours and minutes as input, there's no mandatory hours, unlike some other answers you'll see if you google for it, which will assume minutes as hours if there is no hours.

Of course, such assumption of the leading...
Posted in Uncategorized
Views 163 Comments 2 the dsc is offline

Surprisingly, Krita from an unofficial Ubuntu's repo seems to work better than Debian's official

Posted 08-16-2015 at 11:42 AM by the dsc (linux-related notes)
Updated 08-16-2015 at 11:46 AM by the dsc

Krita "lemon", from some unofficial "neon" project, of Ubuntu, but running on Debian testing/Sid/Stretch.

I know it goes against all sorts of recommendations from both Debian and Ubuntu, perhaps even computing in general, but it seems to work fine so far.

The official version was quite slow to start up (to the point that sometimes I thought it simply wasn't going to ever start). And maybe it's just a difference between the versions (2.8 vs 2.9),...
Posted in Uncategorized
Views 258 Comments 0 the dsc is offline

[openbox] Some environment variables to fix irregular QT5 styles

Posted 08-11-2015 at 08:11 AM by the dsc (linux-related notes)
Updated 08-19-2015 at 03:39 PM by the dsc
Tags openbox, qt3, qt4, qt5

export QT_STYLE_OVERRIDE=qtcurve
Some QT5 applications (systemsettings"5" -- why not call it systemsetting5, so the 5 is both the S amd the 5????!!!111 If you're going to change the binary name at least make it kooler) would use some default QT5 style, even when other QT5 (I guess) applications were already using the correct theming. Ops, nope, now I recall, I had it enforced by ksysgyard -style or exporting the style override at the...
Posted in Uncategorized
Views 146 Comments 0 the dsc is offline

[solved] HTML5 Youtube with no video on Firefox/Iceweasel, in Debian testing/Stretch

Posted 08-10-2015 at 12:04 AM by the dsc (linux-related notes)
Updated 08-10-2015 at 12:05 AM by the dsc

Googling a little bit about, some solutions to the same symptoms pointed to needing to install something like gstreamer-ffmpeg. But not only that's unavailable in the latest Debian testing (Stretch), but it seems it's the other way around: for me it started to work again when I deactivated something related to gstreamer on about:config.

Doing so doesn't seem to have affected anything else (namely flash videos). But I feel that now HTML5 on youtube is somewhat heavier, buy maybe it...
Posted in Uncategorized
Views 226 Comments 1 the dsc is offline

Make bash scripts wait in line until other instances have finished their job

Posted 08-06-2015 at 03:04 PM by the dsc (linux-related notes)
Updated 08-06-2015 at 06:34 PM by the dsc

# It seems to work, but who knows. May have some terrible flaw and ruin your life. Your entire life.
# "${0##*/}" is the script name ("$0") stripped of any parameters ("##*/"), by the way.

if ls /dev/shm/${0##*/}-ticket* 2> /dev/null ; then
	while [[ -e "/dev/shm/${0##*/}-ticket$n" ]]; do
		n=$(( $n + 1 ))
touch /dev/shm/${0##*/}-ticket$n
Posted in Uncategorized
Views 204 Comments 0 the dsc is offline


All times are GMT -5. The time now is 03:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration