Monthly Archives Mai 2010

iPhone: libxml2 & RELAX NG validation

Having a validating parser in place can reduce the required code to parse XML a lot – you know very well what you actually get. As mentioned in my last post about RELAX NG & trang, I prefer RELAX NG over W3C XML Schema – which doesn’t matter anyway because Apple’s suggested XML parser …

XML Toolbox: RELAX NG & trang

e.g. when handling RESTful APIs you may want to validate the response XML – a custom one in most cases.

I typically use tools already installed on every Mac and fire a http GET request with curl and immediately check it with xmllint like
$ curl http://www.heise.de/newsticker/heise-atom.xml | xmllint –format –schema myschema.xsd -
But I just don’t …

TextWrangler + tidy

as I didn’t get TidyService to work correctly with UTF8 umlauts, I created a UNIX Shell Script wrapper for html tidy as it comes with OS X that does the job at least for TextWrangler:

open TextWranglers “Unix Filters Folder”
create a file named e.g. “Tidy Html.sh”,
paste the following lines into the file and save it:
#!/bin/sh
# …

Immo Betrug / Scam

auf Wohnungssuche begegnet man lustigen Sachen. Da war dieses extrem billige Angebot (2 Zi, 80m² für 550€) mit spannender Adresse, aber fragen kostet ja nix.

Die erste Mail der Anbieterin war dann:
Hi,

Thanks for your interest. The apartment is still available. I moved recently with my job in London, United Kingdom, but the rent is high …

WordPress Email Benachrichtigungen

ojeoje, ist das so abseitig oder hab’ ich’s nicht verstanden? War jedenfalls komplizierter als erwartet:

Die Konto Einstellungen für den Email Absender müssen von Hand in die DB geschrieben werden – die 4 mailserver_* Zeilen in der Tabelle wordpress_options,
Absenderadresse und Nick dann noch per Plugin,

fertig. Aber wieso so kompliziert?