Camelia, the Perl 6 bug

IRC log for #mojo, 2010-06-29

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:01 abqar_ joined #mojo
02:59 yakudzo joined #mojo
03:00 janus joined #mojo
04:03 tholen42 joined #mojo
04:45 Foxcool joined #mojo
05:02 yko joined #mojo
05:18 su-bzero joined #mojo
05:31 Alias joined #mojo
05:54 baton8 joined #mojo
06:05 Su-Shee joined #mojo
06:57 * sri yawns
06:57 Su-Shee my vim just yawned at me.
06:58 sri i can sympathize with that
06:59 Su-Shee I woke up at before 6. too warm, too bright.
06:59 * sri nods
06:59 sri already way too warm
07:01 Su-Shee can't decide on getting up at 4 though and embrace the early light. ;)
07:02 Su-Shee oh, how's vti, btw?
07:02 sri didn't hear from him
07:02 Su-Shee let's hope they don't ship him back to russia.
07:03 sri but he retweeted me recently
07:03 sri so i guess it's all fine
07:03 Su-Shee maybe he just met "someone" ;)
07:10 yko joined #mojo
07:33 marcus yko claims to have him in the basement.
07:38 zakame wow I didn't believe it was so easy to write a plugin \o/
07:55 ysyrota joined #mojo
07:58 sri :)
08:09 dotan joined #mojo
08:10 tab joined #mojo
08:29 diegok joined #mojo
08:35 diegok joined #mojo
08:51 sharifulin joined #mojo
09:06 sri soooo warm :(
09:07 * sri melts again
09:07 sri ☃ .oO( HALP! )
09:10 zakame meow
09:10 tab here it�s not too hot, at least inside the the house i�m working
09:11 Su-Shee it's the overall hotness I hate. it's ok in the office and not too bright, but when I go outside..
09:11 Su-Shee sri: aren't you a freelancer and can work at home shirtless and with feet in some bucket of cold water? :)
09:12 sri not wearng clothes, but that doesn't help atm :/
09:12 zakame a few weeks ago here, it was blazing heat
09:12 zakame now there's a storm
09:19 marcus sri: etoomuchinfo :/
09:20 dotan sri: it's not the heat, it's the humidity :(
09:20 Su-Shee marcus: that's _your_ visual.. ;)
09:24 tab where can i store a database schema handler create in the startup method to access it from controllers?
09:25 dotan tab: in your app, which is accessible from your controller as $self->app
09:25 dotan (the app is the class with the startup method)
09:28 tab ah thanks, it works
09:35 marcus Su-Shee: nude sri in front of the computer is _my_ visual?
09:47 dotan marcus: is the latest perl 6 logo graphic ;P
09:48 marcus dotan: better than the butterfly, I guess.
09:49 marcus a nude sweatty perl hacker in front of the computer
09:49 marcus would be accurate at least
09:50 sri lets dance!
09:51 sri :D-<
09:51 sri :D|-<
09:51 sri :D/-<
09:56 marcus . <- this is your ass O <- this is your ass in prison
09:59 sri fail
10:10 spleenjack joined #mojo
10:24 Su-Shee more coffee.
10:25 sri ewww
10:25 * sri needs something cold
10:27 * Su-Shee needs 45 files in 4 branches deployment date-concentration ;)
10:51 Grauwolf sri: interesting question. i would be interested in the answers as well
10:53 Grauwolf sri: @ twitter
10:53 tab left #mojo
10:54 yko CodingGuidelines.pod needs fix: No names outside of the CREDITS section of Mojo.pm :)
10:54 sri yko: !
10:56 * yko read CodingGuidelines.pod
10:56 sri Grauwolf: wonder why sponsoring perl projects is not more popular
10:56 sri maybe most are simply not visible enough
10:56 Su-Shee because the massive sponsoring and companies doing more open source started when perl already was on the decline.
10:57 yko mb because of marketing, arrogance of perl programmers, also age of perl programmers
10:57 sri Su-Shee: perl is gaining actually according to tiobe
10:58 Su-Shee sri: doesn't really matter as long as no company really announces proudly its perl use, for example.
10:59 Su-Shee there was the booking.com money though and the ian hague grant.
11:12 diegok joined #mojo
11:15 Grauwolf sri: i was searching the net for corporate perl-sponsors. no results :(
11:19 koban joined #mojo
11:48 lee7 /quit
11:52 diegok_ joined #mojo
12:45 lee7 joined #mojo
12:47 alex joined #mojo
13:09 fod joined #mojo
13:17 tab joined #mojo
13:18 tab where should i define a helper sub to use in the ep-templates? e.g. for formatting currency values
13:19 sri tab: see rendering guide
13:25 ysyrota sri: is it possible to specify layout in inherited (extended) template?
13:26 sri ysyrota: yes
13:27 sri extend and layout are almost the same
13:27 sri i think i mention it in the rendering guide too
13:28 ysyrota sri: how? if I simply specify "% layout 'something'" in extended template, it doesn't work, but if I specify this in base template then it will work
13:29 sri ysyrota: umm, you mean extending template then
13:29 sri thats not possible of course
13:29 ysyrota sri: ok
13:30 ysyrota sri: what is rendering guide? is it MojoX::Renderer pod?
13:31 tab ysyrota: look here: http://github.com/kraih/mojo/blob/maste​r/lib/Mojolicious/Guides/Rendering.pod
13:31 garfield [ lib/Mojolicious/Guides/Rendering.pod at master from kraih's mojo - GitHub ]
13:31 garfield http://xrl.us/bhp926
13:31 sri ^^^
13:31 yko :)
13:31 ysyrota sri: oh, thanks!
13:32 yko another stupid question: how do i append something to url's path? path->append('foo/bar') does escaping... :(
13:32 sri bad ysyrota, you are not following me on twitter, very bad! ;p
13:32 yko bwahaha :D
13:33 sri yko: push the elements on ->parts
13:33 ysyrota :)
13:33 yko thx
13:36 yko push (@{$url->path->parts}, @{Mojo::Path->new('foo/bar')->parts});
13:36 yko ugh...
13:37 yko well, actually $url->path->append( @{Mojo::Path->new('foo/bar')->parts} )
13:38 sri yko: why would you do that?
13:38 sri wait...
13:39 sri you have a url object!
13:39 yko shure
13:39 sri $url->path('foo/bar')
13:39 sri the same ;p
13:39 sri we now append relative paths
13:39 sri marcus++
13:39 yko sri++
13:40 yko mojo++
13:40 yko :D
13:40 yko thanks
13:40 yko wow! if no slash at biginning, then not abbend, but replace. cool!
13:40 yko yeah, that's really great and logical
13:40 sri ye
13:41 * sri loves forwarding questions to the guides :D
13:49 yko :p
13:50 Grauwolf sri: don't you use identi.ca?
13:50 sri Grauwolf: nope
13:50 Grauwolf k
13:52 alex joined #mojo
14:45 tab left #mojo
15:04 doubi joined #mojo
15:25 esskar__ joined #mojo
15:26 stephan48 sri: how is mojo supposed to detect if its a cgi env?(because its failing to detect it here in a ap2 env)
15:26 sri we detect PATH_INFO atm
15:27 stephan48 ok
15:27 sri not sure if it always works, but we can add more env vars to check
15:29 esskar joined #mojo
15:30 ashleydev joined #mojo
15:31 stephan48 mh does your fastcgi support sockets?
15:32 sri what do you mean?
15:32 sri if we have our own proc manager?
15:32 sri because fastcgi is always socket based
15:33 sri built in fastcgi support has no proc manager, but Mojo::Server::FCGI and PSGI have
15:34 sri the thing about external proc managers is that if you can use them, then you are usually better off just using http :)
15:35 sri built in prefork server behind nginx is hard to beat
15:35 stephan48 i need following:
15:35 stephan48 a fastcgi connection to this sucking ap2
15:35 stephan48 the handler is hit maybe once or twice a week :)
15:36 sri see cookbook
15:36 stephan48 but in cgi its to much doing by hand and for a cat app i choose normally it would be to small :)
15:36 sri just pick a recipe from the cookbook
15:38 sri http://github.com/kraih/mojo/blob/mast​er/lib/Mojolicious/Guides/Cookbook.pod
15:38 garfield [ lib/Mojolicious/Guides/Cookbook.pod at master from kraih's mojo - GitHub ]
15:38 garfield http://xrl.us/bhqamg
15:38 sri Nginx recipe is my favorite, but is too much for your case
15:38 stephan48 oh damn no wonder i found it not on cpan
15:39 sri bad stephan48... not following me on twitter, very bad!
15:39 stephan48 twitter whats that?
15:39 stephan48 can i eat that?
15:39 stephan48 no really i dont use twitter very much
15:39 sri i'm on a documentation marathon, i expect all of you to proofread what i commit!
15:40 * sri sets stephan48 on fire
15:41 ashleydev joined #mojo
15:41 stephan48 what?
15:41 stephan48 but its already so hot in here :(
15:41 sri good!
15:44 GitHub182 joined #mojo
15:44 GitHub182 mojo: master Sebastian Riedel * d9e445b (1 files in 1 dirs): fixed typo - http://bit.ly/aumk9g
15:44 GitHub182 left #mojo
15:45 stephan48 mh
15:45 stephan48 i would rather launch my fcgi stuff self and not let the freaking server do it :/
15:45 stephan48 -> i can better handle permission stuff
15:46 sri then do it
15:46 stephan48 but how the hell do i specify a socket?
15:47 sri install Mojo::Server::FCGI and run ./myapp.pl fcgi_prefork --listen :3000
15:48 stephan48 ah!
15:48 stephan48 i thought you meant Server::FastCGI, sry didnt realized that theres also FCGI
15:49 sri FCGI is using the xs module FCGI.pm
15:50 sri while FastCGI is a highly portable pure perl implmentation that mostly just works
15:53 sri that said, you are usually really better off letting the server do its thing... external proc managers are for people that really know what they are doing
15:54 sri it's not the lazy option, even it it might look that way at first
15:54 sri *if
15:54 stephan48 sri: i run all my apps that way
15:55 sri why?
15:55 stephan48 the main reason is that i can make them run under other permissions so
15:55 sri ok, but why not use http instead of fastcgi?
15:55 stephan48 -> for example i can run it as user:user and only let this user connect to a specific postgres db
15:55 stephan48 sri: then we need another port -> and i dislike proxying requests :)
15:56 sri we can listen on unix domain sockets too
15:56 sri see nginx recipe ;)
15:56 stephan48 yea
15:56 stephan48 i did that
15:56 stephan48 bzw will do that
15:57 sri why would you dislike proxying?
15:57 stephan48 i heard that it has some problems
15:57 sri it doesn't
15:57 stephan48 namely i seen much evil that other people got into with under cat
15:57 sri oh cat
15:57 sri dunno about that
15:58 stephan48 ok
15:58 stephan48 i will try :)
16:00 stephan48 mabye in this little app proxying will really be the better way
16:06 GitHub28 joined #mojo
16:06 GitHub28 mojo: master Sebastian Riedel * 24d40f3 (1 files in 1 dirs): cleanup - http://bit.ly/aPYiBm
16:06 GitHub28 left #mojo
16:18 stephan48 ./mailer.pl daemon_prefork --listen *:64321 <- what would be wrong here?
16:18 stephan48 it says: it will listen on that but netstat shows nothing
16:38 vel joined #mojo
16:42 sri stephan48: no idea, maybe the *?
16:43 sri we pass that value through to FCGI.pm, no idea if it accepts that
16:43 stephan48 will check
16:49 stephan48 http://abc123.pastebin.com/XGWA397b
16:50 garfield [ T-SQL | stephan@stejau:~$ sudo netstat - Stephan48 - XGWA397b - Pastebin.com ]
16:50 stephan48 <- strange strange
16:50 fod joined #mojo
16:50 stephan48 i say it listen to something it confirms it to me and listens on another port
16:50 sri could be a bug dunno
16:50 stephan48 and reacts on that port
16:51 stephan48 mh
16:51 stephan48 how to test?
16:51 sri http://github.com/insurgen​tsoftware/mojo-server-fcgi # here's the maintainers repo
16:51 garfield [ insurgentsoftware's mojo-server-fcgi at master - GitHub ]
16:51 garfield http://xrl.us/bhfhds
16:51 sri i have nothing to do with it anymore
16:51 stephan48 i use daemoin prefork
16:51 stephan48 -i
16:51 sri oh
16:51 stephan48 ;)
16:52 stephan48 sry should have told you
16:52 sri then it's your fault
16:52 sri --listen http://*:123456
16:52 sri well documented everywhere
16:53 sri protocol is required since we also do https
16:58 stephan48 oh ok
17:00 dotan joined #mojo
17:05 stephan48 http://abc123.pastebin.com/dN1jSLUE <- mh is this "normal"?
17:05 garfield [ PID USER PR NI VIRT RE - Stephan48 - dN1jSLUE - Pastebin.com ]
17:07 dotan left #mojo
17:08 stephan48 with that results i also could directly run a cat app :)
17:28 sri stephan48: you forgot --start 1
17:28 sri --servers only controls the maximum that can be spawned
17:29 sri (if neccessary)
17:30 sri stephan48: what results?
17:30 * sri can't follow
17:30 stephan48 only goes up to 1% cpu usage when hit
17:30 stephan48 MUCH better
17:30 stephan48 :)
17:31 stephan48 when i say --servers 1
17:31 sri the cpan version might be a bit quirky
17:31 stephan48 then only one should be brought up at all or?
17:31 sri there was a bug
17:31 stephan48 or do i confuse something
17:31 sri --start 1 --servers 1
17:32 sri that will limit *everything* to 1 server
17:32 stephan48 ok yea have that now
17:32 sri with --clients 1000 you go async
17:32 stephan48 ah so theres a diference between spawned and started directly?
17:32 sri yes
17:32 stephan48 i wont have many clients at all
17:33 sri did you have the 100% cpu problem with multiple processes?
17:33 stephan48 y
17:33 sri thats fixed on github
17:33 stephan48 it gets so hight that my nagios complains ;)
17:33 sri there was a locking problem
17:33 stephan48 ok#
17:34 stephan48 so better using github ver?
17:34 sri it's only in the latest cpan release
17:34 sri if you only have one server it doesn't matter
17:34 stephan48 i think i only need one
17:34 sri for a real setup with multiple workers the github version is absolutely amazing now
17:35 sri hot deployment support and stuff
17:35 stephan48 :)
17:35 sri zero downtime software updates
17:35 stephan48 dont need that
17:35 stephan48 as sayed that app will get maybe hit in a week or so
17:36 sri then you are already investing too much time ;p
17:36 stephan48 why?
17:36 sri i would have used plain cgi or fastcgi
17:36 sri becuause it doesn't matter
17:36 sri you could just let the builtin server run
17:37 sri http://mojolicious.org is running on the built in server for months :)
17:37 garfield [ Mojolicious Web Framework - Join the revolution! ]
17:37 stephan48 yea i use bulletin srv for now
17:37 sri i eman without proxy in front of it
17:37 sri *mean
17:37 stephan48 that would mean we have to replace ap2 with mojo :)
17:38 sri only if the port matters
17:38 stephan48 y
17:44 stephan48 ha works now with proxy
17:45 ashleydev joined #mojo
17:53 sri oh wow, now gameloft is playing the appstore...
17:53 sri i guess as an answer to EA last week
19:10 xantus joined #mojo
19:10 xantus hey hey kids
19:11 xantus http://www.modernperlbooks.com/mt/2010/​06/modern-perl-the-book-the-draft.html
19:11 garfield [ Modern Perl: The Book: The Draft - Modern Perl Books, a Modern Perl Blog ]
19:11 garfield http://xrl.us/bhp8ey
19:15 xantus has anyone created an irc bot using mojo?
19:15 xantus :)
19:15 sri ohoh
19:15 sri what are you planning? :)
19:16 xantus that'd be neat, and you could tie it into a web interface easily
19:16 xantus I want to
19:16 xantus I don't have a lot of time to dedicate to it
19:18 * yko also wants
19:19 yko thinking about it last month, but also have no time
19:19 xantus lets make it a small co-op project on github?
19:20 yko hmm. don't thik i'm enough skilled to stand near you, but if you really want, shure
19:27 stephan48 xantus: i would suggest a bit of Adam for the IRC bot Part :)
19:27 stephan48 but then it would get more a Mojo in Adam projekt
19:28 stephan48 my problem: holidys next month so much much time
19:50 xantus http://pages.github.com/
19:50 garfield [ GitHub Pages - Home ]
19:54 stephan48 mh?
19:55 xantus eh?
19:55 yko looks nice
19:58 stephan48 mh
19:58 stephan48 how can i change the secret in M::L=+
19:59 sri see Mojolicious::Lite
19:59 yko :DD
19:59 stephan48 is there some tutorial howto learn to read docs?
19:59 sri it's getting really rare that i *need* to actually answer questions myself :)
20:02 stephan48 �:)
20:09 stephan48 found thanks
20:14 sri well, plugging any existing irc bot into mojo should be trivial
20:14 xantus yea
20:15 xantus BingoS has a pretty good POE irc bot
20:15 sri Mojo::IOLoop->singleton->tick_cb(sub {POE::Kernel->run_one_timeslice})
20:15 sri (or similar)
20:15 xantus I was just thinking that
20:17 xantus hmm, new guy on the poe irc block.... hinrik
20:18 sri i really need to play a bit with it to find the perfect settings to get both loops as responsive as possible and turn it into a recipe
20:18 xantus http://search.cpan.org/~hin​rik/POE-Component-IRC-6.35/
20:18 garfield [ Hinrik �rn Sigur�sson / POE-Component-IRC-6.35 - search.cpan.org ]
20:18 garfield http://xrl.us/bhqbjs
20:22 sri oh, i think ->timeout(0) in tick_cb and ->timeout('0.25') in ->idle_cb might do the trick just fine
20:22 sri damn, i want to play... but should really continue writing :(
20:23 sri oh right, the guest loop would need to be able to tell us when it's idle
20:25 sri but back to writing now...
20:26 sri on to explaining test driven development
20:38 diegok joined #mojo
21:47 stephan48 mh
21:48 stephan48 somehow i am screwd again .. how the hell do i send a redirect? i am failingt o find this in the manual
21:52 xantus I think its $self->redirect_to
21:52 xantus http://search.cpan.org/~kraih/Mojolicious-0.99​9926/lib/Mojolicious/Controller.pm#redirect_to
21:52 garfield [ Mojolicious::Controller - search.cpan.org ]
21:52 garfield http://xrl.us/bhqbwd
21:53 stephan48 that was the only dammit page i didnt look into...
21:53 xantus ;)
22:12 xantus und3f[A] = 1
22:26 ltriant joined #mojo
22:54 ashleydev joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary