use HTML code in Wikimedia

internet malware technology

since it is pretty tricky to google for, here the wonderful scary as hell wikimedia addition that lets you add raw html code in your pages:
[make sure to read the end of this post]


< ?php # RawHtml.php - raw HTML extension # # Defines the tag pair .
# Sends the content out without any processing.
#
# To use, include this file into your LocalSettings.php
# To configure, set members of $wgRawHtml after the inclusion.
#
# include 'RawHtml.php';
#
# $wgRawHtml = array('JoeUser', 'JoeUserBot')
#
# Adapted from code by Jan Steinman

class raw_html_settings { };

$wgRawHtml = new raw_html_settings;
$wgExtensionFunctions[] = 'wf_raw_html_ext';

function wf_raw_html_ext() {

global $wgParser;

$wgParser->setHook('RawHtml', 'render_raw_html');
}

function render_raw_html($raw_html_src, $style='') {

return $raw_html_src;
}
?>

found here.

It really is easy to use: Just add the file as RawHtml.php and then add in the end of LocalSettings.php the following lines:


include 'RawHtml.php';
$wgRawHtml = array('user-name-to-use-this-goes-here' , 'this-would-be-a-second-one');

It turns out that the user names get absolutely ignored. So actually this is really dangerous to do, since ANYBODY that can edit the wiki can also insert any html code. Which is ok in a non public wiki, but NOT out there on those internets.

So the code above is plain malware: A bot could crawl the sources of wikis and could insert any html that might please in those pages. Allot of harm can be done that way.

For a decent explaination how to add your own addition look here

I ended up boiling up a couple of probably horrible php lines myself:


?php
#mimg.php
#insert image in wikimedia pages.
#to use add code like:

#/path/to/image.png

#please note that I have no freaking clue what I am doing.

#this will only work with local links to images, since all
#characters apart from numbers, letters slash and dot will be filtered when rendered
#to install save this in a file and include in LocalSettings.php

class mimgclass { };

$mimgo = new mimgclass;
$wgExtensionFunctions[] = 'installmimg';

function installmimg() {
global $wgParser;
$wgParser->setHook('mimg', 'mrender_mimg');
}

function mrender_mimg($mimg, $style='') {
$mimg = preg_replace ('/[^a-zA-Z0-9\/\.]/' ,"",$mimg);
return "";
}
?>

transmit droplets created from within Interdubs

confessions of a pixel pusher interdubs technology

Running and developing a system in the same time is allot of fun. An idea can be quickly added and / or tried. Some are more
involved though. At this moment there are 42,658 files in Interdubs. So uploading happens allot. There was a ftp interface, but people
need passwords and needed to remember the folder name.

It could be easier. And now it is. It’s as simple as clicking on a link:

A transmit droplet with the proper parameters get created and downloaded automatically. Those droplets can be kept in the dock or on the desktop, and uploading is even easier than it was.

As with so many nice and easy things the underlying technology is actually not that simple. It was great to be able to draw from the resources and experience of the amazing people at Oneiric to get the backbone for this service addition installed. David Green was super helpful, without him this feature would have taken weeks longer to implement. Working with David is allot of fun, since everything he says he will do he does. And it works, since he has tested and checked it from the get go.

It is truly interesting how a small company with people that care can have so much more impact that larger ones that take weeks to move.

suExec fpr Apache under OS X

Apple confessions of a pixel pusher OSX technology

In order to get Apache running with suexec under OS X 10.4.11 and also have php you will need to do the following:

1) get the apache sources. (1.3.39)

2) get the php4 sources (php-4.4.8)

3) extract in the same directory and go into the php one to run:

./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-xml \
--with-apache=../apache1.3.39

make
sudo make install

4) then go into the apache folder and

./configure --with-layout=Darwin \
--enable-module=most \
--enable-shared=max \
--enable-suexec \
--suexec-caller=www \
--suexec-docroot=/Library/WebServer/Documents \
--activate-module=src/modules/php4/libphp4.a \
--suexec-userdir=Sites

make -j2
sudo make install

5) I had to change /etc/httpd/htddp.conf like:

comment out modules in httpd.conf
#LoadModule userdir_module libexec/httpd/mod_userdir.so

#LoadModule php4_module libexec/httpd/libphp4.so
#LoadModule hfs_apple_module libexec/httpd/mod_hfs_apple.so
#LoadModule bonjour_module libexec/httpd/mod_bonjour.so

#AddModule mod_userdir.c

AddModule mod_php4.c
#AddModule mod_hfs_apple.c
#AddModule mod_bonjour.c

Please note that mod_php4 gets added but not loaded. Probably since it got compiled in.
My httpd rejected to start with hfs_apple or bonjour loaded and crashed with userdir.

format peace

confessions of a pixel pusher history media Sony technology

post format war

