How to get Nearest Neighbor Interpolation working in Silverlight or WP7

If you landed here, you probably have found yourself using some pixel graphics in Silverlight or Windows Phone 7 (WP7) and realized that there is no Nearest Neighbor Interpolation available.

That sucks.

But here is a "solution". It's in no way perfect, and works only if you bind to a string pointing to your file, which should be local. But this could be easily fixed or worked around if you need to.

So, without further ado, here is the code:

And of course the obligatory screenshot:

Tagged WP7

Christmas present from Opera

Today reached me this nice Christmas present from Opera:

Unknownname

Thank you very much Opera! :)

Uni Ulm App für Windows Phone 7

Die Universität Ulm hat ihre eigene, wenn auch inoffizielle, App im WP7 Marketplace!

Für die ungeduldigen, hier der direkte Link (öffnet die Zune Software): download

Die Uni Ulm App bietet euch den aktuellen Mensaplan für die aktuelle, sowie nächste Woche und sie logged euch in das Uni Welcome WLAN ein! (Ab Version 1.2 die bald online sein dürfte.) Da der Internet Explorer leider so seine tücken hat, ist das definitiv die beste Art das Uni-WLAN mit WP7 zu benutzen!

Ihr findet sie kostenlos im Marketplace auf eurem Handy oder über obenstehenden Link über euren PC.

Read the rest of this post »

Tagged Uni Ulm WP7

Vorlesungen online anschauen

Leider bietet das die Uni-Ulm ja noch nicht an, aber es gibt zum Glück einige Universitäten, die ihre Vorlesungen nicht nur Filmen und online stellen, sondern sogar JEDEM zu Verfügung stellen!

Hier meine kleine Liste an Online-Vorlesungsseiten die ich bisher gefunden habe.

http://timms.uni-tuebingen.de/Browser/Browser01.aspx
http://video.tu-clausthal.de/8.html
http://www.tele-task.de/de/archive/lecture/
http://videoonline.edu.lmu.de/fakultaet

Wenn ihr noch andere kenn, schreibt mir!

Soma FM Widget (for Opera)

Attached to this post (on Posterous) you can find an alpha version of a small Widget for listening to http://somafm.com/

It's a great internet radio station (actually 20) and now listening to it is even more convenient!

(You have to have Opera installed to use this)

Click here to download:
SomaFM.wgt (148 KB)

Somafm_widget_screenshot

Tagged Opera Soma FM

Win7 Updates installed together with IE9 Beta 1

The following two updates are installed by the new IE9 Beta:
http://support.microsoft.com/kb/2259539/en-us
http://support.microsoft.com/kb/2028560/en-us

Especially the last one seems to be interesting, as it promises to do some performance improvements for D2D.

Does anyone know more about these Updates?

Update 1

Looks like there was reason to be sceptical. This is how one of my .NET application now looks like now:

If you want to try yourself, I wrote a little smaple application: http://anyhub.net/file/directwrite-vs-wpf.zip
It renders the first line with DirectWrite and the second one with normal WPF rendering.

Update  2

I'll now try if IE9 will keep working when I remove these updates...

IE9 works without these "Hotfixes", but removing them didn't resolve my Problems.

I know, it is only a Beta, but if you install something system-wide then at least these parts should be very well tested...

PS: I tested also with deactivated HW acceleration. Still no success.

PPS: Maybe I should post my graphics card: AMD/ATI Radeon 4670 Mobility

PPS: My graphics driver just crashed when trying my own sample application... Something is horribly wrong here. I'll keep IE9 for some days and then possible remove it again...

Update 3

Looks like Mipony released an Update that fixed the isse, so maybe they had some problem with their embedd code.

But this doesn't solve my problems with my sample application of course...

Binary Planting - Please install this / Bitte installieren

English text below

 

Das Problem

Im Detail wird die meisten von euch sicher nicht interessieren was das Problem ist (Wenn doch: http://support.microsoft.com/kb/2264107 ) aber im Moment sieht es so aus:

 

Alle Windows Versionen haben einen Bug so dass ein einziger Klick auf einer Webseite euren Computer mit allem nur erdenklichen Infizieren kann. Und leider kann Microsoft dieses Problem nicht einfach selber lösen, da sonst viele Programme nicht mehr funktionieren würden.

 

Die Lösung

Installiert den passenden Patch für euer Betriebssystem - die Links findet ihr weiter unten. (Wenn ihr nicht wisst, ob ihr 64 Bit habt: Rechts-Klick auf den Computer und dann Eigenschaften)

Danach noch die Datei die ich an diesen Post angefügt habe öffnen, und dann den Computer neu starten.

Wenn alles geklappt hat solltet ihr nichts merken, aber trotzdem sicher sein. :)


 

English Version

This is the "solution" to binary planting. Just install the patch from below for your operating system and then start the file that I have attached. Mor information can be found at: http://support.microsoft.com/kb/2264107

 


Windows XP

Windows Vista   64 Bit

Windows 7   64 Bit

 

Posterous didn't let me attach the file, so here is a link: Registry File

Posterous wollte mich die Datei nicht anhängen lassen, deshalb hier als link: Registrierungs Datei

Convert files to HP Roman 8 encoding

If you are just reading through my blog, you can probably just skip this post.

But if you found this through some searching you probably just found the solution to a very stupid problem:

HP used the so-called Roman 8 encoding for their printers. An encoding that is not standardized and thus not convertible by normal means.

I had that problem when I wanted to use a PCL converter but the original program somehow managed to use a different encoding.

But to make a long story short, here is your solution: ConvertToRoman8.exe

This command line application takes three parameters:

  • Original encoding (in a format that .NET knows of). E.g. "ibm852"  
  • Original File  
  • Output File (may NOT be the same)  

I hope I could help someone out there :)

PS: Due to popular demand, the source: download

Warum du Opera benutzen solltes (und wie das geht)

Was ist das?

Opera ist ein Browser, so wie Internet Explorer, Firefox oder Googles Chrome. Also das Programm mit dem ihr im Internet surft, und das deshalb der zweitgrößte Faktor ist, der euer Internet beeinflusst (nach euer DSL Geschwindigkeit).

Read the rest of this post »

Tagged Opera