| *** kg has quit IRC | 00:02 |
| *** rope has joined #pylons | 00:26 |
| *** gak has joined #pylons | 00:42 |
| *** gakman has quit IRC | 00:50 |
| *** pjenvey_ has quit IRC | 01:26 |
| *** damjan has quit IRC | 01:27 |
| *** kg has joined #pylons | 01:30 |
| *** kg has quit IRC | 02:07 |
| *** goibhniu has joined #pylons | 02:19 |
| *** rope has joined #pylons | 02:29 |
| *** gjh has quit IRC | 02:33 |
| *** auwts has joined #pylons | 02:34 |
| *** martineg has joined #pylons | 02:40 |
| *** gjh has joined #pylons | 02:40 |
| *** rope has quit IRC | 02:41 |
| *** auwts` has joined #pylons | 03:04 |
| *** climbus has quit IRC | 03:07 |
| *** auwts has quit IRC | 03:14 |
| *** gldnspud has quit IRC | 03:14 |
| *** mcella has joined #pylons | 03:19 |
| *** nathan^ has quit IRC | 03:21 |
| *** gldnspud has joined #pylons | 03:23 |
| *** goibhni1 has joined #pylons | 03:51 |
| *** goibhniu has quit IRC | 03:59 |
| *** deitarion3 has joined #pylons | 04:08 |
| *** rope has joined #pylons | 04:10 |
| *** deitarion has quit IRC | 04:11 |
| *** deitarion3 is now known as deitarion | 04:11 |
| *** goibhni1 has quit IRC | 04:15 |
| *** goibhniu has joined #pylons | 04:18 |
| *** nir has quit IRC | 04:26 |
| *** lisppaste5 has quit IRC | 04:30 |
| *** nir has joined #pylons | 04:33 |
| *** phrank13 has quit IRC | 04:34 |
| *** lisppaste5 has joined #pylons | 04:37 |
| *** _damjan_ has joined #pylons | 04:52 |
| *** dds has joined #pylons | 05:09 |
| *** laurent_88 has joined #pylons | 05:10 |
| *** ToyKeeper has quit IRC | 05:17 |
| *** cwells has quit IRC | 05:17 |
| *** cwells has joined #pylons | 05:21 |
| *** auwts has joined #pylons | 05:43 |
| *** auwts` has quit IRC | 05:50 |
| *** auwts has quit IRC | 06:04 |
| *** auwts has joined #pylons | 06:05 |
| *** triplah_ has quit IRC | 06:09 |
| *** triplah_ has joined #pylons | 06:10 |
| *** zzzeek_ has joined #pylons | 06:10 |
| *** triplah_ has quit IRC | 06:10 |
| *** goibhniu has quit IRC | 06:18 |
| *** fullpony has joined #pylons | 06:21 |
| *** goibhniu has joined #pylons | 06:21 |
| *** nathan^ has joined #pylons | 06:34 |
| *** hinoglu has joined #pylons | 06:43 |
| dds | mrr, where's ben | 06:44 |
| dds | If anyone sees Ben, tell him routes should use & when constructing URLs with GET parameters | 06:45 |
| wiggy | why not send him an email? | 06:47 |
| *** hinoglu has quit IRC | 06:51 |
| _damjan_ | dds: this was discussed before | 06:54 |
| _damjan_ | dds: and it's not correct | 06:54 |
| dds | wiggy: I'll get around to it. | 06:54 |
| _damjan_ | dds: & is only valid for html/xhtml | 06:54 |
| dds | _damjan_: the W3C validator fails on it.. | 06:54 |
| _damjan_ | dds: but not for javascript and other uses of url's | 06:55 |
| dds | oh? | 06:55 |
| _damjan_ | dds: so it's really that the template engine needs to convert & to & | 06:55 |
| _damjan_ | dds: and Genshi does it if I'm not mistaken | 06:55 |
| dds | _damjan_: good argument | 06:55 |
| _damjan_ | dds: not mine actually :) | 06:56 |
| *** creiht has joined #pylons | 07:08 |
| *** negus has quit IRC | 07:09 |
| dds | _damjan_: one issue I have is that the template engine shouldn7t care either | 07:28 |
| dds | I use mako for generating javascript among otherthings | 07:28 |
| dds | use h.url throughout for linking back to ajax functions | 07:28 |
| _damjan_ | well.. mako is broken in that way yes :) | 07:33 |
| _damjan_ | so you'll have to take care of that manually | 07:34 |
| *** pobrien has joined #pylons | 07:38 |
| *** dds has quit IRC | 08:07 |
| *** windle has joined #pylons | 08:21 |
| *** ctc_patrick has joined #pylons | 08:23 |
| *** Kush- has joined #pylons | 08:23 |
| *** laurent_88 has quit IRC | 08:30 |
| *** auwts has quit IRC | 08:35 |
| *** ianb|afk is now known as ianbicking | 08:49 |
| *** uche_ has quit IRC | 08:55 |
| *** zzzeek_ has quit IRC | 09:05 |
| *** windle has quit IRC | 09:07 |
| *** etrepum has quit IRC | 09:07 |
| *** uche has joined #pylons | 09:08 |
| *** nathan^ has quit IRC | 09:08 |
| *** Kush- has quit IRC | 09:10 |
| *** jbb666 has joined #pylons | 09:10 |
| *** nathan^ has joined #pylons | 09:14 |
| *** bradmw has joined #pylons | 09:17 |
| *** etrepum has joined #pylons | 09:33 |
| *** fullpony has quit IRC | 09:36 |
| *** benbangert has joined #pylons | 09:38 |
| *** efm has quit IRC | 09:39 |
| benbangert | __wyatt_: adding your last patches to Routes now, btw. thanks for the patches, makes it sooooo much easier ;) | 09:42 |
| *** Kush- has joined #pylons | 09:43 |
| *** vednis_ has quit IRC | 09:44 |
| *** vednis_ has joined #pylons | 10:00 |
| *** efm has joined #pylons | 10:01 |
| *** goibhniu has quit IRC | 10:08 |
| *** efm has quit IRC | 10:19 |
| *** efm has joined #pylons | 10:20 |
| *** mcella has quit IRC | 10:26 |
| *** fintan has joined #pylons | 10:30 |
| *** __pv has joined #pylons | 10:31 |
| *** zzzeek_ has joined #pylons | 10:37 |
| *** etrepum has quit IRC | 10:44 |
| *** ronchilla has quit IRC | 10:48 |
| *** pjenvey_ has joined #pylons | 10:48 |
| *** efm has quit IRC | 10:52 |
| *** etrepum has joined #pylons | 10:53 |
| *** uche has quit IRC | 10:55 |
| *** uche has joined #pylons | 11:03 |
| *** fullpony has joined #pylons | 11:14 |
| *** efm has joined #pylons | 11:15 |
| *** Kush- has quit IRC | 11:30 |
| benbangert | new Routes out for those feeling lucky | 11:30 |
| benbangert | j/k, I'm sure its fine, there's tons and tons of unit tests ;) | 11:30 |
| Chairos | yay | 11:31 |
| benbangert | big ol changelog | 11:31 |
| Chairos | indeed | 11:32 |
| Chairos | I see you still haven't implemented the "Read My Mind" feature. | 11:32 |
| * Chairos was slightly annoyed last night because he couldn't figure out how to get Routes to pick up the 'preferred' domain and port when running through mod_proxy. | 11:33 |
| Chairos | I ended up just having an app_conf entry for that. | 11:33 |
| Chairos | the appserver was running on port 6000, so of course when I used qualified=True, it stuck :6000 on there. | 11:33 |
| benbangert | of course | 11:33 |
| benbangert | stop running on weird ports ;) | 11:34 |
| Chairos | well, as long as I wasn't running on port 80 I'd have that problem, I think. | 11:34 |
| Chairos | and apache's on port 80. :D | 11:34 |
| *** efm_ has joined #pylons | 11:34 |
| benbangert | actually, I was looking at how this one Java app does it | 11:34 |
| benbangert | and I think I'll switch over to that | 11:34 |
| Chairos | I think we just need strong AI in Routes, that'll solve it. | 11:34 |
| Chairos | oh? | 11:34 |
| benbangert | when they generate absolute URL's, they call get_server_name and get_server_port | 11:34 |
| benbangert | and if you setup a proxy_host and proxy_port setting, it'll use that | 11:35 |
| Chairos | neat-o | 11:35 |
| benbangert | so that it makes proper absolute URL's behind proxies | 11:35 |
| *** efm has quit IRC | 11:36 |
| Chairos | benbangert: I got my cheeseshop mirror up and running, btw. | 11:36 |
| Chairos | http://mail.python.org/pipermail/distutils-sig/2007-April/007462.html | 11:37 |
| benbangert | neat | 11:37 |
| creiht | benbangert: Just saw http://docs.pythonweb.org/dashboard.action | 11:38 |
| creiht | cool stuff | 11:38 |
| creiht | Have you gotten much traction from the other projects yet? | 11:38 |
| benbangert | Alberto is adding stuff | 11:39 |
| benbangert | Mark Ram is interesting | 11:39 |
| benbangert | and I'm making a space for Paste today | 11:39 |
| benbangert | and prolly Routes as well | 11:39 |
| benbangert | errr, interesting/interested | 11:39 |
| creiht | cool | 11:39 |
| *** rope has quit IRC | 11:50 |
| *** rope has joined #pylons | 11:51 |
| benbangert | Chairos: http://routes.groovie.org/ | 11:52 |
| benbangert | check out that changelog for 1.6.3 ;) | 11:52 |
| Signum | I'm curious what IDEs/editors other pylons programmers use. I'm currently playing around with Eric but the Subversion implementation is lousy. PIDA seems to be half done. But Vim alone is very comfortable because Pylons projects typically need a few files opened simultanously (models, controller, template). | 12:12 |
| creiht | Signum: I have been playing with the latest Komodo... It's pretty nice if you have a decently fast machine | 12:13 |
| aa_ | Signum: well, I wrote pida, you want to write the other half of it? :) | 12:13 |
| creiht | It includes code completion for JS as well as the python stuff | 12:13 |
| creiht | hehe... whoops :) | 12:13 |
| creiht | aa_: I'm a big fan of pida, though it is a bit difficult to get it running on OS X :) | 12:13 |
| fullpony | Signum: I use textmate and ipython | 12:15 |
| creiht | ipython is a must no matter which IDE you use :) | 12:15 |
| Signum | aa_: Actually PIDA is the only alternative to using Vim alone. :) And I like it so far. Just on Debian (perhaps on all systems) sometimes the dialogs are empty until I resize the window a little. That's strange. | 12:16 |
| fintan | What about eclipse with the python plugin? | 12:16 |
| Signum | creiht: try. It would be great to have the power of ipython while programming though. Like the auto-completion you get in Eric. (Just that it's pretty borked.) | 12:16 |
| creiht | fintan: I used that for a while, but Eclipse died too many times for me | 12:17 |
| aa_ | Signum: that's quite an old bug in a gtk theme or something. I never quite got the bottom of it | 12:17 |
| fullpony | can anyone point me to any previous discussion (if there has been any) of implementing a Django like admin interface for a Pylons app? | 12:17 |
| aa_ | creiht: yeah, almost impossible on OSX, we have someone who is "thinking about making a package" though | 12:17 |
| creiht | hehe | 12:18 |
| creiht | I thought about it for a while, and gave up :) | 12:18 |
| creiht | GTK is just too much of a pain on OS X right now | 12:18 |
| creiht | At least native | 12:18 |
| aa_ | yeap | 12:18 |
| creiht | and I have X11 apps in OS X | 12:18 |
| fintan | I've not had that much probs with it. Plus it's easy to swtch between envs | 12:18 |
| aa_ | native is a no-go, the X11 one slightly works | 12:18 |
| Signum | aa_: Oops? PIDA supports bzr? | 12:18 |
| aa_ | Signum: yeah, most version control systems | 12:19 |
| Signum | creiht: 300 bucks for komodo is a bit tough... | 12:19 |
| creiht | fintan: It works great until suddenly Eclipse will no longer load because of some crazy plugin conflict | 12:19 |
| Signum | aa_: Suddenly I start to love it! :) | 12:19 |
| creiht | Signum: They have a free version (which I have been using) | 12:19 |
| creiht | Komodo edit | 12:19 |
| fintan | Yeah I've had that before I just keep it simple. Python, pearl, php & sql explorer | 12:20 |
| creiht | otherwise, I just use gvim | 12:20 |
| Signum | creiht: I'll take a look. | 12:20 |
| aa_ | Signum: well I hate "selling" it, but you get a graphical view of files and statuses and it automatically detects version control system used, eg look in this screenshot: http://pida.co.uk/files/screenshots/pida_0-4-4_10.png | 12:20 |
| Signum | creiht: I love vim, too. But keeping 8 windows/buffers open at the same time is a pain. | 12:20 |
| aa_ | well, I currently have 74 buffers open in vim with pida | 12:21 |
| mitsuhiko | 14 here | 12:21 |
| aa_ | in fact, originally it was just an advanced vim-buffer-explorer | 12:21 |
| Signum | aa_: Selling is okay. :) I know PIDA from playing with IDEs from time to time. And I'm the debian developer who's been sponsoring the package into Debian during the last year. :) | 12:22 |
| mitsuhiko | heh. the new pida webpage reminds me of the pocoo one :D | 12:22 |
| Signum | aa_: The only feature that's really missing is auto-completion on the code. Eric does that half-well. But with vim it seems to be tricky. | 12:22 |
| creiht | Signum: Autocompletion in Python is a bit tricky | 12:23 |
| *** efm_ has quit IRC | 12:23 |
| Signum | creiht: But vim supports a good amount of Python. So in theory it could be possible. | 12:23 |
| aa_ | mitsuhiko: well the webmaster stole the design from somewhere | 12:23 |
| aa_ | I like dumb auto-completion | 12:24 |
| mitsuhiko | haha | 12:24 |
| * mitsuhiko likes ^N | 12:24 |
| aa_ | plain old vim control-n | 12:24 |
| aa_ | snap | 12:24 |
| Signum | Yep, I use that, too. And I have an ipython window open to explore my stuff. "paster shell" with ipython actually. | 12:25 |
| creiht | code completion in python is highly over rated :) | 12:25 |
| mitsuhiko | indeed | 12:25 |
| mitsuhiko | although the vim omni completion handles it quite well | 12:25 |
| aa_ | one thing I have been playing with is a front-end to all these things like paster, cherrypy, django-admin etc | 12:25 |
| Signum | Just for show and tell to "-q" my coworker who's always telling me about visual studio. :) | 12:25 |
| aa_ | to be fair, visual studio is awesome | 12:25 |
| aa_ | as an IDE author I can only gape in amazement | 12:26 |
| Signum | But they don't have vim. :) | 12:26 |
| aa_ | oh but they could, and should. EMbedding vim on windows is actually easy | 12:26 |
| mitsuhiko | aa_: there are vim plugins var various ides | 12:26 |
| Signum | It hurts though when the above coworker tells me that Python is actually the same as Python... just with minor syntactical differences. :( | 12:26 |
| Signum | errr... | 12:27 |
| Signum | s/Python/Visual Basic .NET/ | 12:27 |
| aa_ | well, he is clearly wrong about that :P | 12:27 |
| creiht | The nice thing about Komodo Edit is that it has some decent vi key bindings :) | 12:27 |
| creiht | and emacs as well if you feel like contorting yourself so :) | 12:27 |
| mitsuhiko | creiht: the nice thing about vim is that it has vim key bindings | 12:27 |
| mitsuhiko | and writing plugins is sooooo fucking easy | 12:27 |
| creiht | haha | 12:27 |
| * aa_ would be interested in seeing what vi bindings are ;ole | 12:28 |
| Signum | I fell in love with vi when (15 years ago at university) those admins held a course showing us "the only editor you will ever use" (emacs) but didn't have enough fingers to close my accidentally split window. Yeah, right. | 12:28 |
| mitsuhiko | good. now some advertisement: http://www.vim.org/scripts/script.php?script_id=1858 <- mako plugin for vim :D | 12:28 |
| aa_ | pida has emacs too now | 12:28 |
| Signum | They said that vi's only purpose is to fix emacs config files when emacs doesn't start. | 12:28 |
| Signum | aa_: traitor :) | 12:29 |
| aa_ | myy programming tutor used to call it "v-eye" | 12:29 |
| Signum | mitsuhiko: oh, cool! | 12:29 |
| aa_ | Signum: nah, emac susers all say the same thing "emacs don't need no pida-rubbish" | 12:29 |
| Signum | aa_: Emacs users are lucky. They can always extend their editor with lisp. :) | 12:29 |
| mitsuhiko | Signum: i can extend vim with python :p | 12:30 |
| aa_ | mitsuhiko: should we call our templates .mako ? | 12:31 |
| Signum | At least I do. | 12:31 |
| mitsuhiko | aa_: well. i called them .html | 12:32 |
| Signum | After all we are no longer in the 8+3 ages. | 12:32 |
| benbangert | holy crap | 12:32 |
| benbangert | ipython is sweet | 12:32 |
| creiht | slaps benbangert | 12:32 |
| benbangert | how come I never tried it out before.... ;) | 12:32 |
| mitsuhiko | benbangert: don't tell me you don't know it... | 12:32 |
| creiht | Where have you been? :) | 12:32 |
| benbangert | wonder how I could get paster shell to use it | 12:32 |
| Signum | benbangert: Uhm.... I'm very disappointed in you. | 12:32 |
| aa_ | ipython is just a bit too colourful and verbose sometimes | 12:32 |
| Signum | benbangert: "paster shell" + "ipython" = heaven | 12:32 |
| *** whit537 has joined #pylons | 12:32 |
| mitsuhiko | benbangert: you could have a look how pocoo does it | 12:33 |
| benbangert | mitsuhiko: pocoo uses ipython when available? | 12:33 |
| mitsuhiko | benbangert: yes | 12:33 |
| benbangert | well, as long as I can load up the environment, it'd be pretty easy to add to paster shell for Pylons | 12:33 |
| mitsuhiko | benbangert: http://trac.pocoo.org/browser/pocoo/trunk/pocoo/pkg/core/cli.py#L485 | 12:34 |
| mitsuhiko | hope that helps | 12:34 |
| creiht | That is awesome | 12:34 |
| Signum | aa_: say... is pyscintilla stricly needed to run PIDA? Debian seems to miss a package of it and I get warnings from time to time. | 12:36 |
| aa_ | int: no, not at all required | 12:36 |
| aa_ | bah | 12:36 |
| benbangert | oh | 12:36 |
| benbangert | duh | 12:36 |
| *** __pv has quit IRC | 12:36 |
| aa_ | Signum: ^^ | 12:36 |
| benbangert | mitsuhiko: silly me, since I copied the TG shell stuff, I already support ipython with paster shell | 12:37 |
| benbangert | looks like I need to update it though, it threw an error | 12:37 |
| benbangert | hmm, it mostly works, it loaded the objects properly | 12:38 |
| *** Kush- has joined #pylons | 12:51 |
| *** ctc_patrick has quit IRC | 13:04 |
| *** uche has quit IRC | 13:06 |
| *** matt_good has joined #pylons | 13:09 |
| *** uche has joined #pylons | 13:22 |
| Signum | aa_: I'm mostly converted to pida already. :) | 13:25 |
| *** pobrien has quit IRC | 13:27 |
| matt_good | so to answer my question yesterday about customizing error pages I ended up subclassing the NotAuthorizedError from AuthKit and overrode the make_body method used by paste.httpexceptions to display the error | 13:30 |
| benbangert | ouch | 13:34 |
| benbangert | matt_good: did you email James at all? | 13:34 |
| *** jolby has joined #pylons | 13:34 |
| matt_good | no | 13:35 |
| *** jolby_ has quit IRC | 13:35 |
| *** pobrien has joined #pylons | 13:36 |
| benbangert | oh, send him an email | 13:38 |
| benbangert | ;) | 13:38 |
| matt_good | well, for my purposes that worked out pretty well | 13:40 |
| matt_good | I just wanted to provide a logout link if a user logged in and their account was locked | 13:40 |
| *** cwells has quit IRC | 13:44 |
| matt_good | benbangert: well, I guess I'll be a Mac user soon since that's what my whole team uses :) | 13:44 |
| matt_good | maybe I can Bootcamp Ubuntu on it though too | 13:44 |
| *** gldnspud has quit IRC | 13:54 |
| *** gldnspud has joined #pylons | 13:55 |
| CIA-22 | pylons: bbangert * r1923 /Pylons/trunk/pylons/commands.py: ipython shell now launches properly with banner, removed custom shell as it wasn't doing anything. | 13:55 |
| benbangert | there ya go guys | 13:55 |
| benbangert | ipython now plays a bit nicer with it | 13:56 |
| *** pobrien has quit IRC | 13:56 |
| *** fullpony has quit IRC | 13:58 |
| *** Signum has quit IRC | 13:59 |
| *** uche has quit IRC | 14:00 |
| *** Signum has joined #pylons | 14:03 |
| *** uche has joined #pylons | 14:04 |
| CIA-22 | pylons: bbangert * r1924 /Pylons/trunk/ (CHANGELOG pylons/database.py): | 14:05 |
| CIA-22 | pylons: * Changed `get_engine_conf` to properly evaluate sqlalchemy echo statement | 14:05 |
| CIA-22 | pylons: when its 'debug'. Fixes #226. | 14:05 |
| TownCrier | pylons: Ticket #226 (Allow SQLAlchemy echo engine option to be set to 'debug' via the config ...) closed <http://pylonshq.com/project/pylonshq/ticket/226#comment:1> | 14:06 |
| *** pobrien has joined #pylons | 14:06 |
| *** jolby has quit IRC | 14:11 |
| *** goibhniu has joined #pylons | 14:13 |
| Chairos | any of you guys apache wizards? | 14:14 |
| Signum | Chairos: try | 14:14 |
| Chairos | Signum: ? | 14:15 |
| *** efm_ has joined #pylons | 14:15 |
| Chairos | basically, we're getting horrible performance with static files. | 14:16 |
| Signum | Chairos: I've been using Apache for 10 years... I just can't promise I know a solution for the problem you'll describe in a minute. :) | 14:16 |
| creiht | Chairos: Are you running SSL? | 14:16 |
| Chairos | no | 14:16 |
| *** jolby has joined #pylons | 14:16 |
| Chairos | We have a Rails app. Loading the front page loads one dynamic page, and about 20 static files. | 14:16 |
| Chairos | http://www.inklesspen.com/long-load.png | 14:16 |
| creiht | how horrible is horrible? | 14:16 |
| Signum | Chairos: anything complicated like rewrite rules? | 14:16 |
| Chairos | in this case, it took 10 seconds to load everything. | 14:16 |
| Chairos | Signum: I don't think so, lemmie check. | 14:16 |
| Chairos | it usually hovers around 6-8 seconds. | 14:17 |
| creiht | Is the server paging a lot (memory)? | 14:17 |
| Signum | Chairos: or is your firefox perhaps slow? sometimes I get horrible values with firefox,too. especially when webbug is enabled. | 14:17 |
| Chairos | Signum: we get similar results in Safari, etc. | 14:18 |
| Signum | Chairos: ok | 14:18 |
| wiggy | is there a trick to make pylons not cache form_result in controllers? | 14:18 |
| Chairos | holy shit, we are 80 megs into swap on this 512 mb machine. | 14:18 |
| creiht | bingo | 14:18 |
| creiht | :) | 14:18 |
| Chairos | wiggy: I'm pretty sure that's the default. | 14:19 |
| Signum | Add more swap. :) | 14:19 |
| Chairos | why the hell are we running clamav? this machine doesn't do any mail. | 14:19 |
| wiggy | Chairos: as soon as I add authkit to my project I see form_result being cached | 14:19 |
| wiggy | which frankly is quite annoying | 14:19 |
| Chairos | wiggy: okay, then the correct question to ask is something more like "is there a trick to make authkit not be broken?", wouldn't it be? | 14:20 |
| * wiggy retries without authkit to check | 14:21 |
| *** vednis has quit IRC | 14:24 |
| wiggy | right, as soon as I wrap a controller in authkit middleware form_result is cached | 14:25 |
| wiggy | so the question is 'how to make authkit not do unexecpted things' indeed | 14:25 |
| *** fintan_ has joined #pylons | 14:25 |
| *** fintan has quit IRC | 14:25 |
| TownCrier | pylons: Ticket #227 ("paster serve" suppresses helpful greeting under IPython) created <http://pylonshq.com/project/pylonshq/ticket/227> | 14:28 |
| *** gldnspud has quit IRC | 14:33 |
| Chairos | okay. | 14:33 |
| Chairos | I have 100 megs ram free, now. | 14:33 |
| Chairos | but it's still taking 8 seconds or so. | 14:33 |
| *** matt_good has quit IRC | 14:33 |
| creiht | Chairos: Have you restarted apache since you freed the memory? | 14:34 |
| *** damjan has joined #pylons | 14:34 |
| Chairos | yep. | 14:34 |
| Chairos | some files -- it's always different ones -- are taking one or two seconds each to load. | 14:35 |
| Chairos | and they are tiny files usually. one's only half a K. | 14:35 |
| creiht | Chairos: Has anything about the pages you are loading changed | 14:35 |
| Chairos | where the larger files load in only a few ms. | 14:35 |
| *** gldnspud has joined #pylons | 14:35 |
| Chairos | creiht: no, nothing's changed. | 14:35 |
| creiht | ie more static files to load? | 14:35 |
| creiht | hrmm | 14:35 |
| Chairos | still the exact same files, exact same file size. | 14:36 |
| creiht | Of the top of my head I'm not sure | 14:36 |
| Chairos | I know we are running apache 2.0 with the prefork mpm, and I think all the MPM config values (StartServers, MaxClients, etc.) are at defaults. | 14:37 |
| Chairos | I don't know enough about apache to know what to adjust first | 14:37 |
| wiggy | if you're short on memory like at replacing apache with lighthttpd | 14:37 |
| Chairos | wiggy: we have 100 megs free ram. | 14:37 |
| wiggy | s/like/look/ | 14:37 |
| *** fintan_ has quit IRC | 14:37 |
| creiht | I wouldn't mess with those settings | 14:38 |
| creiht | at this moment | 14:38 |
| creiht | and try to figure out what has caused the recent slowness | 14:38 |
| Chairos | we're somehow 12 megs into swap even with that free ram, but I don't think 'short on memory' is an issue at the moment. | 14:38 |
| creiht | Since nothing has changed | 14:38 |
| wiggy | Chairos: being into swap is not problematic | 14:38 |
| creiht | Yeah it will do that | 14:38 |
| wiggy | as long as you are not actively swapping | 14:38 |
| wiggy | vmstat output will show you that | 14:38 |
| *** jbb666 has quit IRC | 14:38 |
| creiht | yeah | 14:38 |
| creiht | check vmstat | 14:38 |
| creiht | under swap | 14:39 |
| creiht | you want si and so to hopefully be 0 | 14:39 |
| creiht | or close to 0 | 14:39 |
| TownCrier | pylons: Ticket #141 (Pylons new-project template doesn't support other templates) updated <http://pylonshq.com/project/pylonshq/ticket/141#comment:5> | 14:39 |
| Chairos | they are both 0 | 14:39 |
| wiggy | than swap is not your problem | 14:40 |
| *** kg has joined #pylons | 14:40 |
| Chairos | wiggy: like I said. | 14:40 |
| Chairos | anyhow, it's been like this since we uploaded the new version of the site. | 14:40 |
| Chairos | two weeks ago | 14:40 |
| creiht | What changed in the new version of the site? | 14:41 |
| Chairos | lots of new features. we doubled the number of static files being loaded at the front page, I guess. | 14:41 |
| creiht | Chairos: Do you have the apache status page enabled? | 14:42 |
| *** jbb666 has joined #pylons | 14:42 |
| Chairos | creiht: how would I check? | 14:42 |
| creiht | You can hit that and see if all of your connections are being exhausted | 14:42 |
| creiht | it will be in your httpd.conf | 14:42 |
| creiht | search for status | 14:42 |
| creiht | something like that... let me look | 14:42 |
| creiht | It's been a while | 14:42 |
| Chairos | we have mod_status loaded. | 14:43 |
| creiht | see if you can hit | 14:43 |
| creiht | http://servername/server-status | 14:43 |
| creiht | You want to see a whole lot of _'s and .'s | 14:44 |
| Chairos | aha, got it working. | 14:50 |
| Chairos | we have "___W___" and lots of .s | 14:51 |
| Chairos | okay. looks like apparently all the requests are being chained in one keep-alive connection | 14:52 |
| creiht | Ok so then the web server connections are not all being consumed then | 14:53 |
| Chairos | which makes sense | 14:53 |
| Chairos | it is "___WK__" when I actually reload the front page... still takes around nine seconds to load everything. | 14:53 |
| * Chairos ponders putting the static stuff on S3. | 14:55 |
| *** pobrien has quit IRC | 14:56 |
| *** namaddez has joined #pylons | 15:02 |
| namaddez | hi all | 15:02 |
| Chairos | hey | 15:02 |
| namaddez | I have more of a myghty question | 15:02 |
| namaddez | I have a page that displays a big table of data | 15:03 |
| namaddez | and I want to make a set of links to pages that display only say 50 items per page | 15:04 |
| namaddez | I'm trying to do it all in a myghty template, but I'm having difficulty | 15:04 |
| Signum | namaddez: consider using the "pagination" webhelper that comes with pylons | 15:05 |
| namaddez | okay, I'll take a look | 15:05 |
| Signum | http://pylonshq.com/WebHelpers/module-webhelpers.pagination.html | 15:05 |
| Signum | The documentation is evil if you ask me. :) But it has the ability to just pull the portion from the database through the power of "lazy loading". | 15:06 |
| benbangert | gah | 15:07 |
| benbangert | who filed Ticket #227 a few minutes ago? | 15:07 |
| *** pobrien has joined #pylons | 15:07 |
| benbangert | I put through a patch to fix that an hour ago ;) | 15:07 |
| namaddez | so I would create a Paginator object in the controller and pass something to the template? | 15:09 |
| Signum | namaddez: yes. you would pass along the iterator. so in the template you'd go "for item in items: ..." | 15:10 |
| namaddez | and I'd also pass something that would create the links to different pages? | 15:10 |
| TownCrier | pylons: Ticket #227 ("paster serve" suppresses helpful greeting under IPython) closed <http://pylonshq.com/project/pylonshq/ticket/227#comment:1> | 15:10 |
| Signum | namaddez: yes. you would pass around e.g. a "page" parameter for the page the user wants to browse to | 15:11 |
| Signum | namaddez: I like the "url()" webhelper here. -> h.url(page=10) would give you a URL to the current action just with a "?page=10" added to the URL | 15:11 |
| Signum | namaddez: webhelpers really save a lot of trouble sometimes. | 15:12 |
| *** kg has quit IRC | 15:23 |
| namaddez | hmm | 15:30 |
| TownCrier | pylons: Ticket #227 ("paster serve" suppresses helpful greeting under IPython) updated <http://pylonshq.com/project/pylonshq/ticket/227#comment:3> || Ticket #227 ("paster serve" suppresses helpful greeting under IPython) reopened <http://pylonshq.com/project/pylonshq/ticket/227#comment:2> | 15:30 |
| namaddez | so I do something like paginate(mylist) | 15:30 |
| namaddez | and I get an exception | 15:30 |
| namaddez | okay, looks like I need to pass what page I want | 15:33 |
| benbangert | namaddez: the latest Pylons/WebHelpers will use a page var from Routes or the query params if available | 15:34 |
| benbangert | just updating your WebHelpers should do it | 15:34 |
| *** rope has left #pylons | 15:34 |
| benbangert | mitsuhiko: any idea how to retain the iPython shell banner AND add your own? ;) | 15:35 |
| mitsuhiko | benbangert: well. the IP instance has a BANNER_PARTS list | 15:38 |
| mitsuhiko | you could try to modify that | 15:38 |
| mitsuhiko | (before starting the IP) | 15:39 |
| CIA-22 | pylons: bbangert * r1925 /Pylons/trunk/pylons/commands.py: Fixed handling of banner with ipython so that the ipython banner is retained. Fixes #227. | 15:42 |
| TownCrier | pylons: Ticket #227 ("paster serve" suppresses helpful greeting under IPython) closed <http://pylonshq.com/project/pylonshq/ticket/227#comment:4> | 15:42 |
| *** creiht has quit IRC | 15:48 |
| *** jolby_ has joined #pylons | 15:52 |
| *** jolby has quit IRC | 15:53 |
| benbangert | mitsuhiko: IP.BANNER was what I wanted | 15:58 |
| *** pobrien has quit IRC | 15:58 |
| benbangert | that seems to work nicely | 15:58 |
| mitsuhiko | so. offline for today | 15:58 |
| mitsuhiko | my eyes hurt. too much javascript :D | 15:59 |
| benbangert | lol | 16:00 |
| elefth | mitsuhiko, JavaScript can be very pleasant to work with after you read a bit of Douglas Crockford and watch his videos on YUI Theatre :-) | 16:00 |
| mitsuhiko | elefth: well. i love javascript | 16:01 |
| mitsuhiko | and jquery rocks | 16:01 |
| elefth | mitsuhiko, if you haven't already done so that is | 16:01 |
| mitsuhiko | but you shouldn't do some things in javascript nonetheless (for example search engines) | 16:01 |
| mitsuhiko | or search interfaces. whatever | 16:01 |
| elefth | mitsuhiko, it depends on the project requirements I guess. | 16:02 |
| mitsuhiko | elefth: well. offline search | 16:03 |
| elefth | :-) | 16:03 |
| xorAxAx | mitsuhiko: that sounded differently yesterday! | 16:05 |
| xorAxAx | yesterday you praised JS over any language you know, esp. python | 16:05 |
| xorAxAx | :-) | 16:05 |
| mitsuhiko | xorAxAx: huh? i just said that pypy2javascript is not an option for me | 16:05 |
| xorAxAx | well, you said because JS has better closures | 16:06 |
| mitsuhiko | indeed | 16:06 |
| mitsuhiko | xorAxAx: well. the problem with that code now is that awful stemmer | 16:06 |
| benbangert | the Python closures should catch up to JS with Py3.0 | 16:08 |
| benbangert | the nonlocal keyword helps out for that | 16:08 |
| xorAxAx | yes | 16:09 |
| *** Kush- has quit IRC | 16:10 |
| *** goibhniu has quit IRC | 16:11 |
| CIA-22 | pylons: bbangert * r1926 /Pylons/trunk/ (CHANGELOG docs/application_configuration.txt): * Fixed doc references to config['app_conf']. Fixes #116. | 16:19 |
| *** jolby_ has quit IRC | 16:19 |
| TownCrier | pylons: Ticket #116 (app_conf and global_conf baffle me) closed <http://pylonshq.com/project/pylonshq/ticket/116#comment:18> | 16:20 |
| *** deitarion has quit IRC | 16:20 |
| *** deitarion has joined #pylons | 16:21 |
| namaddez | hi, another question | 16:22 |
| *** jolby has joined #pylons | 16:22 |
| namaddez | how do I rerender a page with the same content? | 16:24 |
| *** uche has quit IRC | 16:25 |
| damjan | namaddez: ctrl-R? | 16:26 |
| namaddez | well | 16:26 |
| namaddez | I'm working on paginating some data and I wanna do it without hitting the database again | 16:26 |
| namaddez | so I pass the whole list of data to the template, the template displays some of it | 16:27 |
| namaddez | then to get the next page, the user clicks a link which just rerenders the page with the next set of results | 16:27 |
| namaddez | is this even possible? | 16:27 |
| damjan | namaddez: you could do it with javascript (aka AJAX) | 16:28 |
| namaddez | otherwise I have to hit the controller again? | 16:28 |
| damjan | namaddez: but if the list is big, and most hits don't browse on next pages, that may be inefficient | 16:28 |
| damjan | namaddez: otherwise yes | 16:28 |
| namaddez | okay, thx | 16:32 |
| *** deitarion has quit IRC | 16:35 |
| *** gjh has quit IRC | 16:45 |
| *** uche has joined #pylons | 16:46 |
| *** vednis has joined #pylons | 16:47 |
| *** marcin_ant has joined #pylons | 16:47 |
| *** deitarion has joined #pylons | 16:48 |
| namaddez | thanks for your help guys | 16:56 |
| namaddez | I just bypassed the whole webhelpers pagination thing | 16:56 |
| benbangert | oh? | 16:56 |
| namaddez | and wrote it up myself -- easier to understand... | 16:56 |
| benbangert | ohhh, if you want to avoid the db hit, I'd suggest using the YUI pagination stuff | 16:56 |
| Chairos | well, looks like I'm going to RailsConf in May. | 16:57 |
| *** efm_ has quit IRC | 17:03 |
| namaddez | YUI pagination? | 17:03 |
| *** zzzeek_ has quit IRC | 17:10 |
| benbangert | namaddez: yea | 17:10 |
| damjan | namaddez: Yahoo UI widgets | 17:11 |
| *** efm_ has joined #pylons | 17:17 |
| elefth | hm, I have docutils 0.4.1 installed yet pudge insists on downloading it (and times out). | 17:17 |
| benbangert | I think it requires the dev version of docutils | 17:18 |
| benbangert | and make sure you have Kid 0.9.2 or below | 17:18 |
| benbangert | I think Kid 0.9.3 and higher doesn't work with pudge | 17:18 |
| benbangert | or 0.9.4, I forget which one | 17:18 |
| elefth | ah ok | 17:19 |
| elefth | thanks ben | 17:19 |
| benbangert | hmmm, I think I can tweak pudge to use pkg_resources so that it'll use Kid 0.9.2 even if you have a later Kid installed as well | 17:19 |
| elefth | why such a dependency :-/ | 17:20 |
| benbangert | cause pudge uses Kid for doc-gen | 17:21 |
| benbangert | annoying.... I know :) | 17:21 |
| elefth | I mean why 0.9.2 | 17:21 |
| benbangert | oh, 0.9.4 or 0.9.3 changed something | 17:21 |
| benbangert | which broke pudge, and I don't really know how Kid works, or how pudge uses Kid... so I was unable to see how to fix the bug | 17:21 |
| elefth | I see | 17:22 |
| benbangert | ideally someone who knows Kid well could fix it ;) | 17:22 |
| elefth | let's hope so | 17:22 |
| benbangert | btw | 17:27 |
| benbangert | if anyone would like to help out with 0.9.5 | 17:27 |
| *** digitaljhelms has joined #pylons | 17:28 |
| benbangert | I believe its ready for release right now, if anyone would like to get the latest svn and run their project with it to see if there's any gotchas, that'd be appreciated. ;) | 17:28 |
| benbangert | It has more unit tests in it that 0.9.4.1, so I don't foresee any issues. | 17:28 |
| *** benbangert has quit IRC | 17:29 |
| CIA-22 | pylons: bbangert * r1927 /Pylons/trunk/setup.py: Changing dependencies to latest stable releases. | 17:30 |
| *** marcin_ant has quit IRC | 17:44 |
| *** matt_good has joined #pylons | 17:48 |
| *** Chairos has quit IRC | 17:57 |
| *** windle has joined #pylons | 18:00 |
| *** namaddez has quit IRC | 18:00 |
| *** Chairos has joined #pylons | 18:08 |
| *** bradmw has quit IRC | 18:11 |
| *** cwells has joined #pylons | 18:30 |
| *** efm_ has quit IRC | 18:37 |
| *** nir has quit IRC | 18:57 |
| *** damjan has quit IRC | 18:59 |
| *** rob5 has joined #pylons | 19:00 |
| *** jbb666 has quit IRC | 19:04 |
| *** pobrien has joined #pylons | 19:06 |