Search found 377 matches

by peter_b
Thu May 06, 2021 6:15 pm
Forum: HowTo's
Topic: Renumbering image sequences (Linux/MacOS)
Replies: 0
Views: 7639

Renumbering image sequences (Linux/MacOS)

Code: Select all

MASK="reelX_%07d.dpx"

i=1
for f in *.dpx; do
    OUT=$(printf "$MASK" $i)
    echo "$f : $OUT"
    mv $f $OUT

    i=$((i+1))
done
by peter_b
Thu May 06, 2021 5:41 pm
Forum: HowTo's
Topic: Renumbering image sequences (PowerShell)
Replies: 1
Views: 5014

Renumbering image sequences (PowerShell)

$FOLDER = "C:\wherever\myfilm"; $i = 1; $files=Get-ChildItem $FOLDER -Filter *.tif Foreach($obj in $files){ $index= "{0:000000}" -f $i; $pathWithFilename=$FOLDER +"\"+ $obj.Name; $in=$pathWithFilename; $out=$FOLDER + "\LLUVIA.$index.tif"; Write-Output "I...
by peter_b
Sat Apr 24, 2021 6:17 pm
Forum: Knowledge Base
Topic: CA Data Import Error: "Invalid relationship reference"
Replies: 0
Views: 7819

CA Data Import Error: "Invalid relationship reference"

[PROBLEM] Running a data import threw this error: Could not insert new record for list item (type was concept): Invalid relationship reference for list_id (2021-04-24 18:14:54) 'vhh_DigitizationObstacleIMP' for list_id is not numeric [SOLUTION] Translates to: "Could not find the list 'vhh_Digi...
by peter_b
Sun Apr 11, 2021 12:18 am
Forum: Knowledge Base
Topic: PHP7 Notice: "A non well formed numeric value encountered"
Replies: 0
Views: 8187

PHP7 Notice: "A non well formed numeric value encountered"

[PROBLEM] I'm checking how much memory PHP has free to use, before further execution: ini_get('memory limit') usually returns a number with a size modifier character, like: "128 M " Before PHP7 (7.3?), php would just use that string as-is, ignore the non-numeric part, when used in a calcu...
by peter_b
Fri Apr 09, 2021 10:02 pm
Forum: HowTo's
Topic: Pimp vim for coding
Replies: 3
Views: 8560

Re: Pimp vim for coding

Simply copy/paste/save the following to " /etc/vim/vimrc.local ": (Attached is a copy of that configfile ready-to-use. Just remove the ".txt" (forum security rules)) " Generally useful: syntax on set background=dark set ignorecase " Do case insensitive matching set mous...
by peter_b
Thu Apr 08, 2021 1:02 pm
Forum: HowTo's
Topic: Thunderbird: Change default sort/view settings
Replies: 0
Views: 21020

Thunderbird: Change default sort/view settings

The following settings can be modified to change the default sort/view behavior of *new* folders in Mozilla Thunderbird: mailnews.default_view_flags: 0=unthreaded / 1=threaded mailnews.default_sort_type: 18=sort by date mailnews.default_sort_order: 1=ascending / 2=descending Save, modify and restart...
by peter_b
Wed Mar 31, 2021 1:41 pm
Forum: Knowledge Base
Topic: ImageMagick: "not authorized" error when creating PDF
Replies: 0
Views: 8175

ImageMagick: "not authorized" error when creating PDF

[PROBLEM] I've been using the following ImageMagick command to convert a series of images (jpg, png, etc) into a nice PDF for a few years without any issues: $ convert $SOURCE -resize 1800x1800 -compress jpeg -density 150 -units PixelsPerInch -quality 76% $TARGET Since a recent update of ImageMagic...
by peter_b
Fri Mar 05, 2021 1:04 am
Forum: Knowledge Base
Topic: FFmpeg: ERROR Unknown encoder '2'
Replies: 0
Views: 8153

FFmpeg: ERROR Unknown encoder '2'

Disclaimer: Full commandline and console output missing. [PROBLEM] I tried to do something with FFmpeg and got the following error: Unknown encoder '2' In orange. A newer FFmpeg version gave me a hint: Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 0, only the...
by peter_b
Thu Dec 17, 2020 12:00 am
Forum: Knowledge Base
Topic: PHP Fatal error: "Cannot declare class" (due to symlink)
Replies: 0
Views: 9302

PHP Fatal error: "Cannot declare class" (due to symlink)

[PROBLEM] I ran into the following error message when I tried to make CollectiveAccess (CA) available in another folder that was merely a symbolic link to the previous installation: PHP Fatal error: Cannot declare class WidgetManager, because the name is already in use in /var/www/providence-ca/app...
by peter_b
Tue Dec 08, 2020 3:02 pm
Forum: HowTo's
Topic: VIM: indent multiple files at once
Replies: 0
Views: 7951

VIM: indent multiple files at once

I often use vim to quickly beautify / pretty-print structured text - like XML or programming code, etc: In VIM this is: gg =G gg: Go to top =: indent G: until bottom. In order to do this with multiple files, do the following: 1) Open the files you want to indent in tabs. For example all XMLs in the ...
by peter_b
Tue Nov 03, 2020 2:04 pm
Forum: HowTo's
Topic: Manually force date by ntpd instead of ntpdate
Replies: 1
Views: 7694

Re: Manually force date by ntpd instead of ntpdate

Short update (Debian based systems, including *Ubuntu): 1) You need to stop the NTP service before $ systemctl stop ntp 2) You don't need to provide a timeserver Since the default ntp configuration on a system contains a list of timeservers, it also works without providing any server: $ ntpd -gq If ...
by peter_b
Thu Oct 22, 2020 12:56 am
Forum: HowTo's
Topic: Howto network benchmark with "iperf"
Replies: 1
Views: 5109

HowTo: Test / verify jumbo frames (MTU 9000)

Output 10 intermediate test results and the MTU size at the end: $ iperf -c SERVER1 -i1 -t 10 -m Here's an example what this could look like: ------------------------------------------------------------ Client connecting to zehn2, TCP port 5001 TCP window size: 325 KByte (default) ------------------...
by peter_b
Thu Oct 22, 2020 12:46 am
Forum: HowTo's
Topic: Howto network benchmark with "iperf"
Replies: 1
Views: 5109

Howto network benchmark with "iperf"

Here's an excellent article by the Thomas Krenn crew about benchmarking network performance using iperf (German). Here's a short summary of how to quickly run a TCP test between 2 machines: Server1: Start listening. $ iperf -s ------------------------------------------------------------ Server liste...
by peter_b
Tue Oct 20, 2020 11:17 pm
Forum: Knowledge Base
Topic: Netgear R7800: "please upgrade to a version 4 or higher..."
Replies: 0
Views: 8060

Netgear R7800: "please upgrade to a version 4 or higher..."

[PROBLEM] On a freshly bought, " Netgear Nighthawk X4S AC2600 R7800 ", I was surprised to get the following message in a Firefox 81.0 on Xubuntu 18.04: Please upgrade to a version 4 or higher browser so that you can use this setup tool (and see lots of great sites on the Internet!) ...con...
by peter_b
Mon Oct 12, 2020 11:20 pm
Forum: Knowledge Base
Topic: PHP Composer
Replies: 0
Views: 6390

PHP Composer

[PROBLEM] Trying to update packages using composer: $ composer update Throws the following error message: Loading composer repositories with package information [Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL operation f...