SHOT.py: dead simple cross platform blogger client
Monday, November 29th 2004
Since I *detest browser editors*, I set out to find a nice, simple blogging tool. I was looking for a win32 client, preferably GPL.
But alas. As I didn't find any, I wrote my own. Using "python":http://www.python.org, "wxPython":http://wxpython.org and "wax":http://zephyrfalcon.org/weblog/arch_Wax.html.
h3. wax
Since wx is so stupidly complex, I found wax, which wraps wx into something usable. Wax is pretty neat. It's cross platform, so now I can keep a SHOT icon on every desktop and I can pour my heart out whenever I want. Wee.
h3. Screenie and code
Here's what it looks like:
!!files/shot1.png!
(I didn't say it was pretty ;)
You may download the "superior code":/~havardda/files/shot1.py
Check it.
Textile bug: swallows non-ascii characters
Sunday, November 28th 2004
## The problem
It seems like *Textile doesn't play well with non-English languages*. As I haven't seen any solutions anywhere, I'm posting this trackback. Maybe it's fixed, I don't know, but here we go anyway.
(I also [posted this on the WP Support forum](http://wordpress.org/support/index.php?action=vthread&forum=3&topic=16021&page=-1#12), slightly modified here for readability)
## The Bug
Textile 1 and 2 both *swallow non-ascii characters*. I just fixed it myself on this blog (where 'æ', 'ø' and 'å' disappeared).
More specifically, the
encode_high() function is the culprit.
## The workaround
The simple and dirty fix is to *comment the line that runs this function*, e.g. for Textile 1:
... if (function_exists('mb_encode_numericentity')) { #$text = encode_high($text); } else { ...This is *line 60*, the file is *wp-content/plugins/textile1.php* ## The puzzlement I really don't understand _why_ you need
encode_high() at all. My blog seems *perfectly fine without it*... But I haven't bothered to investigate it too much, now that it works for me.
Fanga mus
Sunday, November 28th 2004
# *Spiste litt av rosinbollen* min som lå på kjøkkenbenken
# Klarte å *lirke bolle av musefella* æ satte opp
# Klarte å *snike unna ost* som lå festa i fella
# Blei *drept* da æ festa osten enda bedre
xmlrpc i javascript
Sunday, November 28th 2004
Det er fullt mulig å gjøre xmlrpc i javascript. Selv om alle heller vil ha soap, har xmlrpc faktisk noe for seg. Hvorfor?
- Det er enkelt.
- Når tekst overføres vha XMLHTTPRequest-objektet i mozilla, blir den delt opp i biter. Uansett om du skjønte forrige setning eller ikke, er konsekvensen at vcXMLRPC må sørge for å slå sammen alle tekst-"bitene".
- En oppdatering for å takle xmlrpc Faults