Category Archives: Software

Seite an Seite einschlafen

Aus Seeberger, Schamlose Neugier, Integral München, 2012, S.213:

Es gibt Menschen deren Weltbild gleicht einem Anwesen, bei dem man “eine Mauer um sich herum baut, diese mit Stacheldraht und Glassplittern versieht und Patrouillen ausschickt, um eingebildete oder echte Bedrohungen zu verjagen” wie der Schriftsteller Göran Tunström einmal schrieb. Während bei anderen die Weltanschauung wie “ein großer Hof ohne Mauer und Zaun ist, wo die tagsüber frei umherstreunden Ansichten abends ruhig nach Hause trotten, um Seite an Seite einzuschlafen”.

 

CC-BY-NC Science Surf , accessed 20.09.2026

Avoid browser flickering with dark backgrounds

There is no ultimate solution to avoid the white phase when switching pages in the browser.

Here is a rather simple strategy using embedded pictures. This is usually not recommended as the necessary base64 encoding includes quite some overhead. It influences, however, the browser rendering by basically blocking the download of the remaining page which is probably the anti-flickering effect.

echo '<img src="data:image/png;base64,';
echo base64_encode(file_get_contents($file));
echo '"/>';

Works mostly, but not always. Another interesting approach has been suggested by another user, eg decreasing page loading time by async loading before switching between pages. I didn’t like that so much as it keeps the pages in your browser piling up.

So finally I did a small page only with a large iframe that is covered by a black div and removed only after loading the iframe content. Works on all tested browsers.

<style>
#preload {
background:black;
width:100%;
height:100%;
z-index:2;
top:0px;
left:0px;
position:absolute;
}
</style>

<script>
$(function(){
   $('#iframe').load(function(){
    $(this).show();
    $('#preload').fadeOut();
  });
});
</script>

<div id="preload">loading...</div>

<iframe src="http://external.url.de" id="iframe">
</iframe>

 

CC-BY-NC Science Surf , accessed 20.09.2026

Let your visitors switch background color

There seem to be million of ways to do that – here is the most parsimonious solution that works for me even under difficult conditions and in different browsers.