It is hard to imagine that HD DVD would come back from the blow that Warners BluRay decision delivered. The internet was busy speculating about half a billion dollars in bribes that supposedly that came down rolling Barham Blvd. I think that the sales performance of DVD makes the Studios very nervous. All too quickly they got used to the huge volume of DVD revenue and a steady increase for that matter. The average american bought DVDs for $53, rented them for $25 in 2007. And he/she paid $32 at the Cinema Box office. For both HD formats combined a single dollar left peoples purses in the last year.

In total billions these numbers look like:

16 DVD sales
7.5 DVD rentals
0.3 nextgen DVD formats (both)
9.6 Box office

The troubling point for the studios seems to be that DVD sales are declining. Already in 2005 DVD set top box sales had gone done for the first time in history. Back then it probably was the fanfare about the ‘next thing’. People don’t like to buy yesterdays gadget. The studios felt they needed to get HD via DVD going. And Sony did the better show and number exercises.

Both formats encoding technology, bandwidth and other core parameters are pretty similar. As Mike Curis eludes to, the scripting technology in HD DVD seems to be more open, developer friendly and thefor hugely favorable over the bloated Java based BluRay implementation. But what’s to expect from Sony.

Flat panel displays sales have taken off, and about a year analog TV will be turned off. With the format war being over the Bluray sales should surge. And, I think, they will. Initially. Many bluray players will be PS3s. After correcting the outrageous price Sony’s next gen box had finally some sales worth mentioning. How many people bought the black box because they could not get the cute white one is a different story.

I wouldn’t be surprised if DVD+BluRay Sales volumes would come out flat in 2008 and from there on further decline. There are three reasons for this future disappointment:

* It’s the internet stupid.
Not only the net alone. Technology progresses everywhere. Hell, my toaster wants more attention than it’s great grandfather did 20 years ago. Media is omnipresent. VHS had to compete with, well, Books and TV. Maybe radio, cinema and newspapers. That’s about it. Bluray faces a vastly different world. None of the existing media emanations will just fade away. And new ones get created with an increasing pace. There is simply not enough time to watch all those movies.

* we don’t care since you don’t care
The Studios have failed to understand their own product. There is a history to this. And others failed similarly: The music industry would be in much better shape, would they have not confused the means of peddling circular things with the end of enabling people to enjoy music. Both HD formats allow for better visible quality compared to DVD. Better bandwidth and modern codecs could make for a great experience. Despite this potential most early Discs that were available have been widely criticized for their poor transfers. Some people felt that they would be better off with a decent upscale of a good quality DVD. People love movies. A considerable slice of the population, and almost certainly the majority of early (media) tech adopters care for a good experience. The Studios should have put the utmost emphasis on quality. And that starts with the film transfer. Even though the studios are not keen to involve creative people more than absolutely necessary, they should have gotten them on board for the launch of the new media. Imagine Steven Spielberg approving a 5 movie disk set claiming “this is how I want my movies to be seen”. People would spend allot of money for this. They would get players, lay cable. The whole thing. Maybe the studios should have gotten together with the ACE and directors guild to develop a approval system. Pay directors and DPs to sign off on a DVD transfer. I would pay happily knowing that the creative vision was intact. OK, in some cases I would simply paying for the drug habit of that one hit wonder boy. But I do that anyway, one way or another.

* it’s complicated
HDMI 1.3 is really exciting, since it not only features greater than bitdepths but also could carry the extended xvYCC color space. While being true, not many people know what this means. And neither should they. DVD succeeded because it was ‘as simple as CD’. No more rewind. That made Hollywood billions. Simple is key. The HD formats are not exactly known for simplicity. And the studios are not helping. Neither do the hardware makers. I find my way around these matters. But it’s my job to understand all this. And if it wouldn’t, then I would really watch another movie than to worry about downsampled movies that were escaping DRM through the analog otherwise. Having two formats was of course a big problem. But even with BluRay remaining it’s not as easy as it should be. Different disc sizes. Flat panel resolutions. Frame rates.
Image processing. And an interface written in Java simply scares me: There are just too many ways developers mess up. Hardware makers and studios alike fall in love with features that have nothing to do with their product. Multi Angle was one of these technical possibilities that DVD had. Studios were all excited about it. Since they didn’t understand what their product is: A movie is one view. One perspective. Everything else is a cute vaudeville attraction or plain and simple porn that desperately tries to stand out (no pun intended).

DVD hardware sales

Variety on DVD sales numbers
2007 Box office

success and why it is nice

confessions of a pixel pusher interdubs politics technology

Interdubs had an awesome year in 2007. I had a certain expectation where the service should be by now. Development-wise and feature=wise I am behind. I want more features, and I want to write them now. But doing them right does always take more time than I think it would. And, my clients got what they essentially need months ago. Since then new features have been extra and on top of it.

