Updated the theme from yadda, which was reaaaaaaaaaally old, to suffusion which has really nice configuration possibilities. And finally, I also have a widget capable theme (yeah, I know that this is not really bleeding edge anymore ;))

As i had that problem for quite some time and had no idea what the cause for it could be, here is a fix for the "installation failed" (no further information given) error caused by the automatic upgrade procedure: http://www.geekonthepc.com/2009/08/06/wordpress-automatic-upgrades-woes-installation-failed/

Be aware that other than said in the linked post, the file has to be put in wp-admin/includes, not wp-includes. Worked like a charm for me :)

Naty Hoffman reports in a blog post on Realtimerendering.com that God of War III is using Morphological Antialiasing. What I found interesting about this post, is that it is said that there were reportedly bad artifacts in moving images (though there are not in GOW3). As I used the method originally described by Reshetov without changes myself in a project (for a real time ray tracer) and didn’t see any artifacts there, I would be interested if it’s just a similar method which produced the artifacts or maybe even a stochastic component – who knows, people have ideas, and for still images there would be no problems :) So if you know anything about that, I’d be thankful if you left a comment.

What I have learned during the last two days is that people tend to have vastly different preferences regarding font rendering. Some want their fonts crisp and clear, maybe even without Anti-Aliasing, while others want them really smooth, almost a bit blurry. The actual problem was, that in Debian (Squeeze) subpixel rendering is really nice everywhere else than in applications relying on libcairo for achieving that. This leads to Firefox having almost unreadably sharp fonts when hinting is set to full, while they tend to look just ugly when hinting is at a lower level.

Comparing rendering of fonts in Firefox (or other GTK-apps) to e.g. qt-apps like Konqueror made me want to fix that problem. At first it seemed like nobody else had noticed that behaviour and I thought it would just be nit-picking again, as I always want things to be “perfect” in one or the other sense. But finally, today I found this thread talking about the exact issue that was bugging me. So I read through it carefully and finally found a solution to my problem. There are two possibilities, both involving libcairo and libdirectfb:

  1. Ubuntu packages can be used. Ubuntu has a patch applied to libcairo (and seemingly libdirectfb) which makes font rendering look much nicer. You can actually install these packages without problems. Just get them from the Karmic repository.
  2. Use patched packages provided by Hadret in the linked thread. You can find them here. Actually, these are the AMD64 packages. Read through the thread to get the i386 ones or build them yourself. A link to the patch guide should also be given in that thread.

Having these packages installed, you just have to enable subpixel rendering and set hinting to an appropriate value. Personally, I like slight hinting the most as it gives the whole thing a really smooth look. Settings can be made system-wide in /etc/fonts or per-user in ~/.fonts.conf. Here are the contents of my ~/.fonts.conf:

1 <?xml version='1.0'?>
2 <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
3 <fontconfig>
4 <match target="font" >
5 <edit mode="assign" name="rgba" >
6 <const>rgb</const>
7 </edit>
8 </match>
9 <match target="font" >
10 <edit mode="assign" name="hinting" >
11 <bool>true</bool>
12 </edit>
13 </match>
14 <match target="font" >
15 <edit mode="assign" name="hintstyle" >
16 <const>hintslight</const>
17 </edit>
18 </match>
19 <match target="font" >
20 <edit mode="assign" name="antialias" >
21 <bool>true</bool>
22 </edit>
23 </match>
24 </fontconfig>

Finally, Firefox (and XChat, and Icedove, and…) font rendering looks fine again :-)

Note that it may be necessary to upgrade some packages to versions from Debian sid (e.g. xulrunner-1.9.1) to make this work.

“Interessant”, dachte ich mir gerade, als ich auf diesen Artikel bei Golem stieß.

Eigentlich habe ich dazu nur eine kurze Frage: Wie wir ja alle wissen, ist es im schönen Deutschland möglich, eine Abmahnung ohne vorhergehende Korrespondenz mit wundervollen Zahlungsaufforderungen zu versehen. Wird das jetzt nicht vielleicht doch Überhand nehmen, wenn mans so einfach macht? Für mich liest sich das wie ein Freibrief für Abmahnwellen im großen Stil. Noch größer.

Oder liege ich mal wieder völlig daneben? :-S

Nachdem ich heute mein wunderbares E71 erhalten habe, überkam mich wie immer natürlich erstmal der Basteldrang: Um auf dem Gerät die neueste Firmware zu installieren, reicht nicht das Nutzen der Standardsoftware (NSU aka “Nokia Software Updater”), da die Firmwares wohl nicht zeitgleich weltweit zur Verfügung gestellt werden. So bin ich auf eine Anleitung gestoßen, welche beschreibt, wie man mittels NSS den Produktcode des Geräts ändert, so dass der NSU einem die aktuellste Firmware zur Verfügung stellt.

