Category Archives: Software

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:

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

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.

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.

PHP Segmentation Error 11

Just a few days before public deployment of my new website this error popped up in the terminal. Apache was running fine but my favorite php test server crashed after 5 minutes. Continue reading PHP Segmentation Error 11

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.

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.

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 behaviour forcing data collection on an unknown destination.

So many contract disputes

While working on the revision of a paper on GDPR & open access, I found an interesting table who is fighting whom in science.

CountryConsortiaDispute
The NetherlandsVSNURoyal Society of Chemistry
GermanyDealElsevier
SwedenBibsamElsevier
FranceCouperinSpringer Nature

Do we need any of these publishers? I would say no.
What’s currently allowed is in the Sherpa/Romeo list.

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();
  });
});