IRC Logs

2008 9
Mo Tu We Th Fr Sa So
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

25. 09 2008

[00:08:06] * davidcramer_ has quit IRC
[00:08:13] * andihit has quit IRC
[00:08:20] * andihit has joined #pocoo
[00:21:11] * Kaelten has quit IRC
[00:48:19] * rocky has quit IRC
[00:50:10] * rocky has joined #pocoo
[00:54:04] * maix has quit IRC
[00:58:03] * aconbere has quit IRC
[01:10:19] * rawb has joined #pocoo
[01:12:31] * rawb has quit IRC
[01:23:06] * Baumichel has quit IRC
[02:08:45] * mtrichardson has quit IRC
[02:17:41] * riltim has joined #pocoo
[02:40:42] * kleinweby__ has joined #pocoo
[02:46:07] * kleinweby_ has quit IRC
[02:55:12] * lakin has quit IRC
[02:58:57] * riltim has quit IRC
[03:33:45] * davidcramer has joined #pocoo
[03:49:11] * rawb has joined #pocoo
[04:19:44] * alowry has quit IRC
[05:10:04] * Crast has quit IRC
[05:28:24] * rawb has joined #pocoo
[06:12:42] * alowry has joined #pocoo
[07:58:11] * sashav has joined #pocoo
[08:13:26] * alowry has quit IRC
[09:08:03] * sashav has quit IRC
[09:08:03] * kleinweby__ has quit IRC
[09:08:03] * prencher^ has quit IRC
[09:08:03] * empty has quit IRC
[09:10:06] * andihit has quit IRC
[09:10:14] * andihit has joined #pocoo
[09:10:20] * plaes has quit IRC
[09:10:32] * plaes has joined #pocoo
[09:31:28] * jpcw has joined #pocoo
[09:31:28] * sashav has joined #pocoo
[09:31:28] * kleinweby__ has joined #pocoo
[09:31:28] * prencher^ has joined #pocoo
[09:31:28] * empty has joined #pocoo
[09:35:10] * jpcw has quit IRC
[09:35:16] * jpcw has joined #pocoo
[09:39:07] <asmodai> Weirdos!
[09:56:23] <davidcramer> he started it
[09:57:45] <asmodai> I blame mitsuhiko
[09:58:11] <mitsuhiko> http://www.nagare.org/index.html <- via grumpy
[09:58:16] <mitsuhiko> more python web frameworks
[09:59:08] <asmodai> nagare? ながれ
[09:59:10] <asmodai> 流れ
[09:59:23] <asmodai> stream/current/flow
[09:59:34] <asmodai> heh
[09:59:38] <asmodai> Before I even opened the page
[09:59:40] <asmodai> and indeed
[09:59:44] <asmodai> same kanji + okurigana
[10:00:03] <asmodai> At least BSD licensed
[10:02:11] <davidcramer> wonder why it uses stackless heavily
[10:02:45] <davidcramer> at leats its doing different shit
[10:02:50] <davidcramer> not nescesarily useful stuff (i haven't read it over yet)
[10:03:11] <davidcramer> although it says "no <insert anything that a framework provides here>"
[10:05:13] <asmodai> mmm, the dependency on stackless will be hard
[10:05:22] <asmodai> it's difficult enough to find hosters that serve Python
[10:05:47] <davidcramer> it seems interesting, but interesting and useful are completely different
[10:06:50] <davidcramer> mitsuhiko: http://www.pastethat.com/MgVcm
[10:06:58] <davidcramer> tell me that isn't awesomely useful :)
[10:07:05] <asmodai> http://lmaugustin.typepad.com/lma/2008/09/commercial-open-source-in-europe-verses-the-us.html
[10:07:31] <davidcramer> the profiling stuff is still a pita -- im considering making the timer try to manage itself by removing time spent in inspect calls
[10:07:54] <xorAxAx> http://www.nagare.org/trac/browser/trunk/nagare/examples/nagare/examples/calculator.py
[10:08:12] <asmodai> What I dislike with a shitload of PHP apps is that they all have to tack 'sql took x ms (x queries)' on the footer for some reason
[10:08:17] <asmodai> in a debug view, like that paste, sure
[10:08:21] <asmodai> but in the main app windows?
[10:08:29] <davidcramer> asmodai: i typically display render time on the page
[10:08:31] <xorAxAx> http://www.nagare.org/trac/browser/trunk/nagare/examples/nagare/examples/form.py
[10:08:40] <davidcramer> force of habit i suppose
[10:08:46] <xorAxAx> wuah, h << h.br :)
[10:08:47] <asmodai> xorAxAx: those lambdas scare me
[10:08:48] <davidcramer> and ive never implemented a "debug mode" in php :)
[10:09:00] <davidcramer> haha
[10:09:15] <davidcramer> man, is this really python O.o
[10:09:23] <asmodai> Well, if that's an example of how to use that framework, no thanks.
[10:11:07] <davidcramer> how do you revert in git?
[10:11:14] <davidcramer> revert uncommitted items that is
[10:11:24] <xorAxAx> "US companies don’t want to be in the services business. The focus is on products, typically proprietary add-ons or an Enterprise Edition paired with an Open Source product edition."
[10:11:28] <xorAxAx> huuh
[10:11:35] <xorAxAx> is it like that?
[10:11:52] <xorAxAx> does anybody know an US FOSS company that doesnt like the services its offers?
[10:12:29] <davidcramer> nvm figured it out
[10:15:28] <asmodai> http://support.apple.com/kb/TS1373
[10:17:03] <asmodai> xorAxAx: Atl east the European points seem matched pretty well to my experiences
[10:18:44] <asmodai> oh wow
[10:18:57] <asmodai> prencher^: http://static.mmo-champion.com/mmoc/images/news/2008/september/8982sylvanas_3.jpg
[10:19:25] <asmodai> They are indeed updating a lot of graphics
[10:22:09] <mitsuhiko> my only comment: it won't scale
[10:25:44] <asmodai> mitsuhiko: nagare?
[10:26:26] <mitsuhiko> yep
[10:38:42] * asmodai pats mitsuhiko
[10:38:47] <asmodai> mitsuhiko: Elaborate!
[10:41:40] <davidcramer> omg
[10:41:44] <davidcramer> git figures out when you mv files?
[10:41:44] <davidcramer> no way
[10:41:50] <davidcramer> oh maybe not
[10:42:03] <mitsuhiko> hg does, why shouldn't git do?
[10:42:10] <davidcramer> oh maybe it does
[10:42:13] <davidcramer> i thought it did but then saw the mv command
[10:42:16] <davidcramer> how does it do that
[10:42:26] <asmodai> Magic(tm).
[10:42:51] <davidcramer> oh it failed on this one
[10:42:54] <davidcramer> i renamed it and it just deleted/added it
[10:42:59] <asmodai> Unstable magic.
[10:43:36] <mitsuhiko> davidcramer: in hg you do "hg addremove" and it will figure out what moved, was added or removed
[10:43:57] <mitsuhiko> asmodai: as far as i can see that, nagare wants to store the state in memory somewhere to be fast
[10:44:04] <davidcramer> oh
[10:44:08] <mitsuhiko> that doesn't scale over wsgi to multiple processes
[10:44:44] <asmodai> mm
[10:46:07] <davidcramer> Do any of you have a good method for testing the amount of requests a webserver can handle?
[10:46:19] <davidcramer> I can generate URLs for siege or something easy enough, but I'm not able to get enough req/s off via siege to drain it at all
[10:46:28] <davidcramer> although im doing it ont he same server, which is probably stupid
[11:14:19] <saptah> ¿how is that all the php frameworks ara so slow?
[11:14:59] <saptah> they don't get even 100 r/s
[11:15:50] <davidcramer> hrmm someone wanna help me w/ monkey patch? :)
[11:16:02] <prencher^> asmodai - i have beta access, i've seen it :P
[11:16:04] * prencher^ is now known as prencher
[11:16:06] <davidcramer> im trying to hijack foo.bar.hello, where hello is a variable
[11:16:12] <davidcramer> but many apps are doing from foo.bar import hello
[11:16:21] <davidcramer> is there anyway I can make them reference the correct hello?
[11:17:44] <davidcramer> i guess i could just hijack the entire module that hello is gonna end up referencing
[11:19:24] <davidcramer> wait wtf, it looks like its still setting it right
[11:19:25] <davidcramer> oh man im gonna go crazy
[11:19:36] * grumpy_ has joined #pocoo
[11:19:54] <grumpy_> Hi. Gotta eat yet, but back later.
[11:20:26] <prencher> you sent that message to a twitter account too, didn't you
[11:20:32] <asmodai> prencher: Pshaw
[11:22:17] <prencher> hey asmodai, want to borrow my wotlk acct?
[11:22:20] <prencher> im not really using it anyway
[11:26:02] <asmodai> seriously
[11:26:10] <asmodai> companies that put documentation behind login/passwords
[11:26:13] * kleinweby__ is now known as kleinweby
[11:26:15] * asmodai flips the bird at SPSS
[11:28:33] <CIA-49> Zine: mitsuhiko default * 500:395485559b96 /zine/utils/zeml.py: Small fixes in zeml
[11:34:15] <aa_> wow, what is zeml
[11:37:12] <davidcramer> oh hell i dont even know how I can fix this
[11:37:25] <davidcramer> hello is a class instance, and i need to somehow hijack
[11:37:36] <davidcramer> so any refs that imported that class instance are my class instance
[11:37:53] * birkenfeld has quit IRC
[11:37:53] <mitsuhiko> davidcramer: #python
[11:38:04] * davidcramer goes to get eaten alive
[11:38:15] <prencher> please stay eaten
[11:38:34] * birkenfeld has joined #pocoo
[11:38:38] <davidcramer> prencher: i could just as easily throw stupid random insults at you everytime you talk
[11:38:42] <davidcramer> but i dont
[11:39:20] <prencher> have you never wondered why most people don't ever reply to you in here?
[11:39:30] <mitsuhiko> was about to ask the same
[11:39:48] <davidcramer> maybe they dont care about the question im asking -- i dont really care
[11:41:36] <grumpy_> aa_: does it matter what zeml is, more importantly is why he chooses all these odd names, zeml is yiddish for 'bread roll' or 'roll'
[11:42:25] <prencher> you are just oblivious to the world around you aren't you, davidcramer
[11:42:46] <davidcramer> No, I just don't run around trying to bully people on the internet
[11:43:10] <aa_> grumpy_: no doubt the start of an entire series of products that are named after yiddish foodstuff
[11:43:10] <mitsuhiko> grumpy_: really? :D
[11:43:30] <grumpy_> http://www.wikiled.com/yiddish-english-zeml-Default.aspx
[11:44:05] <mitsuhiko> i was joking that zeml should be pronounced like the german "semmel"
[11:44:25] <mitsuhiko> (semmel == roll / bun)
[11:45:38] <mitsuhiko> davidcramer: just shut up. i think you're slowly annoying too many people here
[11:45:56] <mitsuhiko> prencher: and please try not to start another flameware with him either :)
[11:47:08] <prencher> fair
[11:47:49] <mitsuhiko> how do you pronounce "#pocoo" btw. hash-pocoo?
[11:48:14] <davidcramer> i use pound
[11:49:05] <prencher> mitsuhiko - generally i'd say pocoo channel or something to that effect.. otherwise pound or just pocoo
[11:51:13] * izibi has joined #pocoo
[11:53:43] <aa_> mitsuhiko: "hash-pocoo"
[11:58:01] <asmodai> mitsuhiko: long live the Yiddish influence in NL and DE :)
[11:58:20] <asmodai> #pocoo <-- that channel
[11:58:22] <asmodai> ;)
[12:01:41] <grumpy_> mitsuhiko: maybe you can call your next package 'gezeig' to keep the tool theme going, would actually be funny to call packages 'tool' but in different languages
[12:02:24] <mitsuhiko> utensile :)
[12:02:45] <asmodai> gereedschap
[12:03:09] <grumpy_> herramienta
[12:04:36] <prencher> værktøj
[12:04:44] <grumpy_> verktyg
[12:05:16] <asmodai> инструмент
[12:05:17] <mitsuhiko> tööriist
[12:05:30] <prencher> grumpy_ - look up the phrase "rødgrød med fløde", and try to pronounce it
[12:05:39] <asmodai> I love rødgrød med fløde
[12:05:46] <prencher> it is epic
[12:05:48] <asmodai> been a while since I last ate it
[12:06:10] <asmodai> mitshuhiko: not työkalu?
[12:06:12] <prencher> it is so epic in fact, that they used that phrase during WW2 to weed out german spies
[12:06:19] <asmodai> kasangkapan
[12:06:20] <prencher> (that's actually true)
[12:06:31] <asmodai> alat
[12:06:47] <asmodai> Công cụ
[12:09:17] <grumpy_> In the wikipedia page for it, what the hell is [ˈʁɶð̪ˀˌg̊ʁɶð̪ˀ mɛ ˈflø:ð̪̩]
[12:12:02] <asmodai> IPA++
[12:18:42] <plaes> omg.. what happened with zine...
[12:22:34] <plaes> apparently msn is missing from acceptable_protocols
[12:23:24] <asmodai> eh?
[12:24:07] <plaes> in zine/utils/zeml.py
[12:24:22] <asmodai> oh wow, didn't spot that distutils bruhaha over setuptools
[12:28:27] <plaes> ouch.. list of uri schemes: http://en.wikipedia.org/wiki/URI_scheme
[12:28:51] <asmodai> plaes: a ton nowadays
[12:30:54] <plaes> hrm.. seems that both IRC and SSH were worked out by Finnish guys
[12:36:14] * davidcramer has quit IRC
[12:36:50] <asmodai> Is that a result of some discussion in #Python or?
[12:47:56] <grumpy_> asmodai: you still referring to setuptools fork?
[12:47:59] <aa_> asmodai: amazingly I think it has come from pyconuk list
[12:48:09] <asmodai> grumpy_: No, davidcramer quitting
[12:48:19] <asmodai> aa_: Mmm, peculiar
[12:48:20] <aa_> oh I thought that too
[12:48:28] <grumpy_> Huh, quitting what?
[12:48:47] <asmodai> the channel
[12:50:29] <grumpy_> I have had my own run in with davidcramer as well so might understand, but why so much hostility here with him?
[12:51:10] <aa_> grumpy_: yeah I don't find him annoying at all, I think maybe he got ganged up on
[12:53:23] <hads> So much arguing. Can't we all get along :)
[12:53:52] * asmodai hugs hads
[12:54:00] <hads> hehe
[12:54:05] <aa_> hads: shut up! how dare you say that! I disagree! you are very wrong!
[12:54:11] <hads> :)
[12:56:14] <mitsuhiko> grumpy_: i have no personal problem with him, but if half the channel (exaggeration) has an argument with him, something's wrong
[12:58:34] <grumpy_> on to other things, what do people think of the setuptools fork? Interesting that Phillip released new version about same time or just after that was announced.
[12:58:39] * davidcramer has joined #pocoo
[12:59:04] <aa_> grumpy_: didn't realise there was an actual fork
[12:59:08] <asmodai> grumpy_: Mmm, I understand some of the problem, OTOH Philip also makes a few fair points
[12:59:18] <aa_> grumpy_: I have even considered it myself
[12:59:37] <grumpy_> asmodai: where is the discussion happening which you seem to be referring to?
[12:59:43] <asmodai> distutils-sig
[13:00:45] <asmodai> http://paste.pocoo.org/show/86172/ <-- I am so not seeing a cleaner way to do this
[13:01:22] <asmodai> feels icky to me, but mind not cooperating today
[13:01:27] <grumpy_> asmodai: which subject thread in distutils-sig should I read
[13:01:48] <asmodai> Annoucing distribute project
[13:01:53] <asmodai> [sic]
[13:04:55] <grumpy_> asmodai: I can understand the guy wanting to fork. Phillip also authored WSGI specification and so people defer to him some what, but then he isn't really that interested in bringing out updated version or official amendments to address problems with specification.
[13:05:18] * asmodai nods
[13:09:33] * aa_ forkes the WSGI spec
[13:09:38] <asmodai> aa_: \o/
[13:10:32] <grumpy_> Not possible to fork WSGI because Phillip would demand it be called something else and it being then something else and WSGI name having the mindshare, no one would use it.
[13:10:57] <aa_> grumpy_: yes :)
[13:11:24] <aa_> grumpy_: well, good specs are useful specs, and useful specs are ones that people use, however good or bad
[13:12:23] <grumpy_> All reminds me of what happened with XML-RPC. Yeah it works, but it wouldn't have taken much to make it a lot better, but author had so much of his own stuff depending on it, he wasn't going to change it.
[13:12:45] <asmodai> Ergo: suckage
[13:14:28] <grumpy_> Since mod_python is almost certainly not going to be ported to Python 3.0. Would be interesting to see what would happen if I didn't support WSGI 1.0 under Python 3.0 and instead implemented WSGI 2.0 instead. :-)
[13:15:02] <grumpy_> In mod_wsgi that is. Would mean no direct WSGI hosting in Apache. Would have to use FASTCGI instead.
[13:15:27] <grumpy_> Gotta leave for a while.
[13:16:22] <mitsuhiko> can anyone enlighten me why const correctness (c++) is a good thing?
[13:17:15] <asmodai> const correctness as in marking up immutable variables with const?
[13:20:02] <mitsuhiko> yes
[13:20:44] <asmodai> for all I know/remember from my C days: defensive programming, hints to the compiler for better type warning
[13:28:43] * rodfersou[away] is now known as rodfersou
[13:40:26] <luks> it also helps with some optimalizations
[13:40:56] <luks> it can re-use instances, that should be copied in non-const case
[13:42:16] <luks> and of course it's necessary for abusing references for cheap parameter passing (const str::string &)
[13:51:38] * davidcramer has quit IRC
[13:55:13] <ronny> mitsuhiko: its pretty much a contract that allows you to pass things by reference and requiring the other side not to change it
[13:55:33] <ronny> thats good for defensive programming and preventing yourself from various stupid
[13:56:06] <mitsuhiko> ronny: right. so it makes sense in a language like c and c++ where everything is mutable
[13:56:27] * davidcramer has joined #pocoo
[13:57:29] <ronny> mitsuhiko: well, const correctness is a usefull tool for static assertion, it makes sense in all static languages that have mutable states
[13:57:31] <mitsuhiko> mq: ping
[13:58:07] <mitsuhiko> ronny: discussion came up when the question was why c# doesn't have it
[13:58:13] <mitsuhiko> and i can't see a reason why c# should have it
[13:58:24] <mitsuhiko> i can make immutable objects, no need to const them
[13:58:54] * davidcramer has quit IRC
[13:59:15] * davidcramer has joined #pocoo
[14:00:12] <ronny> mitsuhiko: does immutability propagate itself automatically
[14:00:28] <mitsuhiko> in what sense?
[14:00:31] <ronny> c++ const is pretty much viral
[14:00:49] <mitsuhiko> say i recreate std::string in c#
[14:00:54] <ronny> ie if you make something const, all of it gets const (methods, attributes, subobjects)
[14:01:05] <mitsuhiko> i don't give it a settable indexer and no way to change it
[14:01:59] <ronny> mitsuhiko: encapsulation of mutability != const
[14:02:12] <ronny> with const you can use any mutable object as immutable
[14:02:24] <mitsuhiko> unless i cast the const away
[14:02:25] <ronny> ie its an orthogonal concept
[14:02:49] <ronny> mitsuhiko: well, thats an evilness you can do
[14:03:14] <mitsuhiko> so, what does const give me then?
[14:03:21] <mitsuhiko> it's obviously not immutable
[14:03:45] <ronny> its a contract
[14:03:51] <ronny> and it allows optimazion
[14:04:34] <mitsuhiko> c# has a jit ;)
[14:04:55] <ronny> (it would be less usefull for optimazion if c++ had whole-program optimizing at a higher level than comile units)
[14:05:21] <ronny> mitsuhiko: llvm has jit, too (and llvm-gcc already works, and clang c++ support is on the way
[14:07:11] <davidcramer> Is there a good spot to hook into Jinja to retrieve all of the template paths that were in use on the page?
[14:07:55] <ronny> disable caching, wrap a loader?
[14:08:02] <mitsuhiko> davidcramer: one or two?
[14:08:16] <mitsuhiko> and what do mean by template path?
[14:08:24] <davidcramer> anyways, i want to do it in both
[14:08:31] <davidcramer> i want to say "these are the templates used on this page"
[14:08:47] <davidcramer> http://www.pastethat.com/gCIL9 <-- that but the time isnt important
[14:09:20] <ronny> davidcramer: btw, please read http://www.catb.org/~esr/faqs/smart-questions.html
[14:10:42] <mitsuhiko> davidcramer: in jinja2 you could log template subrequests
[14:12:36] <mitsuhiko> davidcramer: you could even hook in custom template classes that profile the rendering
[14:12:41] <mitsuhiko> or at least time it
[14:12:49] <davidcramer> ya I was digging into the code
[14:12:56] <davidcramer> but to say the least, even jinja 1, is a lot more complex than django's internals ;)
[14:13:07] <davidcramer> I think I'll look into it more tonight
[14:13:10] <mitsuhiko> surprise ;)
[14:16:40] * grumpy_ has quit IRC
[14:16:53] <mitsuhiko> davidcramer: http://paste.pocoo.org/show/86179
[14:16:56] <mitsuhiko> no do something with it
[14:17:37] <davidcramer> haha k
[14:17:57] <davidcramer> oh but then they have to tell it to use that template class dont they?
[14:19:07] <mitsuhiko> davidcramer: who are they?
[14:19:21] <mitsuhiko> the LoggingEnvironment will automatically return instances of the debug template
[14:19:22] <davidcramer> Any random user. I've been just inserting hooks (monkey patching) most of djangos methods
[14:19:23] <davidcramer> so its plug and go
[14:19:38] <davidcramer> actually, it's a decorator wrapping most of the stuff
[14:21:11] <mitsuhiko> davidcramer: you can of course monkey patch jinja2.Environment too if you feel like it
[14:21:32] <mitsuhiko> monkey patch get_template and the template_class attribute
[14:21:49] <davidcramer> So the way I understand Jinja, is I will need to hook the enviro to get the template name, and if i wanted to time it or do anything like that, id have to also hook the template class?
[14:22:06] <mitsuhiko> exactly
[14:22:12] <mitsuhiko> you can get away by monkey patching the environment
[14:22:21] <davidcramer> I'm assuming typical usage of Jinja is not going to be subclassing Environment?
[14:22:25] <mitsuhiko> jinja2.Environment.template_class = YourTemplateClass
[14:22:29] <davidcramer> ya
[14:22:43] <mitsuhiko> davidcramer: i hate monkey patching, so the docs encourage subclassing environment
[14:22:50] <mitsuhiko> for logging purposes however i see that monkey patching has it's adavantages
[14:23:01] <mitsuhiko> as long as a user does not override template_class you are fine
[14:23:02] <davidcramer> ya it doesnt make sense to monkey patch if you can subclass, but for what I want to achieve I thought it fit well
[14:23:06] <davidcramer> alright
[14:23:21] <mitsuhiko> davidcramer: that's an undocumented feature, see the sourcecode on the bottom of environment.py :)
[14:23:29] * grumpy_ has joined #pocoo
[14:25:09] * grumpy_ has quit IRC
[14:27:09] * davidcramer has quit IRC
[14:27:35] * davidcramer has joined #pocoo
[14:30:53] <davidcramer> http://www.pastethat.com/GiPZ1
[14:30:57] <davidcramer> supports jinja1+2 and django :P
[14:31:59] <davidcramer> thats just timing the get_template method, so i should probably correct that
[14:32:08] <davidcramer> but my tracking is very simple, and the same decorator applies to every function
[14:32:20] <davidcramer> dont really wanna extend it at the moment tho
[14:32:24] * _paneb has joined #pocoo
[14:32:56] <davidcramer> ill just hide it for now :)
[14:43:22] * maix has joined #pocoo
[15:07:09] * CIA-49 has quit IRC
[15:07:42] * maix_ has joined #pocoo
[15:09:40] * maix has quit IRC
[15:09:41] * maix_ is now known as maix
[15:16:06] <birkenfeld> xorAxAx: ping
[15:16:33] <xorAxAx> birkenfeld: pong
[15:36:11] * rodfersou is now known as rodfersou[away]
[15:38:39] <asmodai> mmm http://my.opera.com/willosof/blog/2008/08/14/the-intranet-fridge
[15:41:01] * CIA-50 has joined #pocoo
[15:41:18] <xorAxAx> birkenfeld: yes? :)
[15:41:27] <birkenfeld> xorAxAx: sorry, misping
[15:41:42] <asmodai> stray packet
[15:43:16] <xorAxAx> cosmic rays :)
[16:15:55] * damjan is now known as n
[16:16:06] * n is now known as damjan
[16:19:40] * Kaelten has joined #pocoo
[16:33:27] * CIA-50 has quit IRC
[16:35:22] * KirkMcDonald has quit IRC
[16:51:12] * davidcramer has quit IRC
[17:03:14] * alowry has joined #pocoo
[17:04:35] * sashav has quit IRC
[17:07:48] * stifal has joined #pocoo
[17:13:09] * CIA-49 has joined #pocoo
[17:19:03] * mtrichardson has joined #pocoo
[17:48:05] * alowry has quit IRC
[18:03:23] * |[diecast]| has joined #pocoo
[18:03:55] * [diecast] has quit IRC
[18:04:09] * kaelten_ has joined #pocoo
[18:09:32] * kaelten__ has joined #pocoo
[18:09:32] * kaelten_ has quit IRC
[18:10:34] * alowry has joined #pocoo
[18:17:18] * Kaelten has quit IRC
[18:17:29] * kaelten__ has quit IRC
[18:18:18] * Kaelten has joined #pocoo
[18:20:16] * lakin has joined #pocoo
[18:24:05] * KirkMcDonald has joined #pocoo
[18:28:44] * rafael__ has joined #pocoo
[18:28:55] * rafael__ is now known as rafael
[18:30:48] <Kaelten> weird
[18:31:02] <Kaelten> I wonder why ubuntu includes the cProfile module by default but not the pstats module
[18:31:19] * lakin has quit IRC
[18:32:47] * jinks2 has joined #pocoo
[18:34:39] <Leonidas> Kaelten: copyright issues maybe. profiler has some copyright problems, and so does pstats, I think
[18:34:59] <Kaelten> Leonidas: not sure that make sense
[18:35:09] <Kaelten> if there where issues why would it be in apt-getat all?
[18:35:49] <Leonidas> Kaelten: well, in Debian it's in non-free: http://packages.debian.org/lenny/python-profiler
[18:36:00] <Kaelten> weird
[18:36:07] <Leonidas> because removing it completely would be quite a pain in the ass
[18:36:50] <Leonidas> it has some kind of strange license text which was considered not DFSG-free.
[18:40:09] <tux21b> is it already possible for zine plugins to create tables as needed, without breaking anything?
[18:40:51] * kleinweby has left #pocoo
[18:42:31] <rafael> tux21b: ente did tables for the pages plugin.. but this is in the core now and http://dev.pocoo.org/projects/zine/wiki/ZeroPointOne says: What not * database support for plugins
[18:42:47] <aa_> tux21b: you can do it and it will be fine
[18:42:54] <aa_> (in my experience)
[18:43:25] <aa_> tux21b: either using zine's metadata or creating your own one (if you don't need relationships)
[18:43:50] <aa_> tux21b: note that this is not the official statement :)
[18:44:13] * jinks1 has quit IRC
[18:45:56] <tux21b> ok, thank you. it's good to see that i am not the first one who breaks the metadata than. i will try it :)
[18:58:56] * CIA-49 has quit IRC
[19:05:47] * nosklo has joined #pocoo
[19:11:32] <tux21b> hmm, is the whole plugin manager only broken here or by everyone? :'(
[19:12:31] * CIA-49 has joined #pocoo
[19:14:21] * en0x has joined #pocoo
[19:14:25] <en0x> hi
[19:14:46] <en0x> quick question if I have a form for pygments hilights is there a way that I can add auto option?
[19:15:05] <en0x> <option value="auto">Auto highlight</option>
[19:15:18] <en0x> I wonder if I can force my pygments to try autodetect the code
[19:16:18] <tux21b> en0x, yeah, there are some guessing methods for detecting the language used
[19:16:45] <en0x> i have read about that
[19:16:46] <en0x> hmm
[19:17:17] <en0x> http://pygments.org/docs/quickstart/#guessing-lexers
[19:17:22] <en0x> there is something here but not much
[19:17:27] <tux21b> exactly
[19:17:53] <tux21b> it might not work in all the cases, but the chances aren't that bad ;)
[19:20:01] <en0x> hehe
[19:20:06] <en0x> well i will give it a try
[19:20:14] <aa_> have javascript mapping things got update() or copy()
[19:21:04] * Dauerbaustelle has joined #pocoo
[19:21:20] <Dauerbaustelle> german or english?
[19:21:25] <en0x> english
[19:21:29] <en0x> (:
[19:21:30] <Dauerbaustelle> k
[19:21:44] <en0x> aa_: well I have to think about it and do the best solution
[19:22:12] <Dauerbaustelle> I wan't to upload some files using Werkzeug and Sqlalchemie... but I don't know how to use the FileStorage thing
[19:22:22] <Dauerbaustelle> docu doesn't tell very much :(
[19:22:39] <mitsuhiko> Dauerbaustelle: into the database directly or in the file system?
[19:23:04] <Dauerbaustelle> mitsuhiko: Don't care
[19:23:12] <Dauerbaustelle> Say, into the db
[19:23:29] <mitsuhiko> db is a bit tricker
[19:23:36] <Dauerbaustelle> Then filesystem. :P
[19:23:51] <mitsuhiko> req.files['your_field'].save('/path/to/the/file.txt')
[19:24:02] <mitsuhiko> (if a textfile was uploaded)
[19:24:17] <mitsuhiko> generally speaking, you can do this:
[19:24:56] <mitsuhiko> filename = os.path.join('/path/to/your/folder', sanitize(req.files['your_field'].filename))
[19:25:04] <mitsuhiko> req.files['your_field'].save(filename)
[19:25:17] <mitsuhiko> and sanitize is a simple function that strips malicious characters
[19:25:24] <mitsuhiko> i recommend something like this:
[19:25:55] <mitsuhiko> def sanitize(filename): return os.path.join(x for x in filename.split('/') if not in ('', '.', '..'))
[19:26:10] <mitsuhiko> better idea is of course hashing the filename
[19:27:06] <Dauerbaustelle> okay, sounds easy
[19:27:11] <tux21b> mitsuhiko, can you push your changes to fix the zine bugs regarding to plugin management? :)
[19:27:19] * davidcramer has joined #pocoo
[19:27:24] <Dauerbaustelle> and what kind of html field has the 'your_field' to be?
[19:27:26] <mitsuhiko> tux21b: soon :)
[19:27:39] <Dauerbaustelle> thinking of the view part...
[19:28:04] <tux21b> everytime i would like to add something cool to zine, it's broken :/
[19:28:07] <mitsuhiko> <form method="post" enctype="multipart/form-data"><input type="file" name="foo"></form>
[19:28:19] <mitsuhiko> tux21b: that's because i'm refactoring :P
[19:28:29] <Dauerbaustelle> kay, I'll try, thanks
[19:29:33] <tux21b> i know, so refactor a bit faster :p
[19:34:49] * en0x has left #pocoo
[19:47:17] * rafael has quit IRC
[20:08:07] * nosklo has quit IRC
[20:11:35] * _paneb has quit IRC
[20:20:24] * rodfersou[away] is now known as rodfersou
[20:21:26] * CIA-49 has quit IRC
[20:26:03] * nosklo has joined #pocoo
[20:33:03] * ph has joined #pocoo
[20:33:10] <Dauerbaustelle> Has werkzeug got the same filtering syntax as django? (Model.query.all().filter_by(field=value)
[20:33:13] <Dauerbaustelle> )
[20:34:03] <plaes> mitsuhiko: I started converting werkzeug docs to sphinx
[20:35:33]