15 Nov, 06
Windows Update does this annoying “you absolutely must restart now, or later, by which I mean that I’ll keep nagging you every 5 minutes” thing. It’s a pain in the ass since the popup usually occurs only after you have just settled in to work - once all your programs are open and the windows arranged, WU pops up in the middle of your screen with a default button of “Restart now”, which is also mapped to “N” (like “No”). I can see what Microsoft are hoping to do, but honestly? I think this behaviour is completely unacceptable.
Luckily, there are several ways to fix it. The simplest solution to stop the nagging for the remainder of your login session is to just stop the Windows Update Automatic Updates Service, either per GUI or just by running
net stop wuauserv
You can also use a registry setting to disable automatic rebooting when there is a user logged on, plus set a high ‘respawn timer’ for the nag screen:
Run regedit
Open HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
Create a DWORD value named ‘NoAutoRebootWithLoggedOnUsers’ and set it to 1
Create a DWORD value named ‘RebootRelaunchTimeoutEnabled’ and set it to 1
Create a DWORD value named ‘RebootRelaunchTimeout’ and set it to 600
If you’re on Windows XP Professional or any Server OS, you can also use the Group Policy Editor to do the same thing:
Run gpedit.msc
Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > Windows Update
Activate No auto-restart for schedule Automatic Updates installations, AND
Set Re-prompt for restart with scheduled installations to a high number.
06 Nov, 06
If you are using the Official Comments plugin with a recent WordPress version, you might be getting Database errors when you post a comment on your own blog. To fix these, open the official-comments.php file and change:
- in line 27:
$tableusers -> $wpdb->users
- in line 40:
$tablecomments -> $wpdb->comments
06 Nov, 06
Actually I was only trying to get the list of links in the sidebar sorted by the time of their last update. Naïvely, I tried to just pass get_links() the ‘_updated’ parameter, but it didn’t work. Since the codex is more or less down, and googling using a search engine didn’t help much, I resorted to just reading the fine code. So, to answer my own questions for posteriority and those using a search engine to find out about get_links:
- passing ‘_updated’ should work; contrary to what some believe, it does not sort by ‘time you last edited the link’, but really tries to sort on ‘time the link last updated’;
- if it does not work, that’s probably because api.pingomatic.com is timing out since forever, despite ‘servers donated by automattic’;
- all blogroll-updating plugins I found do all sorts of weird things, but don’t work in the end; I for one t hink that asking any number of services for all changes they registered in the last 5 or 10 minutes and then manually filtering for entries in ones blogroll is, well, overkill, not to mention that it causes a load of unnecessary traffic on both ends;
- as of now, there doesn’t seem to be a plugin that does the obvious thing, namely to just check the goddamn RSS feeds I manually entered for every link in my blogroll!
which leads us to
- link lists in WordPress are in a sorry state of affairs, and
- I should probably write such a plugin.
14 Jun, 06
I just finished setting up a MediaWiki for WorldIRC. Page titles and user names should be fully case-sensitive (i.e., able to start with a lowercase letter). Unfortunately, MediaWiki doesn’t really support that out of the box. Googling didn’t yield any usable results. Finally, asking in the IRC channels got me on the right track: In your LocalSettings.php, add at the end:
$wgCapitalLinks = false;
To get case-sensitive usernames, but still allow case-insensitive logins, you need to patch the code.
Here’s my patch against the current stable 1.6 version (r14760):
Index: includes/User.php
===================================================================
--- includes/User.php (revision 14760)
+++ includes/User.php (working copy)
@@ -51,9 +51,11 @@
* @static
*/
function newFromName( $name ) {
+ /* don't
# Force usernames to capital
global $wgContLang;
$name = $wgContLang->ucfirst( $name );
+ */
# Clean up name according to title rules
$t = Title::newFromText( $name );
@@ -148,7 +150,7 @@
return null;
}
$dbr =& wfGetDB( DB_SLAVE );
- $s = $dbr->selectRow( 'user', array( 'user_id' ), array( 'user_name' => $nt->getText() ), $fname );
+ $s = $dbr->selectRow( 'user', array( 'user_id' ), 'LCASE(user_name) = LCASE(' . $dbr->addQuotes( $nt->getText() ) . ')', $fname );
if ( $s === false ) {
return 0;
@@ -200,7 +202,7 @@
|| User::isIP( $name )
|| strpos( $name, '/' ) !== false
|| strlen( $name ) > $wgMaxNameChars
- || $name != $wgContLang->ucfirst( $name ) )
+ /* || $name != $wgContLang->ucfirst( $name ) */ )
return false;
// Ensure that the name can't be misresolved as a different title,
Thanks to Pill- and spacebirdy of #wiktionary and PhilHarnish and Nikerabbit of #mediawiki!
01 Apr, 06
black box is now using my custom-made black box wordpress theme:

