Category Archives: Software

How to mount your Synology NAS under OSX High Sierra

Add NAS

sudo nano /etc/auto_master
#
# Automounter master map
#
+auto_master		# Use directory service
/net			-hosts		-nobrowse,hidefromfinder,nosuid
/home			auto_home	-nobrowse,hidefromfinder
/Network/Servers	-fstab
/-			-static
/mnt/NAS		auto_nas

Add mount point

sudo nano /etc/auto_nas
Lightroom -fstype=afp afp://username:password@bilder.local/Lightroom

Start

wakeonlan 00:11:32:xx:xx:xx
sleep 30
read -p "Press Enter to continue" </dev/tty
sudo automount -vc
exec sleep 1

Stop

diskutil unmount /mnt/NAS//Lightroom
ssh admin@bilder.local 'sudo shutdown -h now'
exec sleep 1

Stop without password entry

sshpass -p 'password' ssh admin@bilder.local sudo -S <<< 'password' shutdown -h now

 

CC-BY-NC Science Surf , accessed 29.04.2026

Corrupted file list in Next Cloud

This seems to happen for whatever reasons – the server file list is not  in sync with the local file list and cannot even be modified manually. This may be a particular problem when you are at 1&1 /ionos with a hosted package. Here is a solution

$path = realpath(dirname(__FILE__));
#exec("php $path/console.php upgrade 2>&1", $out, $result);
exec("php $path/console.php files:scan --all -v 2>&1", $out, $result);
echo "<pre>result: " .$result .PHP_EOL;
print_r($out);

 

CC-BY-NC Science Surf , accessed 29.04.2026

Bundestag Videos in WordPress einbauen

WordPress verbietet aus Sicherheitsgründen das Einfügen von Javascript. Ich habe die Bundestagsverwaltung angeschrieben, ob sie nicht ähnlich wie Youtube einen Embed Code mit Iframe anbieten könnte, denn bisher bekommt man lediglich

<script id="tv6995628" src="https://webtv.bundestag.de/player/macros/bttv/hls/player.js?content=6995628&phi=default">
<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
</script>

Natürlich könnten man in wp-config.php die Zeile define( ‘CUSTOM_TAGS’, true ); einfügen. Besser scheint mir aber, bis auf weiteres das Code Embed Plugin zu installieren und ein Custom Field für den Video Code anzulegen.

Das Ergebnis sieht dann so aus:

{{CODE1}}

Das ist aber auch nur so lange sicher, als der Bundestag nicht wieder gehackt wird.

 

CC-BY-NC Science Surf , accessed 29.04.2026

What is principle component analysis?

There is a wonderful description at stats.stackexchange.com how science should be taught

Imagine a big family dinner, where everybody starts asking you about PCA. First you explain it to your great-grandmother; then to you grandmother; then to your mother; then to your spouse; finally, to your daughter (who is a mathematician). Each time the next person is less of a layman. Here is how the conversation might go

This science not by some older science journalists or some younger science slammers but a real expert.

 

CC-BY-NC Science Surf , accessed 29.04.2026

Getting started with webRTC

While the protocol is already around for some time, webRTC isn’t been used so much although many browser are supporting it.

The basic webRTC samples of peer connection works well within the same browser window (showcase) while I need to connect sound + audio between two browser windows in a local network. After trying out several frameworks, I found the most easiest one easyRTCrtc. It works out of the box

git clone https://github.com/priologic/easyrtc.git
cd /Users/wjst/Desktop/easyrtc
cd /Users/wjst/Desktop/easyrtc/server_example
npm install express --save
node server.js

while pointing the browser to localhost:8080. Three weeks later, I find the sources poorly documented, connections are frequently broken, while Chrome explains it is moving soon to “Plan B”.

I could have been warned.

Will test now Ant Media Server.

 

CC-BY-NC Science Surf , accessed 29.04.2026

Pages and Endnote

Just found a plugin from Apple that allows Endnote citations in Pages. So Apple is also interested in the science industry :-)

Just in case you arrive here from Google by trying to reformat footnotes as endnotes. Your cursor needs to be on an existing footnote, only then the formatting menu appears top right.

 

CC-BY-NC Science Surf , accessed 29.04.2026

A mistake in the operating room

Found at https://www.nature.com/articles/ncpuro0294#article-info via https://twitter.com/MaartenvSmeden/status/1071138625415458817

