Plesk-Update auf der Kommandozeile schlägt mit „BUSY“ fehl

Erscheint bei einem manuellen Plesk-Update direkt auf der Kommandozeile die folgende Meldung:

BUSY: Die Update-Operation wurde durch einen anderen Update-Prozess gesperrt.

und man ist sich sicher, dass kein anderes Update läuft, muss man zum fortsetzen/erzwingen einfach nur die entsprechende LOCK-Datei löschen:

rm /tmp/psa-installer.lock

Währung richtig formatieren in jqplot mit euroFormatter

Wenn man in deutschen Landen mit jqplot arbeitet und Werte in Euro ausgeben möchte, so steht man vor einer interessanten Herausforderung. Leider gibt es im Internet keine wirklich komplette Funktion für dieses Problem. Deshalb haben wir uns selbst eine gebaut.

(function($) {

    $.jqplot.euroFormatter = function (format, val) {

        if (!format) {

            format = '%.2f';

        }

        return numberWithCommas($.jqplot.sprintf(format, val))+' €';

    };

 

    function numberWithCommas(x) {

        return x.toString().replace(".", ",").replace(/B(?=(?:d{3})+(?!d))/g, ".");

    }

})(jQuery);

 

Diese ruft man dann zum Beispiel folgendermaßen auf (y-Achsenausschnitt):

yaxis:{

    //min:0,

    tickOptions:{

        formatString:'%.2f',

        formatter: $.jqplot.euroFormatter

    }

}

 

jqPlot funktioniert im Internet Explorer 9 nicht, wenn dieser automatisch den Renderingmodus falsch wählt

Aus welchem wie auch immer gelagerten magischen Grund der Internet Explorer beim Aufruf eines Dokuments automatisch den Renderingmodus wählt, es ist im Falle von jqPlot desöfteren der falsche.

jqPlot bringt mit der excanvas.js zwar alles Nötige mit, damit auch in alten Internet Explorer Versionen alles so funktioniert wie es soll. Dafür gibt es die folgende Zeile in allen jqPlot-Seiten.

<!–[if lt IE 9]><script language=“javascript“ type=“text/javascript“ src=“excanvas.min.js“></script><![endif]–>

Der Internet Explorer 9 wählt nun manchmal für eine Seite die jqPlot enthält (100% gleiches Dokument, gleiche Sicherheitszone, jedoch unterschiedliche second-level-Domain) den Renderer für IE7 („Dokumentmodus: Internet Explorer 7 Standard“). Wenn das passiert bekommt man folgende Meldung im Debugger und der Plotbereich bleibt weiß.

SCRIPT438: Das Objekt unterstützt die Eigenschaft oder Methode „getTime“ nicht
jquery.jqplot.min.js, Zeile 57 Zeichen 143467

Um dies zu umschiffen muss die Seite dem Internet Explorer 9 mitgeben, dass sie zwingend mit dem Dokumentmodus für den Internet Explorer 9 gerendert werden soll. Um keine Abwärtskompatibilitäten zu zerstören, etwas umständlicher mit Conditional Comment:

<!–[if IE 9]><meta http-equiv=“X-UA-Compatible“ content=“IE=EmulateIE9″ /><![endif]–>

Debian Squeeze Update von mysql-server auf 5.1.61-1 – Meldung über Changes

Beim Update auf mysql 5.1.61-1 aus dem Debian-Repository erscheint folgende nicht ganz unwichtige Meldung, die an dieser Stelle festgehalten werden soll.

mysql-5.1 (5.1.61-1) stable-security; urgency=high

 

Due to the non-disclosure of security patch information from Oracle,

we are forced to ship this upstream version update of MySQL 5.1 into

all releases that carry MySQL 5.1. There are several known incompatible

changes, which are listed below, taken from dev.mysql.com’s changelogs,

available here: http://dev.mysql.com/doc/refman/5.1/en/news-5-1-x.html

 

5.1.51:

Incompatible Change: Previously, if you flushed the logs using FLUSH

LOGS or mysqladmin flush-logs and mysqld was writing the error log to

a file (for example, if it was started with the –log-error option),

it renamed the current log file with the suffix -old, then created a

new empty log file. This had the problem that a second log-flushing

operation thus caused the original error log file to be lost unless

you saved it under a different name. For example, you could use the

following commands to save the file:

.

shell> mysqladmin flush-logs

shell> mv host_name.err-old backup-directory

.

To avoid the preceding file-loss problem, renaming no longer

occurs. The server merely closes and reopens the log file. To rename

the file, you can do so manually before flushing. Then flushing the

logs reopens a new file with the original file name. For example, you

can rename the file and create a new one using the following commands:

.

shell> mv host_name.err host_name.err-old

shell> mysqladmin flush-logs

shell> mv host_name.err-old backup-directory

.

(Bug #29751)

.

References: See also Bug #56821.

 

5.1.55:

Incompatible Change: When auto_increment_increment is greater than

one, values generated by a bulk insert that reaches the maximum

column value could wrap around rather producing an overflow error.

.

As a consequence of the fix, it is no longer possible for an

auto-generated value to be equal to the maximum BIGINT UNSIGNED

value. It is still possible to store that value manually, if the

column can accept it. (Bug #39828, Bug #11749800)

 

5.1.59:

Incompatible Change: Handling of a date-related assertion was

modified.

.

However, a consequence of this change is that several functions

become more strict when passed a DATE() function value as their

argument and reject incomplete dates with a day part of zero. These

functions are affected: CONVERT_TZ(), DATE_ADD(), DATE_SUB(),

DAYOFYEAR(), LAST_DAY(), TIMESTAMPDIFF(), TO_DAYS(), TO_SECONDS(),

WEEK(), WEEKDAY(), WEEKOFYEAR(), YEARWEEK(). Because this changes

date-handling behavior in General Availability-status series (MySQL

5.1 and 5.5), it was reverted in 5.1.62 and 5.5.21. The change is

retained in MySQL 5.6.

.

References: See also Bug #13458237.

 

— Clint Byrum <[email protected]> Thu, 01 Mar 2012 23:25:34 -0800

PS: Natürlich ware dies auch im Changelog nachzulesen, wenn selbiges funktionieren würde…

Windows Serverv 2008R2 Editionen – nach CPUs und RAM

Nachdem ich jetzt zum dritten mal die Übersicht über die CPU- und Arbeitsspeicher-Features der verschiedenen Windows Server 2008R2 Editionen gesucht habe, lege ich hier die Tabelle dazu ab:

Quelle: http://www.microsoft.com/germany/windowsserver2008/editionen/r2-vergleich-technische-spezifikationen.mspx

Quelle: http://de.wikipedia.org/wiki/Microsoft_Windows_Server_2008#Technische_Spezifikation_der_Editionen