Looking back at 2007 I particularly like the the fact that Interdubs could scale from a few beta clients to more than 20 customers. Many of them with very diverse needs. And all of them seemingly happy: Even though nobody is contractually obliged to continue their subscription each one renewed month by month. People some times wonder why Interdubs is so inexpensive. Specially compared to it’s feature set. I think it makes sense: Having the most awesome feature vs. price ratio means that I don’t have to spend much time to keep my clients happy otherwise. It also helps with marketing: If anybody interested in an online media solution should happen to talk about it to an existing interdubs user I will get a call. And when I get a call it becomes a sale. Sooner or later it does. Always.

2007 was also nice, since I had not to act on my 99.99% uptime or money back promise. By now it would be not so nice, if I can not charge anybody for a full month. Which is the whole point: I believe in Interdubs’ reliability enough to put my money where where my mouth is. Outages might happen in the future. Nothing is perfect. But by giving my clients their money back for a whole month, if Interdubs should be longer unavailable than for 5 minutes I there is at least a plan. If this should ever happen. The looming penalty of a month long ‘invoice outage’ makes it financially viable to upgrade the servers that Interdubs runs on. So that it does not happen in the first place. Or is at least less likely.

2007 I published 590 times code updates to Interdubs. That’s why I don’t like to call things “Versions”. Version 590? Sometimes I just moved a couple of links around, to make a frequently used choice easier to find. A couple of times I replaced or upgraded the entire engine that runs Interdubs. I might have gotten lucky, but at no point did I loose data during those updates. And only about 10 changes were so stupid, that my users demanded a change back or further alteration of what I did. Knowing that I will hear about things going in the wrong direction allows me to suggest things with great liberty. The same concept looks enabling from the other side as well: Interdubs users know that they will be listened to. Sometimes it takes only minutes between a suggestion and the actual feature / change showing up on the site. Actually a great deal of ideas and features that make Interdubs worthwhile are a result of this collaboration.

2007 was a very successful year for Interdubs, so I had to decide what to do for Holiday presents. I decided not to send any at all. Instead I asked my kids to pick a charity. They suggested “Doctors without Borders” which I liked as well. So instead of sending gift baskets around some people got vaccinations that they needed.

Being able to decide on these things what to do is one of the perks of running your own company. Today I found Charity Navigator and realised with great relief that only a very small percentage of the interdubs donation will go to the adminstration.

I am certainly looking forward to move Interdubs forward in 2008.

applescript to run a command on each file dropped on to it

Apple technology

These lines will run /path/command with a first parameter of the file name that got
dropped on the Apple Script app:


on open (ItemList)
repeat with thisItem in ItemList
do shell script "/path/command " & POSIX path of thisItem
end repeat
end open

Simple. And unintuitive. AppleScript would rule the world if it would have JavaScript syntax for instance. Instead apple idiots made “Automator”. What a silly piece of shit. Only fanboys spend time to learn a buggy and totally non portable interface like AppleScript or Automator. I could have bothered with Windows if I would want that. Oh, the script above fails to work when there are spaces in the name. Thanks AppleScript.

music and technology

art confessions of a pixel pusher media technology

The Rolling Stone writes about audio technology and music and how things have changed in recent years.

Technology and Art influencing each other is a very interesting topic for me. This article touches on a couple of interesting points. Not more though. Without any respect for the matter it tries to discuss it merely assembles unrelated facts and sound bytes along one imaginary audio/digital axies. From production to consumption it bounces back and forth. Emitting half educated statements along the way.

A couple of articles, better researched would have been much better.

The bigger question is how I get my wife to approve the move of the Stereo from the attic into the living room.

power consumption of Game consoles

technology

Compared here are the power consumptions of the three current consoles Having graphics from a couple of years ago pays of big time for the Wii here. If all 13 million sold Wii’s would be running they save roughly the power that Hoover Dam in Nevada generates. If you would assume that 13 million PS3/XBox360s or PCs would be running otherwise. This excludes any transportation losses etc.

Even more interesting is the comparison of power consumption for Movie playback. During gameplay you actually get different results from the Wii versus the high performance consoles. But the movies look the same.
As shocking as those graphs look it costs roughly 4 cents more in energy to watch a 2.5 movie on a game console / PC instead of a dedicated player.

that would be nice

history misc politics technology

cheap solar panels?

That would indeed be nice.

Steve certainly takes no Pictures

Apple marketing technology

Steve Jobs certainly takes no pictures. At home, the task for the day: to get the pictures off the Samsung snapshot camera onto the iPook. So that my wife can take new ones. Not thinking much (always a bad start) I directed her to iPhoto to manage the digicam images. What a piece of junk. iPhoto.

If iPhoto would be an application that people were supposed to be money for, then it’s prices should be minus a couple of hundred dollars. Seriously. Nothing works as expected. It seems to have it’s own little logic. I seriously think it as big of a piece of junk as iBackup. Or whatever that pre Timemachine pretend-ware was called. The one with the red umbrella icon.

I heard (in horror) that iViewMedia got bought by Microsoft. If I have to deal with iPhoto for 2 more minutes then I am ready to buy my first Microsoft software.