A mistake in the operating room can threaten the life of one patient; a mistake in statistical analysis or interpretation can lead to hundreds of early deaths. So it is perhaps odd that, while we allow a doctor to conduct surgery only after years of training, we give SPSS® (SPSS, Chicago, IL) to almost anyone. Moreover, whilst only a surgeon would comment on surgical technique, it seems that anybody, regardless of statistical training, feels confident about commenting on statis- tical data. If we are to bring the vast efforts of research to fruition, and truly practice evidence- based medicine, we must learn to interpret the results of randomized trials appropriately.

 

CC-BY-NC Science Surf , accessed 29.04.2026

ICMJE Conflicts of Interest – spyware?

I dont’t understand why the ICMJE Conflicts of Interest of the Vancouver group is NOT distributed as a standard PDF but as an Adobe Form that can be opened only after installing a lot of unnecessary software that opens a lot of unnesssary ports transmitting a lot of unnecessary data. This is how it looks natively on a Mac

 

and this is how it should look like

Adobe Acrobat Reader DC does not even allow printing into a PDF, clearly spyware behavior forcing data collection on an unknown destination.

 

CC-BY-NC Science Surf , accessed 29.04.2026

Embed youtube videos without pre-loading any data

This short script is quite useful for DSGVO complaint, aeh compliant websites. Just put a grey picture in /images/externalcontent.png or wherever you want

/images/externalcontent.png

and insert a short script in the wordpress header.

function showyou() {
  $('iframe[name*=".com"]').each(function(e) {
    var src=$(this).attr('name');
    $(this).attr('src',src);
    $(this).show();
  });
}
$(document).ready(function(){
  $('iframe[src*=".com"]').each(function(e) {
    var src=$(this).attr('src');
    $(this).attr('name',src );
    $(this).attr('src','');
    $(this).after('<img class="me" src="/images/externalcontent.png" onclick="$(\'.me\').hide();showyou();"/>
');
    $(this).hide();
  });
});

 

CC-BY-NC Science Surf , accessed 29.04.2026

Citizen Science: Feinstaubmessung in Eigenregie

Das Stuttgarter Messprojekt ist ausführlich auf https://luftdaten.info/ erklärt, die Feinstaub Theorie auf ruhrmobil-e.de/.

Dahinter steckt der Laser Staub Sensor SDS011.

Nova Fitness SDS011 is a professional laser dust sensor. Fan mounted on sensor automatically sucks air. Sensor uses laser light scattering principle to measure value of dust particles suspended in the air. Sensor provides high precision and reliable readings of PM2.5 and PM10 values. Any change in environment can be observed almost instantaneously – short respond time below 10 seconds. Sensor in standard mode reports reading with 1 second interval.
Measured values: PM2.5, PM10
Range: 0 – 999.9 μg /m³
Resolution: 0.3μg/m3
Work environment:-10 ~ +50°C
Counting yield: 70%@0.3μm, 98%@0.5μm
Relative error: Maximum of ± 15%, ±10μg/m3 25°C, 50%RH
Cycle: 1004ms±1%
Service life: up to 8000 hours
according http://www.segor.de/dokumente/sds011_pm2.5_v1.3.pdf

Mit 70mA Stromverbrauch kann der Sensor damit auch mobil mit einer gängigen Powerbank (zB 3.500 mAh) 50 Stunden lang betrieben werden, am besten parallel zu einem alten Mobilfunkgerät, das nicht nur einen GPS Track aufzeichnet, sondern auch per Wifi gleich die Daten speichert. Mehr zur Evaluation des Sensors auf luftdaten.info bzw lubw.baden-wuerttemberg.de Zusammengefasst

* zufriedenstellende Korrelation an Tagen mit mittlerer Luftfeuchtigkeit (50 – 70 % r. F.) und Konzentrationen kleiner 20 μg/m3
* deutliche Abweichungen bei Schwankungen der klimatischen Bedingungen (Luftfeuchte, Luftdruck, Lufttemperatur)
* Sensoren aus unterschiedlichen Chargen weisen unterschiedliche Messergebnisse auf
* undefinierter Probengasstrom durch ungeregelten Lüfter führt zu starken Schwankungen des Messvolumens

 

CC-BY-NC Science Surf , accessed 29.04.2026