207 karma · joined January 29, 2012
My woefully neglected site: https://efotinis.neocities.org
Some scripts I've written: https://github.com/efotinis/scripts
My HN CSS: https://userstyles.org/styles/117336/hacker-news-slick
"The only way for ${anything} to survive is for the good people to stay" -- Sam Carter
[1]: https://youtu.be/tfAnxaWiSeE?list=PL2e4mYbwSTbbiX2uwspn0xiYb...
I used that trick to speed up my QBasic programs with graphics, string and list handling, etc. It was one of the first rewarding times in my programming "career" and it actually made me feel proud of myself.
That mode would move the input focus without actually clicking on another window. You could see the caption bars change color accordingly, but the "temporarily" focused window could be set to either stay in it's original z-order or moved to the top.
Windows 10 uses a different method: it doesn't change the focus and only sends mouse scrolling events to the target window. That's less powerful, but probably more intuitive for us non-*nix users.
[1]: https://stackoverflow.com/questions/70599589/how-do-i-turn-o...
Sadly, I can't run MMCE to test, since I'm using a PC and gfx card from 2009.
Fun fact: in modern Greek a million is called "ekatommyrio", which means 100 (ekató) myriads.
F:films> filter probe_format {
ffprobe $_.fullname -v error -show_entries format=duration -of json |
convertfrom-json | % format
}
F:films> ls -file -rec | ? extension -in .mp4,.avi,.mkv | probe_format |
measure -sum duration | % { New-TimeSpan -Seconds $_.sum } | % tostring
15.12:18:09 # same result as before (15days+12hours, etc.)
Even this makes much more sense to me than the Unix equivalent. I realize that Bash/AWK was better than CMD.EXE batch files, but, come on... F:films> ls -rec -file | gec video | gvi | ndur
372:18:09
where:- `ls -rec -file` gets all files recursively under CWD (F:films)
- `gec video` selects video files via extension (gec -> Get-ExtensionCategory)
- `gvi` uses FFPROBE to get video info in custom object (gvi -> Get-VideoInfo)
- `ndur` sums Duration property of objects and converts seconds to 'hhh:mm:ss'
Most people I've shown this have found the syntax and aliases confusing and non-intuitive. They prefer the find/xargs/awk incantations, which, I'm told, are more elegant, correct and precise. After that, I'm usually speechless.