See it in action. Sorry, the theme is for schuehsch exclusively. :)
19 Nov, 05
Spiegel Online schreibt unter der Überschrift Sonys Copyrightschutz verletzt Copyright über Sonys Rootkit-DRM.
Seit Wochen steht Sony BMG in der Kritik, weil die Firma auf Audio-CDs eine Software integriert hatte, die sich heimlich und automatisch auf PC-Festplatten installiert. Nun sieht es aus, als sei das als Urheberrechtschutz gedachte Programm selbst zusammengeklaut.
Und hat bis hierhin sogar noch recht, wenn auch einige Details nicht erwähnt werden. Zum Beispiel, dass diese “Software” (weniger euphemistisch als “Rootkit” oder “Trojanisches Pferd” bezeichnet) beliebige Dateien versteckt, und dass die Hauptkomponente der DRM-Lösung so schlecht programmiert ist, dass beim Entladen Windows abstürzen kann, und beim Deinstallieren das CD-Laufwerk des Computers unbrauchbar macht.
“Zusammengeklaut” trifft den Punkt auch nicht ganz: Die fehlerhaften Teile hat First4Internet scheinbar durchaus selbst entwickelt. Die Benutzung von “klauen” (ugs. für “Diebstahl”) für einen Urheberrechtsverstoß deutet bereits an, dass hier völlige Ahnungslosigkeit herrscht, denn Diebstahl wird von §242 Abs. 1 StGB so definiert: Wer eine fremde bewegliche Sache einem anderen in der Absicht wegnimmt, […]. Weder Sony noch First4Internet haben irgendjemandem etwas weggenommen.
Vor einigen Tagen kündigte das Unternehmen an, 4,7 Millionen betroffene CDs zurückzurufen - die ersten Bösewichter hatten sich schon eine Hintertür zunutze gemacht, die die heimliche Software auf den betroffenen Rechnern öffnet.
Ich möchte ergänzen: Nachdem Sony das Problem eine ganze Weile totschweigen wollte, und dann Statements wie “Was der Benutzer nicht weiß, stört ihn auch nicht” ausgab, auf den zunehmenden öffentlichen Druck dann einen kaum aufzufindenden Uninstaller “bereit” stellte (und dabei nochmals neue Sicherheitslücken installierte), und XCP schließlich sogar von Microsoft als “unerwünschte Software” kategorisiert wurde.
Das Programm soll den Nutzer eigentlich dazu bringen, bestimmte CDs von Sony BMG nur mit einer auf der CD enthaltenen Playersoftware abzuspielen. […] Die Software, sagen Experten, enthält Komponenten, die aus einem Open Source Projekt stammen. […] First4Internet [haben angeblich] ein bisschen geklaut. Das betreffende Projekt heißt “Lame” und ist ein Open-Source-Mp3-Player.
Die Software scheint tatsächlichen Komponenten aus einem Open-Source-Projekt zu enthalten. Eigentlich sogar mehreren - mindestens “LAME”, “VLC”, “mpglib”, “FAAC”. In jedem Falle aber ist “LAME” kein MP3-Player, sondern ein Encoder - also so ziemlich das Gegenteil.
Und wieder gilt: First4Internet haben nicht geklaut, sondern angeblich einen Urheberrechtsverstoß begangen.
Der Haken für Sony: Open-Source-Software heißt so, weil ihre Quellen für alle offen liegen sollen […]. Wer sich ihrer bedient, erklärt sich gewissermaßen implizit mit diesen Regeln einverstanden. In ihrer Software angegeben haben die Sony-Programmierer aber offenbar nicht, dass sie sich bei “Lame” bedient hatten. Und das verstößt gegen die Regeln von Open Source.
Open-Source-Software heißt so, weil ihre Quellen für alle offen liegen. Das “sollen” ergibt sich erst aus der Lizenz. Die Lizenz ist es nämlich, was anderen überhaupt erlaubt, den Code zu benutzen. Die wohl bekannteste Open-Source-Lizenz ist die GNU General Public License (GPL), die tatsächlich fordert, veränderten GPL-Code auch selbst wieder offen zu legen. Gegen diese “Regel” würde es also in der Tat verstoßen, wenn First4Internet (Sony haben nicht selbst programmiert) Code aus GPL-Projekten einfach so benutzen würden.
“Gegen die Regeln verstoßen” klingt gar nicht so schlimm. Kann doch mal passieren. Ignoriert wird allerdings: Nur wenn man der Lizenz zustimmt und sie beachtet, hat überhaupt ein Recht, den Code zu benutzen. Wird die Lizenz gebrochen, entfallen augenblicklich auch alle von ihr zugestandenen Rechte, und es greift das Urheberrecht.
“Urheberrechtsverstoß begangen” klingt nicht mehr so schön. Besonders nicht für Sony BMG, die auch gerne Mal Menschen wegen Urheberrechtsverstößen verklagen. Dabei geht es dann allerdings um Musik von Künstlern bei Sony, und in fast allen Fällen fehlt eine kommerzielle Komponente völlig. Die von Sony BMG Beklagten haben, im Gegensatz zu Sony (via First4Internet) nicht versucht, sich selbst als Schöpfer der Musik (der Programme) darzustellen.
Sony BMG hat gewissermaßen Copyrightregelungen verletzt mit seiner Copyright-Schutzsoftware. Peinlich.
Peinlich ist hier vor allem das entschuldigende, ausweichende “gewissermaßen”. Entweder Sony/First4Internet haben Urheberrechtsregelungen verletzt oder nicht. Im Moment deutet fast alles auf ersteren Fall.
Noch letzte Woche hatte das Unternehmen das Programm als “wichtiges Werkzeug zum Schutz unseres geistigen Eigentums und des geistigen Eigentums unserer Künstler” bezeichnet.
Und das tut das Unternehmen immer noch. Um ihr geistiges Eigentum zu schützen, ist scheinbar jedes Mittel recht. Das Eigentum von anderen, oder die Datensicherheit ihrer zahlenden(!) Kunden - nun ja.
PS: “Raubkopierer werden mit Freiheitsentzug bis zu fünf Jahren bestraft.” Nicht wahr?
Links
21 Oct, 05
So, I just got the Flock Developer Preview (build 0.4.8).
It’s like Firefox on drugs. Blogger drugs. Pretty neat looking, it works (well, it’s basically just rebranded Firefox with some extras), and it might even bring the revolution it so loudly speaks of on the website. At the very least, its “feed” button is large and obvious.
They really should get a GUI/usability person working on the interface though. Having fields not accessible by keyboard is unacceptable. The improved search box never tells you how improved it is until you notice by chance - the interface is not obvious, and confusing. And then the freaking Options dialog is too narrow for its contents, how did that get by QA?
Flock’s tools are quite nifty though. I’m writing this post from within Flock, via the prominent “Create blog post” button and XML-RPC. (It insists on putting <br /> before every </p>, I have no clue why. It also assumes I use HTML, when I use Markdown.)
Oh, and— as soon as you enable del.icio.us synchronization for your tags, the default favorites (naturally) get automatically added to your delicious account. And thus, Flock gets the top three spots at del.icio.us popular list within hours. Honi soit qui mal y pense.
More as I play around with that thang.
Greg Yardley raises some good points about Flock’s target market and competition.
Technorati Tags: Computer, Flock, Software, Ramblings, Web
04 Sep, 05
Asa Dotzler says Firefox 1.5 is almost ready. I wonder whether it will finally get the handling of soft hyphens (­) right. Bugzilla says it’s not so.
And here I was hoping for a standards-supporting, mature browser. Maybe I’ll switch to Opera after all. They might not be Open Source, but they’re open to user demands, something Firefox development seems to lack at the moment.
(Don’t spam the bug, there’s a link to a mozillazine forum thread in the last comment, use that.)