Auf der verlinkten Seite wird als Produktcode “0567045 (EURO1)” vorgeschlagen. Dies hat jedoch bei mir dazu geführt, dass das Tastaturlayout (Eingabesprache genannt) nach dem Update nicht mehr auf Deutsch zu stellen war (stand zwar da, war aber weiterhin Englisch). Etwas googeln hat glücklicherweise geholfen und führte mich hierhin. Stellt man den Produktcode also auf 0558785, so lässt sich die aktuellste Firmware installieren und das deutsche Tastaturlayout kann beibehalten werden. Natürlich sollte das auch ohne die im verlinkten Forenbeitrag erwähnte REinstallation gehen, indem man einfach sofort den entsprechenden Produktcode angibt. Hat man jedoch bereits ein “fucked up”-Tastaturlayout, weil man sich an die “falsche” Anleitung gehalten hat, so lässt sich das durch diesen Code mit der vom NSU vorgesehenen Reinstallation hübscherweise problemlos beheben.

Und vor dem Update immer dran denken, die Daten vom Gerät zu sichern. Ich sag’s ja nur. Soll Leute geben, die das vergessen.

Gerade bin ich in meinen Drafts auf einen alten, unvollständigen Blogeintrag vom 14.06.2008 gestoßen. Ich stelle den hier einfach mal zur Diskussion.

Sei n \in \mathbb{N}, dann gibt $latexp: \mathbb{N} \rightarrow \mathbb{N}$ die Zahl der möglichen Partitionen von n an. Eine Partition ist die Schreibweise einer Zahl als Summe, also z.B. 3=3,\; 3=2+1,\; 3=1+1+1 und damit ist p(3)=3. Wenn man so just for fun mal anfängt, drüber nachzudenken, meint man, das sollte sich doch recht einfach kombinatorisch lösen lassen. Ich bin im Zusammenhang mit einem lustigen Würfelspiel (gepostet hier) darauf gestoßen, als ich mir Gedanken darüber machte, wie viele Möglichkeiten es wohl für die einzelnen Punktzahlen gibt.

Auf Wikipedia verweisend, hier mal einige Ansätze zur Berechnung von p(n):

  • Von einem meiner Lieblingsmathematikerpärchen (Hardy und Ramanujan) 1918 entwickelt wurde dieser Ausdruck:
    p(n) \sim \frac{e^{\pi \sqrt{2n/3}}}{4n \sqrt 3} mit n \rightarrow \infty
  • Der Herr Rademacher (den kenn ich gar nicht, wie schade :() hat sich da noch was anderes ausgedacht, und zwar kam von ihm 1937 die folgende konvergente Reihe:
    p(n)= \frac{1}{\pi \sqrt{2}} \sum_{k=1}^\infty A_k(n) \sqrt{k} \frac{d}{dn} \left( \frac{sinh \left( \frac{\pi}{k} \sqrt{\frac{2}{3} \left( n - \frac{1}{24} \right) } \right) }{\sqrt{n - \frac{1}{24}}} \right)
    Für die Definition von A_k(n) verweise ich wiederum auf Wikipedia.

Das ist schonmal beides sehr wirr und uneinsichtig, insbesondere für mathematisch verhältnismäßig doch eher wieder unbedarfte, wenn auch in der Hinsicht begeisterungsfähige Leute wie mich.

Gut, natürlich ist der Titel nicht ganz korrekt, aber vielleicht lockt die Absurdität ja den ein oder anderen an. Immerhin ist dieses Blog fast tot und die Besucherzahlen sprechen für sich – versuchen wir es also mit etwas Tollem!

Wie der ein oder andere vielleicht weiß, bin ich ein kleiner bis größerer Freund des guten Rubik’s Cube. Wenngleich es bei mir (noch?) nicht dazu reicht, mich zur Riege der Speedsolver zählen zu dürfen, so kann ich doch ein gewisses Suchtverhalten feststellen. Irgendwie muss man das Ding immer und immer wieder andauernd lösen. Wird wohl mal Zeit, wieder gezielt an einer Zeitverbesserung zu arbeiten – man hat ja sonst nichts zu tun ;)

Lange Rede, kurzer Sinn: Gerade stieß ich (wie schon neulich, aber da war ich zu faul zum Bloggen) auf den neuen, witzigen, geekigen, total abgespacten, weirden, fast mit einem \mathcal{O}(2^n)-neo-Nerdfaktor ausgestatteten “Rubik’s Touchcube”. Warum ist er nun nur FAST mit diesem Nerdfaktor ausgestattet? Kurz gesagt: Ein Rubik’s Cube in digitaler Form mit coolen Touchpanels, einem Undo-Button (armselig!) und einem Autosolver für Blöde ;) ..im Grunde wollte ich das jetzt nur kurz mit der Welt teilen. Allerdings würde ich so ein Ding auch gerne mal in die Finger bekommen. Würde mich schon interessieren, wie schnell sich das Teil lösen lässt und wie gut es in der Hand liegt. Scheint ja auch ne kleine Ecke größer zu sein als das tatsächliche Original, hm! Probiert das mal bitte jemand aus? :)

A: “Der schwitzt aber ganz schön! Naja, wenn ich bei Microsoft wäre, würd ich auch so schwitzen…”
B: “Warum das denn?”
A: “Hallo? Ich schwitz ja manchmal schon so, wenn ich Word benutze!”

Wie ich gerade von der werten Carina – sich aufhaltend im ebensowerten Kanada – erfuhr, hat sie auch ein diesbezügliches Blog. Da dachte ich mir: Das verlinke ich doch mal! Also, siehe unten. Oder hier.

© 2010 P=NP! Suffusion WordPress theme by Sayontan Sinha