// should be run in a $(document).ready(function(){ bracket });
// if there is no cookie we set one
if (document.cookie.indexOf("color")!== -1 {
  document.cookie = "color=white";
}
// we need a body class without any background definition
// and a class for body.black that has background:black
if (document.cookie.indexOf("black") === -1) {
  // switch to the new .black class
  $("body").toggleClass("black");
  // this is also possible in the iframe
  $(#iframe").contents().find("body").toggleClass("black");
}
// link or whatever is being clicked for the effect
$(".place").click(function () {
if (document.cookie.indexOf("white") !== -1) {
  document.cookie = "color=black";
}
else {
  document.cookie = "color=white";
}
// reload page with a small delay
setTimeout( function() { location.reload() }, 250 );

 

CC-BY-NC Science Surf , accessed 20.09.2026

Why I believe in twin studies

20120609-DS7_0692

Zwillingstreffen im Pillerseetal  7. Juni 2012 - 9. Juni 2012

These are some pictures that I took roughly two years ago on twin meeting in Austria. Twin studies give us some unique opportunities like in this recent paper

We performed a genome-wide study to investigate differences in (i) DNA methylation (using a custom tiled four-plex array containing tiled 50-mers 19,084 randomly chosen methylation sites), (ii) copy number variation (CNV) (with a chip including markers derived from the 1000 Genomes Project, all three HapMap phases, and recently published studies), and/or (iii) gene expression (by whole-genome expression arrays). Based on the results obtained from these three approaches we utilized quantitative PCR to compare the expression of candidate genes. Importantly, our data support consistent differences in discordant twins and siblings for the (i) methylation profiles of 60 gene regions, (ii) CNV of 10 genes, and (iii) the expression of 2 interferon-dependent genes.

 

CC-BY-NC Science Surf , accessed 20.09.2026

WordPress: Multiline site title instead of tagline

I found it hard to change the layout of the tagline in my WordPress Twentyfourteen child theme as the element sits in a different hierarchy. But fortunately we can add text also from the CSS stylesheet (which is not visible in the sourceode!) using the content tag. It does not accept standard HTML while the special formatting is shown on stackoverflow.

.site-title :after {
	font-size: 25px;
    content: "\00000aBut let your communication be Yea, yea;\00000aNay, nay: for whatsoever is more than these cometh of evil";
    white-space: pre;
}

The reason for that? Just a quick fix.

 

CC-BY-NC Science Surf , accessed 20.09.2026

Wissenschaftsbetrug und soziale Akzeptanz

Mag sein, daß es immer mehr Wissenschaftsbetrug gibt. Es kann aber auch sein, daß nur das Bewusstsein geschärft ist. Es würde mich jedenfalls nicht wundern, daß der erhöhte Leistungsdruck statt zu weiteren Höchstleistungen zu noch mehr Betrug führt.
Aus einem ganz anderen Gebiet kommt nun eine Erklärung, warum es mit der Moral bei uns doch nicht so weit her ist.

Steuerhinterziehung gilt vielen in Deutschland als Kavaliersdelikt … “Die Steuerpflicht ist keine Norm, die man verinnerlicht hätte. Man trifft erst im Erwachsenenalter auf sie”, sagt Carsten Ullrich … Erstens lässt sich eine Norm wie diese relativ angstfrei missachten … Zweitens ist eine solche Norm, die sich nur intellektuell nachvollziehen lässt, “schwer zu verstehen” … In den neunziger Jahren ordnete ein soziologisches Standardwerk noch 18 Prozent der Bevölkerung dem Milieu der “Konventionalisten” zu, denen Pflicht und Akzeptanz am wichtigsten sind.

Die wissenschaftlichen Normen des exakten Messens und des vourteilsfreien Berichtes kann man nicht angstfrei missachten. Bei aufgeflogenem Betrug ist das Karriereende sicher.
Aber es stimmt natürlich, daß wissenschaftliche Redlichkeit eine relativ spät erfahrbare Norm ist, die sich nur intellektuell nachvollziehen lässt.
Der DHV will Wissenschaftsbetrug strafbar machen während Milos Vec in der FAZ davon nicht recht überzeugt ist und auf die Probleme einer strafrechtlichen Verfolgung hinweist.

 

CC-BY-NC Science Surf , accessed 20.09.2026

We cannot dispense with palliative measures (Freud)

Life, as we find it, is too hard for us; it brings us too many pains, disappointments and impossible tasks. In order to bear it we cannot dispense with palliative measures. ‘We cannot do without auxiliary constructions’, as Theodor Fontane tells us in his novel Effi Briest.

Sigmund Freud Religion as a mass delusion. Civilization and its Discontents (1931). The photo was taken in Vienna 1985, Burggasse not Berggasse…

Continue reading We cannot dispense with palliative measures (Freud)

 

CC-BY-NC Science Surf , accessed 20.09.2026

Forcing two divs in one row

In my picture gallery I show two divs side by side. Div1 is variable and needed only on a few pages. Div2 is large, complicated and takes quite some time to load as there are numerous pictures and jquery actions.
div
Rather simple setup, isn’t it? The rendering should be smooth (both divs loading at final position and not jumping around at the end of page loading) and fluid (working on smaller devices as well) and without any dynamic stylesheet language.
This simple task turned out to be complicated. Continue reading Forcing two divs in one row

 

CC-BY-NC Science Surf , accessed 20.09.2026

Der Ramstetter Faktor 10,0613083

Jahrelang mussten sich das die ADAC Motorwelt Leser antun, jeden Monat neu, 15 Jahre lang, den einseitigen Autolobbyismus des Michael Ramstetter. Und jetzt ist sie auch quasi amtlich

die Zahl, mit der der mittlerweile ausgeschiedene ADAC-Pressechef Ramstetter die tatsächlich abgegebenen Stimmen bei der ADAC-Wahl zum “Gelben Engel” aufgepimpt hat

Der Spiegel hat wohl etwas gerundet in seinem Artikel, Continue reading Der Ramstetter Faktor 10,0613083

 

CC-BY-NC Science Surf , accessed 20.09.2026

How browsers render elements

This is a bit of mystery for me but fortunately there is some information out there, mainly the article “How browsers work” by Tali Garsiel.
I was a bit annoyed by the current Twentyfourteen WordPress Template that renders first some lines before getting towards the final layout. I am experimenting therefore with keyframe encapsulating as I did not find any better method. Continue reading How browsers render elements

 

CC-BY-NC Science Surf , accessed 20.09.2026

Filtered net, self-censored opinion, what can we belief?

This piece is about filtering

and this about censoring

Rupert Sheldrake is a fascinating member of the scientific world. His TED talk named "The Science Delusion" was controversially censored by the TED community after being aired. Rupert shares that humanity has become stuck in turning science into another belief or dogma vs. allowing the method to be what it is. Rupert Sheldrake outlines 10 dogmas he has found to exist within mainstream science today. He states that when you look at each of these scientifically, you see that they are not actually true.

Some views are strange of course, while others are not (replace for example “morphogenetic fields” with “DNA methylation”). Even with a few interacting factors, a causal proof is nearly impossible. More at SFGATE or The Guardian.

 

CC-BY-NC Science Surf , accessed 20.09.2026