| [00:38:45] |
* |
EnTeQuAk has quit IRC |
| [02:34:30] |
* |
aconbere has quit IRC |
| [02:44:10] |
* |
heikkit has quit IRC |
| [02:50:08] |
* |
leche has quit IRC |
| [03:08:51] |
* |
alowry has quit IRC |
| [03:19:26] |
* |
mtrichardson has quit IRC |
| [03:35:37] |
* |
alowry has joined #pocoo |
| [03:52:50] |
* |
Baumichel has quit IRC |
| [05:09:35] |
* |
sashav has joined #pocoo |
| [05:13:42] |
* |
willwill has joined #pocoo |
| [05:14:54] |
<willwill> |
hi, i'm creating xchat bot with jinja2 and I can run {{ GET('localhost')|striptags }} (GET is urllib2 wrapper) but when I reload the plugin, striptags raise 'NoneType' object is not callable |
| [05:53:19] |
* |
alowry has quit IRC |
| [07:00:57] |
* |
Crast has quit IRC |
| [07:38:23] |
* |
whs has joined #pocoo |
| [07:57:03] |
* |
willwill has quit IRC |
| [08:31:29] |
* |
whs is now known as willwill |
| [08:31:33] |
<willwill> |
hi, i'm creating xchat bot with jinja2 and I can run {{ GET('localhost')|striptags }} (GET is urllib2 wrapper) but when I reload the plugin, striptags raise 'NoneType' object is not callable |
| [09:04:27] |
<Leonidas> |
POX: thanks for the quick bugfix, that was fast! |
| [09:09:13] |
* |
jpcw has joined #pocoo |
| [09:21:54] |
<Leonidas> |
birkenfeld: does pygmentize support input via stdin? |
| [09:24:32] |
<asmodai> |
Muhahaha |
| [09:34:56] |
<birkenfeld> |
Leonidas: sure |
| [09:35:02] |
<birkenfeld> |
asmodai: hmm? |
| [09:35:31] |
* |
Leonidas tries to feed latex-source into pygmentize |
| [09:35:49] |
<asmodai> |
birkenfeld: :D |
| [09:36:42] |
<Leonidas> |
hmm... http://www.pygments.com/ ? |
| [09:37:05] |
<birkenfeld> |
what about that? |
| [09:37:32] |
<Leonidas> |
birkenfeld: it just looks... strange. |
| [09:37:53] |
<Leonidas> |
http://pygments.org/demo/1079/?style=bw <- doesn't change the colors btw. |
| [09:37:59] |
<Leonidas> |
at least not without a cookie |
| [09:38:17] |
<birkenfeld> |
blame django |
| [09:38:28] |
* |
Leonidas wanted to find aout whether bw really is black/white |
| [09:38:52] |
<Leonidas> |
s/aout/out/ (uhh, to much unix and cc in my head) |
| [09:39:10] |
<Leonidas> |
birkenfeld: why? django usually handles GET fine. |
| [09:39:16] |
<birkenfeld> |
no idea |
| [09:39:26] |
<birkenfeld> |
and no, I don't want to look at it |
| [09:40:31] |
<Leonidas> |
strange |
| [09:40:44] |
<Leonidas> |
ok, bw is black/white, very good. |
| [10:26:41] |
* |
leche has joined #pocoo |
| [10:55:02] |
* |
leche has quit IRC |
| [11:04:39] |
* |
maze has quit IRC |
| [11:10:03] |
* |
maze has joined #pocoo |
| [11:47:27] |
* |
izibi has joined #pocoo |
| [11:47:27] |
* |
|izibi| has joined #pocoo |
| [11:47:47] |
* |
izibi has quit IRC |
| [11:48:01] |
* |
izibi has joined #pocoo |
| [12:41:12] |
<Leonidas> |
birkenfeld: ok, there it is: http://xivilization.net/flyserver/tex/littlepy/demo.pdf |
| [12:41:38] |
<Leonidas> |
birkenfeld: source: http://xivilization.net/flyserver/tex/littlepy/demo.tex |
| [13:05:18] |
* |
KirkMcDonald has quit IRC |
| [13:16:37] |
* |
jpcw has quit IRC |
| [13:18:11] |
* |
plaes has quit IRC |
| [13:20:27] |
* |
plaes has joined #pocoo |
| [14:04:27] |
* |
jpcw has joined #pocoo |
| [14:08:25] |
<asmodai> |
prencher: pfft |
| [14:18:34] |
<prencher> |
WAT |
| [14:18:52] |
* |
Crast has joined #pocoo |
| [14:26:00] |
<ronny> |
Leonidas: how to use that with larger source parts? |
| [14:26:33] |
<Leonidas> |
ronny: \pythmentize{python}{code... |
| [14:26:37] |
<Leonidas> |
more code... |
| [14:26:41] |
<Leonidas> |
all code} |
| [14:27:05] |
<Leonidas> |
At least that should work. I should add an environment too |
| [14:27:06] |
<ronny> |
Leonidas: is there a way to use it with the begin/end statements? |
| [14:27:19] |
<Leonidas> |
ronny: not yet, but I'm working on this. |
| [14:27:27] |
<ronny> |
cool, thanks |
| [14:27:28] |
<Leonidas> |
ronny: expect a CTAN upload soon |
| [14:48:27] |
* |
stifal has joined #pocoo |
| [14:52:24] |
<mitsuhiko> |
pointer arithmetic on constant strings in c is valid i suppose? |
| [14:52:31] |
<mitsuhiko> |
like "abc"[x % 3] |
| [14:59:41] |
* |
willwill has quit IRC |
| [15:06:55] |
* |
CIA-49 has quit IRC |
| [15:23:03] |
<asmodai> |
mitsuhiko: [15:22] <<@dfjoerg>> not in php |
| [15:28:01] |
<Leonidas> |
birkenfeld: is there a way to suppress the output of the Verbatim-Environment? |
| [15:28:16] |
<Leonidas> |
Hmm, on the other hand, it does not make much sense.. |
| [15:47:13] |
* |
CIA-49 has joined #pocoo |
| [16:10:28] |
<Leonidas> |
ronny: I uploaded my package now, we'll see how long they need to publish it. |
| [16:12:47] |
<birkenfeld> |
Leonidas: so it's finished? |
| [16:13:13] |
<birkenfeld> |
I'd like to include it in the pygments dist too |
| [16:15:08] |
<Leonidas> |
birkenfeld: It is not finished but it works. |
| [16:15:38] |
* |
EnTeQuAk has joined #pocoo |
| [16:16:56] |
<Leonidas> |
There might be some changes still, depends on what the tex professionals prefer to use. |
| [16:30:20] |
* |
maix has joined #pocoo |
| [16:33:21] |
* |
[diecast] has joined #pocoo |
| [17:29:57] |
<birkenfeld> |
Leonidas: in any case, I'd like to see it :) |
| [17:55:14] |
* |
alowry has joined #pocoo |
| [17:55:48] |
* |
mtrichardson has joined #pocoo |
| [18:41:57] |
* |
heikkit has joined #pocoo |
| [19:01:44] |
* |
KirkMcDonald has joined #pocoo |
| [19:08:27] |
<Zenom> |
with jinja2 a {% set total = amount %} in a loop is only available in the loop, correct? |
| [19:08:41] |
<Zenom> |
if so, how can I add up the amounts in the loop for a total column? |
| [19:11:23] |
* |
leche has joined #pocoo |
| [19:16:56] |
* |
aconbere has joined #pocoo |
| [19:40:00] |
* |
hoffmann has joined #pocoo |
| [19:54:08] |
<Zenom> |
how would i do something like {% set total += payment.amount %} with jinja2 |
| [20:14:00] |
<ivan> |
i'd just use sum() |
| [20:14:18] |
<ivan> |
unless you're trying to shave nanoseconds |
| [21:05:36] |
<birkenfeld> |
Leonidas: ping!! |
| [21:06:03] |
<Leonidas> |
birkenfeld: pong |
| [21:06:22] |
<birkenfeld> |
Leonidas: do you have a link to the .sty file? |
| [21:06:39] |
<Leonidas> |
birkenfeld: wait a moment, I'll push it. |
| [21:10:23] |
<Leonidas> |
birkenfeld: http://xivilization.net/git?p=texments.git;a=summary |
| [21:10:36] |
<birkenfeld> |
thanks |
| [21:10:38] |
<Leonidas> |
birkenfeld: you need both the .ins file and the .dtx file. |
| [21:11:35] |
<birkenfeld> |
Leonidas: well, I'd just deliver the final .sty file in pygments |
| [21:12:01] |
<Leonidas> |
birkenfeld: sure, you can generate it from these two files without problems. |
| [21:12:08] |
<birkenfeld> |
I know :) |
| [21:12:55] |
<Leonidas> |
ok. |
| [21:13:03] |
<birkenfeld> |
Leonidas: the environment is still in development? ;) |
| [21:13:25] |
<Leonidas> |
birkenfeld: I'm not sure what use the environment would have at all. |
| [21:13:45] |
<Leonidas> |
Verbatim does already create a block |
| [21:14:07] |
<birkenfeld> |
Leonidas: well, at the moment you have to escape metacharacters in the code |
| [21:14:28] |
<birkenfeld> |
at least I assume that |
| [21:14:44] |
<Leonidas> |
but I omitted the name pygmentize, so an environment wouldn't clash with other names. |
| [21:15:41] |
<Leonidas> |
I'll look into it, so far I did not fully understand how to work with enviroments. I'm waiting for the package to appear on CTAN. |
| [21:16:02] |
<birkenfeld> |
so fast? |
| [21:16:13] |
<birkenfeld> |
hmm |
| [21:16:20] |
<birkenfeld> |
how do I get the repo again? |
| [21:18:58] |
<birkenfeld> |
Leonidas: |
| [21:23:03] |
<Leonidas> |
birkenfeld: normaly via git clone, but I forgot to get up the paths properly. |
| [21:24:22] |
<Leonidas> |
That would explain, why gitweb was so easy to set up. |
| [21:26:20] |
<Leonidas> |
just copy over the two files for now, I'll look into it later |
| [22:08:33] |
* |
ivan has quit IRC |
| [22:09:30] |
* |
ivan has joined #pocoo |
| [22:16:40] |
* |
maix_ has joined #pocoo |
| [22:24:32] |
* |
maix has quit IRC |
| [22:24:39] |
* |
maix_ is now known as maix |
| [22:40:52] |
* |
sashav has joined #pocoo |
| [22:43:10] |
* |
jpcw has quit IRC |
| [22:43:26] |
* |
leche has quit IRC |
| [23:12:29] |
* |
stifal has quit IRC |
| [23:19:22] |
* |
_paneb has quit IRC |
| [23:23:32] |
* |
sashav has quit IRC |
| [23:26:33] |
* |
EnTeQuAk has quit IRC |
| [23:30:54] |
* |
sashav has joined #pocoo |
| [23:47:03] |
* |
hoffmann_ has joined #pocoo |