Camelia, the Perl 6 bug

IRC log for #mojo, 2011-10-28

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

All times shown according to UTC.

Time Nick Message
00:22 metaperl If the layout for your website has certain menu items that should only render if the user is authenticated and has a certain status, how can you pass that auth info to the layout during the parts of the webapp that the user is auth'ed. Here 's my app ( https://github.com/metaperl/cle​artrader/blob/master/index.cgi ) to keep this concrete
01:01 mattastrophe joined #mojo
01:34 perlite joined #mojo
01:45 mercutioviz joined #mojo
01:49 xaka joined #mojo
03:05 perlrocks Twitter: "ぎゃあ, Mojolicious から before_render フック が 削除 さ れた ... ..." (da) --Niratama http://twitter.com/Niratama​/status/129755758563831808
03:10 MojoGuest753 joined #mojo
03:10 MojoGuest753 From: http://news.ycombinator.com/item?id=1277067 (56 hits)
03:11 MojoGuest753 hello world :)
03:17 GitHub127 joined #mojo
03:17 GitHub127 [mojo] kraih pushed 1 new commit to master: http://git.io/ZcDKCw
03:17 GitHub127 [mojo/master] deprecated Mojo::DOM->new with arguments - Sebastian Riedel
03:17 GitHub127 left #mojo
03:18 Eugene joined #mojo
03:19 sri usage was a bit odd
03:52 perlrocks Twitter: "Mojo:: DOM is a lot of fun http://t.co/BCo5eZEK # perl" (pt) --_marcioferreira http://twitter.com/_marcioferr​eira/status/129767477818310656
03:58 tholen_ joined #mojo
04:39 MojoGuest171 joined #mojo
04:39 MojoGuest171 From: http://news.ycombinator.com/item?id=1277067 (57 hits)
04:57 j3nnn1 joined #mojo
05:00 metaperl I guess my question is senseless - the layout has access to the stash just like the template I suppose
05:04 Eugene joined #mojo
05:19 GitHub125 joined #mojo
05:19 GitHub125 [mojo] kraih pushed 1 new commit to master: http://git.io/e1veIg
05:19 GitHub125 [mojo/master] use more Perl 5.10 features - Sebastian Riedel
05:19 GitHub125 left #mojo
05:29 ispy_ joined #mojo
05:58 perlrocks Twitter: "Mojolicious anyway: added module as part of a call made to inherit before_render Renderer.一応 old sources should work now remains." (ja) --Niratama http://twitter.com/Niratama​/status/129799149276241920
06:02 perlrocks Twitter: "[MOONGIFT] Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」: 特定サイト以下のURLについて順次チェックしてステータスを取得し​てくれる、それがmojo-checkbotです。Webサ... http://t.co/emmSOYz6" (ja) --moongift http://twitter.com/moongift​/status/129800279385321472
06:02 perlrocks Twitter: "MOONGIFT: Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 http://t.co/wk5kGOGv" (ja) --brink_brink_rss http://twitter.com/brink_brink​_rss/status/129800280786210816
06:04 perlrocks Twitter: "Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 http://t.co/PTx9bJT1" (ja) --suitter_bot http://twitter.com/suitter_b​ot/status/129800602929733634
06:04 perlrocks Twitter: "Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 http://t.co/E3r1ki1Y" (ja) --design_manabu http://twitter.com/design_man​abu/status/129800619925053440
06:04 perlrocks Twitter: "Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 http://t.co/0RbkYtNY" (ja) --kotoricat282 http://twitter.com/kotoricat2​82/status/129800628645011456
06:07 perlrocks Twitter: "Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 http://t.co/yBGMRPhs" (ja) --appscafe http://twitter.com/appscafe​/status/129801555607166976
06:09 batman joined #mojo
06:17 perlrocks Twitter: "Mojolicious::Liteつかうか…。" --yasutaka http://twitter.com/yasutaka​/status/129804045073387520
06:17 Foxcool joined #mojo
06:18 perlrocks Twitter: "[MOONGIFT] Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」: 特定サイト以下のURLについて順次チェックしてステータスを取得し​てくれる、それがmojo-checkbotです。Webサ... http://t.co/xiM3Dubu" (ja) --_masarumaruyama http://twitter.com/_masarumaru​yama/status/129804322912477184
06:19 perlrocks Twitter: "Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 http://t.co/pBe10Gon" (ja) --MoonGiftJpFan http://twitter.com/MoonGiftJp​Fan/status/129804354201985024
06:20 marcus oi
06:20 marcus translations broke?
06:23 perlrocks Twitter: "Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 http://t.co/pcFdC1dF" (ja) --apple__info http://twitter.com/apple__in​fo/status/129805372922933248
06:23 D4RK-PH0ENiX joined #mojo
06:23 Foxcool joined #mojo
06:34 Foxcool joined #mojo
06:45 alnewkirk joined #mojo
06:48 Vandal joined #mojo
06:51 kvorg joined #mojo
06:56 ladnaV joined #mojo
07:01 koban joined #mojo
07:14 perlrocks Twitter: "Web Status Checker made a simple Perl "mojo-checkbot" http://t.co/l7yg5NHn" (ja) --developminlife http://twitter.com/developminl​ife/status/129818285511421952
07:20 perlrocks Twitter: "新着記事 : Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」" --ItTechnoNews http://twitter.com/ItTechnoNe​ws/status/129819796954025984
07:21 sugar joined #mojo
07:25 arthas joined #mojo
07:42 fhelmber_ joined #mojo
07:48 andrefs joined #mojo
07:58 xaka joined #mojo
08:04 smpb joined #mojo
08:04 cosmincx joined #mojo
08:06 cosmincx joined #mojo
08:39 Eugene joined #mojo
09:12 perlrocks Twitter: "I could use. made a simple Web Status Checker http://t.co/sJASTRj9 Perl "mojo-checkbot" - MOONGIFT | IT engineers centered on open source software introduction, Web Designers Blog" (ja) --cutmail http://twitter.com/cutmail​/status/129847895846424576
09:18 tholen_ joined #mojo
09:32 batman joined #mojo
09:33 tempire translator already moved to bing?
09:33 tempire perlrocks: translator engine?
09:34 tempire purl: knock perlrocks on the head
09:34 purl tempire: what?
09:34 marcus sri: can I set format to url_for?
09:37 judofyr joined #mojo
09:42 abra joined #mojo
10:15 tholen_ joined #mojo
10:18 spleenjack joined #mojo
10:27 mike_ joined #mojo
10:38 cwg joined #mojo
10:49 perlrocks Twitter: "my next will be on proektik # perl + # mongodb + # mojolicious + # memcache should be interesting =)" (ru) --xomaa http://twitter.com/xomaa/status/129872462577012736
10:57 mire joined #mojo
11:02 spleenjack1 joined #mojo
11:27 perlrocks Twitter: "Mojolicious with perl in vim:: want to work somewhere on the web companies like Lite Toka" (ja) --ysida http://twitter.com/ysida/status/129881864558215168
11:50 Eugene joined #mojo
11:50 tholen_ joined #mojo
11:59 j3nnn1 joined #mojo
12:04 perlrocks Twitter: ""Web Status Checker made a simple Perl" mojo-checkbot "- MOONGIFT | IT engineers axis and introduce open source software, Web Designers Blog" http://t.co/0jq5y1af" (ja) --jamadam http://twitter.com/jamadam​/status/129891187048976385
12:11 gabiruh /wg maluco
12:12 gabiruh woops, sorry
12:15 cwg any pointers on how to specify a per-request template path prefix for doing something like client-foo/controller/action.html.ep when in a client-foo context? Like additional_template_paths in TT.
12:19 xoma joined #mojo
12:45 perlrocks Twitter: "Web Status Checker made a simple Perl "mojo-checkbot" - MOONGIFT | IT engineers axis and introduce open source software, check the following URL for a particular site blog sequential Web Designers ... http://t.co / sKeIKxns" (ja) --webdesignStatio http://twitter.com/webdesignSt​atio/status/129901536804478976
13:04 smpb joined #mojo
14:07 metaperl joined #mojo
14:09 sri translations are not broken yet, just language detection doesn't work so well anymore it seems
14:19 judofyr sri: is there a built-in function to do fold in Perl?
14:19 judofyr (inject in Ruby)
14:19 judofyr hm…
14:19 judofyr reduce?
14:19 purl i think reduce is reduce or not oxidize or donate electrons to
14:23 smpb joined #mojo
14:29 perlrocks Twitter: "MOONGIFT - Web Status Checker made a simple Perl "mojo-checkbot" http://t.co/HDrNNJTD" (ja) --chuquemoon http://twitter.com/chuquemoo​n/status/129927855848161280
14:30 metaperl judofyr: maybe Scalar::List::Utils has that
14:31 metaperl yes I think it does
14:31 judofyr yeah
14:31 judofyr found it!
14:33 perlrocks Twitter: "Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 - MOONGIFT|オープンソース・ソフトウェア紹介を​軸としたITエンジニア、Webデザイナー向けブログ: 6 users http://t.co/FngIWR5G" (ja) --tk0451 http://twitter.com/tk0451/​status/129928882244698114
14:43 spleenjack joined #mojo
14:47 perlrocks Twitter: "Web Status Checker made a simple Perl "mojo-checkbot" - MOONGIFT | IT engineers axis and introduce open source software, Web Designers Blog http://t.co/vYHTqaJ7" (ja) --webdev_topics http://twitter.com/webdev_top​ics/status/129932206197055490
15:04 GitHub154 joined #mojo
15:04 GitHub154 [mojo] kraih pushed 1 new commit to master: http://git.io/QpuLoQ
15:04 GitHub154 [mojo/master] improved regex performance slightly - Sebastian Riedel
15:04 GitHub154 left #mojo
15:10 arpadszasz joined #mojo
15:17 GitHub180 joined #mojo
15:17 GitHub180 [mojo] kraih pushed 1 new commit to master: http://git.io/ahR7DA
15:17 GitHub180 [mojo/master] no need to support older Perl versions - Sebastian Riedel
15:17 GitHub180 left #mojo
15:30 perlrocks Twitter: "Web Status Checker made a simple Perl "mojo-checkbot" - MOONGIFT http://t.co/eSC0pKZs" (ja) --tantanmeshi http://twitter.com/tantanmes​hi/status/129943114512220160
15:35 perlrocks Twitter: "Perl製のシンプルなWebステータスチェッカー「mojo-checkbot」 - MOONGIFT|オープンソース・ソフトウェア紹介を​軸としたITエンジニア、Webデザイナー向けブログ: Perl製のシンプルなWebステー... http://t.co/HstKOCdl" (ja) --webdep http://twitter.com/webdep/​status/129944358559563777
15:49 ysyrota joined #mojo
15:59 Hondo joined #mojo
15:59 dolmen joined #mojo
16:02 noganex joined #mojo
16:02 xaka joined #mojo
16:18 mire joined #mojo
16:26 PerlNinja joined #mojo
16:26 PerlNinja evening mojo-in people
16:28 PerlNinja fun problem; i have a mojolicious app, and inside a controller i'm using anyevent to get some things done... so inside controller actions i'm using condvars.. that works, the dev log even shows a log entry (200 OK status) for the action, yet, the output is never sent to the browser and things eventually time out...
16:28 PerlNinja what am I missing?
16:38 mire joined #mojo
16:46 sromanov joined #mojo
16:48 smpb joined #mojo
16:53 amoore joined #mojo
17:00 sri PerlNinja: condvars in actions sounds very very wrong
17:01 sri at least i don't see how that could ever work
17:01 kaare joined #mojo
17:03 PerlNinja mmm
17:04 PerlNinja AnyEvent::RabbitMQ - need condvars if you want anything useful to come back at some point
17:05 PerlNinja it works to the extent that the condvars actually do return and return the proper stuff, and $self->render(...) does it's thing, it logs to the dev log even, but content just isn't ever sent unless I ctrl-c the script, at which point it does send it so ... guess it gets hung up somewhere :) I'll see if I can get something else working instead though
17:05 PerlNinja kinda tired of dealing with AnyEvent::RabbitMQ's quirks and oddities
17:10 sri PerlNinja: are you using ->recv?
17:12 PerlNinja condvar->send and condvar->recv yes
17:12 sri yea, that's never gonna work
17:12 sri it recurses back into the event loop
17:12 PerlNinja urf
17:13 PerlNinja okay guess i'll go back to straight up net::rabbitmq then :D
17:13 sri make parallel requests and your callstack will grow until everything explodes
17:14 sri i know nothing about that specific module, but generally you should be fine if you stick to callbacks
17:15 PerlNinja hmm, true
17:15 PerlNinja although for some it'll be a bit of a problem since the callback would end up having to call something that calls a callback and  so on
17:15 PerlNinja meh. coffee first, then i'll beat it up
17:16 sri callback spaghetti is hard to avoid, sometimes impossible
17:16 sri the downside of events
17:18 PerlNinja well i can avoid it but it requires a sub that generates a sub ... and then you get the fun bits of keeping track of your closures and what went in and what didn't and ... blah
17:19 PerlNinja also question, I messed a bit with that server side event example you had, it works fine but... both Chrome and Safari keep the loading indicator going ... not a Mojolicious related question really but any ideas on that? works as intended or did I screw that up as well? :P hehe
17:20 sri no screwup, browsers just do that
17:21 PerlNinja hm which basically doesn't make it any better than hidden iframe stuff
17:21 PerlNinja wish they'd finally make up their mind on websockets and finalise that shit
17:31 random joined #mojo
17:34 sri the websocket protocol is finalized
17:34 PerlNinja yah now to wait for the implementations, might take a while
17:35 PerlNinja longer than I have to get this thing working :D
17:35 sri firefox and chrome are already using the latest
17:35 sri ie will support it in version 10
17:35 sri just safari is lacking support atm
17:37 PerlNinja Not too concerned about IE .. the app will tell you to use safari, chrome, or FF ;) just need safari to support websockets and i'm in business
17:37 PerlNinja true callback spaghetti at that point though
17:37 sri callback spaghetti can be untangled though
17:38 Eugene joined #mojo
17:39 sri think at some point i'll write a little helper module for that
17:39 PerlNinja well the main thing is that i need the rabbitmq on_consume bit to do send_message on a websocket
17:39 PerlNinja and the other way around
17:39 purl hmmm... the other way around is not better
17:45 sri hmm, think i'll rename Mojo::IOLoop::Trigger to Mojo::IOLoop::Promise
17:46 sri Mojo::IOLoop::Delay would also work well i think
17:55 sri tempire: what do you think?
17:55 purl I think sri should try flossing more often!
17:55 sri :(
17:57 tempire I still think trigger is the best name
17:57 tempire not the sexiest, but the most obvious.
17:57 sri i really like Mojo::IOLoop::Delay
17:57 sri it works really well if i rename ->start to ->wait
17:58 tempire that might be ok
17:58 tempire just stay away from promise
17:58 sri the description would change from remote control to event synchronization helper
17:58 tempire promise only makes sense if you're up on the latest lingo
17:59 tempire and even then, I don't think it really matches what a promise does, personally
18:00 tempire Well, maybe.  But the syntax doesn't imply it.
18:01 sri delay is perfect
18:03 sri just need a better name for Mojo::IOWatcher now
18:03 jwang joined #mojo
18:04 marty Mojo::IOMonitor
18:05 sri too similar
18:05 sri in fact, i'd rather get rid of the IO prefix i think
18:06 marty Mojo::Director
18:06 marty Mojo::Listener
18:06 mattastrophe joined #mojo
18:08 tholen_ joined #mojo
18:09 sri hmm, maybe just Mojo::Watcher
18:10 sri the only thing that bugs me actually about the name IOWatcher is that it also contains other event watchers, like timers
18:10 sri but so does IOLoop
18:11 marty yep, makes it harder to find a good name
18:13 marty Mojo::Sentinel     Mojo::Observer   (just throwing out ideas)  :p
18:14 sri keep them coming :)
18:16 marty Mojo::Overlord      \o/
18:16 sri \o/
18:37 ispy_ joined #mojo
18:43 metaperl I need to change this line   <%= url_for->path("inviter/$user->{username}") %>   ...so that it generates a full URL including http://$host
18:44 mattastrophe joined #mojo
18:46 mire joined #mojo
18:49 marty metaperl: <%= url_for->path("inviter/$user->{username}")->to_abs %>
18:49 metaperl beautiful marty thanks
18:49 metaperl however... I just added a bit more complexity
18:49 metaperl and I want to DRY, so I might stash that computation
18:50 metaperl I want to make it <a href="<%= $computed_url %>"> <%= $computed_url %> </a>
18:51 metaperl but DRY, so I must stash something in the action first $self->tx->req->url is looking promising, but probably has some path to the current request in it
18:53 metaperl actually the <a href= ... > part doesnt have to be absolute
18:53 metaperl oh yes it does... i'm sorry. I'm being too jumpy
18:55 metaperl that's what I ended up with - http://pastie.org/2774639  ... it violates DRY but it doeswork
18:58 marty Looks like a good candidate for a reusable template block.   http://mojolicio.us/perldoc/Mojolicious/G​uides/Rendering#Reusable_template_blocks
19:09 andrefs joined #mojo
19:46 GitHub192 joined #mojo
19:46 GitHub192 [mojo] kraih pushed 1 new commit to master: http://git.io/tVjPcw
19:46 GitHub192 [mojo/master] renamed Mojo::IOLoop::Trigger to Mojo::IOLoop::Delay - Sebastian Riedel
19:46 GitHub192 left #mojo
19:50 sri http://mojolicio.us/perldo​c/Mojo/IOWatcher#SYNOPSIS
19:51 sri i'm not entirely happy with that api yet
19:51 sri suggestions would be very welcome
19:52 sri the goal is to make it as simple as possible
19:53 sri (detect and is_readable can be ignored)
19:53 sri think my main problem is ->io, ->watch and the two ->drop_* methods
19:55 sri maybe ->io should really be called ->watch
19:55 sri and ->watch something else… perhaps ->switch or so
19:56 marty replacing io ->io with ->watch does read better *in those examples*
19:56 marty s/io//g
19:59 sri i kinda like how it looks when i change the current ->watch to ->change
20:02 marty Overall, it is still pretty easy to follow.
20:05 sri with those changes the IOWatcher seems appropriate again
20:05 sri since watching io is the main focus
20:06 * marty nods
20:06 sri *+name
20:08 GitHub50 joined #mojo
20:08 GitHub50 [mojo] kraih pushed 1 new commit to master: http://git.io/8PB7xw
20:08 GitHub50 [mojo/master] renamed io and watch methods in Mojo::IOWatcher - Sebastian Riedel
20:08 GitHub50 left #mojo
20:08 sri ok, i think we have it :)
20:09 marty sri++
20:10 sri marty++
20:14 kvorg joined #mojo
20:16 GitHub160 joined #mojo
20:16 GitHub160 [mojo] kraih pushed 1 new commit to master: http://git.io/vja6sQ
20:16 GitHub160 [mojo/master] fixed delay example - Sebastian Riedel
20:16 GitHub160 left #mojo
20:29 perlrocks Twitter: "Mojolicious 2.14 by SRI - http://t.co/uzeaKymx" (cs) --cpan_new http://twitter.com/cpan_new​/status/130018280080556032
20:30 abra joined #mojo
20:37 GitHub12 joined #mojo
20:37 GitHub12 [mojo] kraih pushed 1 new commit to master: http://git.io/rTYaVw
20:37 GitHub12 [mojo/master] better descriptions for a few controller methods - Sebastian Riedel
20:37 GitHub12 left #mojo
20:39 Eugene joined #mojo
20:39 sri http://mojolicio.us/perldoc/Mojo/IOLoop#delay
20:39 sri really like the look of this
20:43 GitHub164 joined #mojo
20:43 GitHub164 [mojo] kraih pushed 1 new commit to master: http://git.io/AYc-rA
20:43 GitHub164 [mojo/master] fixed typo in begin example - Sebastian Riedel
20:43 GitHub164 left #mojo
21:01 mire joined #mojo
21:21 andrefs joined #mojo
21:52 xaka is there any way to escape query string values before pass them to user agent?
21:59 ruz joined #mojo
22:07 metaperl joined #mojo
22:16 perlrocks Twitter: "Anyone out there used #Mojolicious for a full-featured site yet? Care to share any example code? #Perl" --stevenmalin http://twitter.com/stevenmal​in/status/130045210943164418
22:21 perlrocks Twitter: "@stevenmalin http://t.co/la2OrgXn #mojo #perl .. but, define full-featured?" --_anaio http://twitter.com/_anaio/​status/130046650751258624
22:25 ispy_ joined #mojo
22:32 perlrocks Twitter: "Ok Twitter, I'm gonna go cook potatoes and grill steaks, I need some #Mojolicious tips when I get back! #Perl" --stevenmalin http://twitter.com/stevenmal​in/status/130049327459602432
22:45 ispy__ joined #mojo

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