Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 222
Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 224
Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/public/lib.urlhandlers.php on line 65
Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 247 JDobbelstein.dev() - Tag - pythonTo infinity, and beyond !2011-01-10T00:04:33+01:00Johanurn:md5:98d5e93307cb5ee6e20feba0dc3f35ebDotclearA custom Vimshurn:md5:d868b6548aec926b62709dfb7cfac5c62011-01-10T01:04:00+01:00JohanThe wonderful world of computer programmingpythonvimvimsh<!-- vim:spell:spelllang=en:
Note that the article title is missing.
It is managed directly by DotClear2.
- - - - - - - - - - - - - - - - -
Insert below a short introduction
=================================
-->
<div style="text-align:center;">
<video controls="true" src="http://www.jdobbelstein.eu/blog/public/999_Vimsh/vimsh.ogg" style="width:33em;">
Your browser does not support the <code>video</code> element.
</video>
</div> <p>The previous video demonstrates a simple hack using a custom version of
the vim plugin vimsh. The new features are:
An option g:vimsh_filetype to customize the syntax coloration in
the prompt buffer;
Another option g:vimsh_split_method to control where the prompt
pops. Cf. the vim functions :below and :above.
Improve g:vimsh_sh_arg parsing using... <em><a href="http://www.jdobbelstein.eu/blog/post/2011/01/10/A-custom-Vimsh">Read</em> A custom Vimsh</a></p>Unicode in Python and i18n in Fedoraurn:md5:523556271f859ae6173ca52b488da1852010-08-10T13:45:00+02:00JohanNow geeking ...fedorai18npythonrantunicode<!-- vim:spell:spelllang=en:
Note that the article title is missing.
It is managed directly by DotClear2.
- - - - - - - - - - - - - - - - -
Insert below a short introduction
=================================
-->
<p>When I was playing with the ports4dotclear system (see the previous post
about it), I had to fix a number of Unicode handling errors in both
Python and Perl. For those of you who do not know what is <a href="http://www.unicode.org/">Unicode</a>,
it's the technology which allows me to write this kind of stuff:
<em>«æ€¶ŧ←»® or «你好世界»</em>.</p>
<p>I was forced to use Unicode because, well, XML-RPC communications are in
XML and thus require the content to be encoded in UTF-8 (a Unicode
encoding/decoding charset).</p>
<p>All this mess leads me to this conclusion : <em>Unicode sucks in Python 2.x
! (and Fedora i18n has still some strange artifacts)</em></p> <p>I. Python
There is a well known unicode bug in Python 2.x. It's really a shame it
didn't got fix earlier, although I may have read the new python 3k fixed
it. Anyway, this bug pops when you play with POSIX pipes and wide
characters. It's very annoying because you don't understand why a simple
shell redirection (on stdout) should change the python... <em><a href="http://www.jdobbelstein.eu/blog/post/2010/08/10/Unicode-in-Python-and-i18n-in-Fedora">Read</em> Unicode in Python and i18n in Fedora</a></p>XML-RPC on DotClearurn:md5:75999dee537207bd484087c294b722d82010-01-15T23:52:00+01:00JohannetworkdotclearpythonvimXML-RPC<p>XML-RPC is a protocol to remotely control a web application. Here is a
short demo of XML-RPC to create, view and edit entry on the DotClear2 blog
platform from the command line, using a tiny python script.</p> <p>Your browser does not support either the video element or
embedded OGG theora video.
What can we do with dotclear.py ?
Create post entry.
List previous ones.
Modify them
... or delete them.
Locally, on your computer, using your favorite browser/text editor
to preview/edit the blog entry.
But why ???
Because I got bored and... <em><a href="http://www.jdobbelstein.eu/blog/post/2010/01/15/XML-RPC-on-DotClear">Read</em> XML-RPC on DotClear</a></p>