Category Archives: Howtos

Installing yarnpkg on Debian 11 (bullseye)

To install (currently installs version 1.22.10): mkdir -p ~/src/yarn cd ~/src/yarn sudo apt install npm npm install yarn sudo ln -s “$PWD/node_modules/yarn/bin/yarnpkg” /usr/bin/yarnpkg You should check that the SHA256 reported of the cli.js file is the same as the file … Continue reading

Posted in Howtos, Uncategorized | Leave a comment

Calculating the liquid density at saturation

This is the full source code required to calculate with LIBPF the liquid density at saturation for an equimolar mixture of ethane and propane at pressures between 1 and 30 atm: /** @file Qsatliqrho.cc @brief Calculate the density of a … Continue reading

Posted in C++, Howtos | Leave a comment

Verificare che un file PDF/A sia conforme

Come fare per verificare prima dell’invio alla pubblica amministrazione o al registro imprese che un documento PDF è conforme allo standard PDF/A ? Non è facile trovare strumenti di cui fidarsi. In passato esisteva in Webtelemaco un servizio gratuito per … Continue reading

Posted in Howtos | Leave a comment

HOWTO migrate tasks from kanboard to phabricator

Kanboard is a Kanban Project Management tool written in PHP. an excellent lightweight tool to quickly set up a project and organize tasks (think of it as a down-to-earth trello). Phabricator on the other hand is a complete suite of … Continue reading

Posted in Howtos | Leave a comment

Extend the system partition in a Windows virtual machine running within kvm with file-based virtual disk

The post Extend the system partition in a Windows virtual machine running within kvm/lvm is applicable if the virtual disk is on a LVM volume. If the virtual disk is file-based, these are the required steps: Find out what is … Continue reading

Posted in Howtos, Uncategorized | Leave a comment

Running your own kernel from the LIBPF user interface on OS X

During model development, you rapidly produce new versions of the calculation kernel (the command-line executable version of your models). The easiest thing to do to try them out is to run them from the LIBPF user interface. Here is a … Continue reading

Posted in C++, Chemeng, Howtos | Leave a comment

Debugging LIBPF applications with gdb

GNU debugger (gdb) is the standard command-line debugger on many Unix-like systems for troubleshooting C++ programs. To prepare for debugging your application, compile it with debugging symbols enabled; for example assuming you want to debug Qpepper and use bjam to … Continue reading

Posted in C++, Howtos | Leave a comment

Where is the SQL database plugin for ODBC (qsqlodbc.dll) in Qt 5.6 ?

It looks like the SQL database plugin for ODBC (qsqlodbc.dll) is missing from the standard Qt 5.6 installer for Windows you download from http://www.qt.io/download-open-source. You’d expect to find it in C:\Qt\Qt5.6.0\5.6\msvc2015_64\plugins\sqldrivers\ where the sqlite, mysql and postgresql ones are found, … Continue reading

Posted in C++, Howtos, Rants | Leave a comment

“api-ms-win-crt-runtime-l1-1-0.dll is missing” error with LIBPFonOPC on Windows Server 2012 R2 64 bit

You may receive the error “The program can’t start because api-ms-win-crt-runtime-l1-1-0.dll is missing” when launching the LIBPFonOPC configurator 1.0. 2264 on a fresh install of Windows Server 2012 R2 64 bit. Related symptom: this error silently appears in the Setup … Continue reading

Posted in Howtos, Uncategorized | Leave a comment

HOWTO make verbosity level accessible for users

LIBPF’s  4 diagnostic levels allow the model developer to fine-tune the verbosity at a global, compilation, unit, function and class instance level. Of these, two (verbosityGlobal and verbosityInstance) are also available at run-time, but normally not for the model user. … Continue reading

Posted in C++, Chemeng, Howtos | Tagged | Leave a comment