Camelia, the Perl 6 bug

IRC log for #mojo, 2011-03-02

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

All times shown according to UTC.

Time Nick Message
00:01 maja_ left #mojo
00:08 maja joined #mojo
00:35 marty left #mojo
00:43 spleenjack left #mojo
01:24 Alias joined #mojo
01:40 xris left #mojo
01:41 yakudzo left #mojo
02:02 magnus joined #mojo
02:02 tempire_perl joined #mojo
02:04 tempire_perl left #mojo
02:04 magnus left #mojo
02:05 tempire_ joined #mojo
02:14 minimalist How do you specify which option is selected in the select_field helper tag?
02:32 sri you set the attribute, there's an example for class
02:33 sri or $self->param(foo => 'bar') to have a default
02:33 sri which is likely easier
02:41 minimalist sri, how do you set the attribute? <%= select_field timezone => $tz_list => ( selected => $A->timezone ) %> doesn't work.
02:41 sri see examples
02:42 sri it's not that simple
02:42 minimalist there are no examples for select
02:42 sri of course there are
02:42 minimalist no examples with selected option
02:42 sri http://mojolicio.us/perldoc?Mojolic​ious/Plugin/TagHelpers#select_field
02:43 sri i said class
02:44 sri don't use it if it's too complicated
02:44 sri tag helpers are not the answer for everything
02:44 minimalist I see. Yes, I'm pulling all options from a database and it doesn't make sense to use the tag herper her.
02:44 minimalist I wanted to get rid of HTML::FillInForm
02:45 sri % param foo => 'bar' unless param 'foo';
02:45 sri that might be easier
02:45 minimalist cool
02:46 ispy_ joined #mojo
02:46 sri you can also make your own tag helpers
02:46 minimalist I have made a bunch already, but I didn't want to reinvent the wheel.
02:47 minimalist even if I can make it rounder ;)
02:47 sri some tasks require special wheels ;)
02:52 ispy_ left #mojo
03:28 yakudzo joined #mojo
03:52 stephen left #mojo
04:03 tholen42 joined #mojo
04:05 tl left #mojo
05:28 * tempire_ sprinkles glitter on baton8, bloonix, & cstamas
05:31 crab glitter?
05:31 purl i think glitter is http://www.everything2.com​/index.pl?node_id=1134544
05:49 koban1 joined #mojo
05:51 charsbar__ left #mojo
05:52 charsbar joined #mojo
06:00 * sri sprinkles glitter on tempire_
06:08 Drossel joined #mojo
06:09 Kulag left #mojo
06:19 ysyrota joined #mojo
06:20 perlrocks Twitter: "Then I was on Mojo. perl-Mojo-e 'b (g ("http://www.google.co.jp/") -> dom-> at ("title") -> text) -> say' black magic or too little." (ja) --5_1_5 http://twitter.com/5_1_5/status/42831557186158592
06:21 su-bzero_ joined #mojo
06:30 sri oh
06:30 * sri wonders if we should allow <%= form_for foo => sub %>...<% end %>
06:32 minimalist that will assure that any web designer in the world will freak out when they see your template.
06:34 sri actually i think it will freak out perl developers more
06:36 omega it looks like bad nesting?
06:36 sri it looks like syntax errors
06:37 jwang left #mojo
06:37 omega that as well
06:37 sri i like the current <%= form_for foo => begin %>...<% end %>
06:37 sri begin is just a bit much to type
06:38 sri it's much less of an issue with 2 whitespace indentation though
06:42 Drossel left #mojo
06:43 Kulag joined #mojo
06:48 kaare joined #mojo
06:52 Kulag left #mojo
06:54 Kulag joined #mojo
07:00 Alias left #mojo
07:02 tholen joined #mojo
07:02 tholen left #mojo
07:07 koban1 left #mojo
07:07 koban1 joined #mojo
07:19 marcus sri: feels like http://mojolicio.us/perldoc?Mojol​icious/Guides/Cookbook#Hypnotoad is missing a section about reverse proxy for apache2?
07:32 fhelmber_ joined #mojo
07:36 Christian joined #mojo
07:36 Christian morning
07:49 Christian left #mojo
07:52 Christian joined #mojo
07:54 breaker313 joined #mojo
08:27 tholen_ joined #mojo
08:45 koban1 left #mojo
08:47 breaker313 left #mojo
08:53 koban joined #mojo
09:04 breaker313 joined #mojo
09:06 perlrocks Twitter: "@ Ytnobody Mojolicious:: Lite which is better and you mean I Ne" (ja) --hironorism http://twitter.com/hironori​sm/status/42873486506598400
09:07 Debolaz Is there a good way to let several applications coexist in the same directory structure? Specifically, have their own public and templates directories, but share lib.
09:11 minimalist left #mojo
09:13 marcus Debolaz: this might be close to what you want - http://mojolicio.us/perldoc?Mojolicious​/Guides/Routing#Embedding_Applications
09:20 rhaen hm.
09:34 toebu left #mojo
09:40 koban left #mojo
09:40 koban joined #mojo
09:47 AmeliePoulain joined #mojo
09:55 otaviof joined #mojo
09:56 ispy_ joined #mojo
09:58 rhaen Mojo is so nice!
09:59 rhaen btw, hello everyone.
09:59 marcus hi rhaen :)
09:59 rhaen first application has been productive for 3 weeks now.
09:59 rhaen Apache2 with reverse proxy to hypnotoad. Cool
09:59 koban left #mojo
10:00 rhaen btw, we made an init script for RHEL6 for hypnotoad - is that something for a contrib/ or example directoryß
10:00 rhaen ?
10:01 koban joined #mojo
10:01 tholen_ left #mojo
10:03 Debolaz marcus: Thats a nifty feature indeed, though there doesnt seem to be a trivial way to do this. It's not a big issue though.
10:07 marcus rhaen: stuff it in the wiki?
10:12 koban left #mojo
11:02 oleber left #mojo
11:20 spleenjack joined #mojo
12:14 breaker313 left #mojo
12:18 rhaen marcus: good idea
12:18 rhaen marcus: an example inside the examples dir might lead to a standard init script for all those dist maintainers, tho
12:40 koban joined #mojo
12:41 perlrocks Twitter: "Getting ready to implement a nice #perl #mojolicious data mining and analysis intranet app. First modern app for their environment!" --ericrost http://twitter.com/ericros​t/status/42927569896611840
12:41 fmerges joined #mojo
13:41 perlrocks Twitter: "The following @ nishikawasasaki Mojolicious:: Lite is not it? I understand." (ja) --heavenshell http://twitter.com/heavenshe​ll/status/42942532430217216
13:48 su-bzero joined #mojo
13:53 su-bzero_ left #mojo
14:02 ispy__ joined #mojo
14:04 chansen joined #mojo
14:04 ispy_ left #mojo
14:10 hoelzro|home left #mojo
14:10 hoelzro|home joined #mojo
14:13 ispy__ left #mojo
14:33 hoelzro|home left #mojo
14:33 hoelzro|home joined #mojo
14:35 hoelzro joined #mojo
14:40 tholen joined #mojo
14:40 su-bzero is now known as su-bzero_
14:42 hoelzro|home left #mojo
14:43 hoelzro|home joined #mojo
14:50 hoelzro|home left #mojo
14:50 hoelzro|home joined #mojo
14:52 koban left #mojo
14:53 koban joined #mojo
14:56 koban left #mojo
14:58 sri rhaen: stuff it in the wiki!
14:58 marty joined #mojo
15:07 dotan joined #mojo
15:12 kaare left #mojo
15:14 ispy_ joined #mojo
15:32 AmeliePoulain left #mojo
15:46 tempire_ left #mojo
15:47 tempire joined #mojo
15:50 ispy_ left #mojo
15:51 kaare joined #mojo
15:51 ispy_ joined #mojo
15:53 ispy_ left #mojo
15:55 ispy_ joined #mojo
15:56 tempire left #mojo
15:56 su-bzero1 joined #mojo
15:57 Christian nice evening
15:57 tempire joined #mojo
15:57 Christian left #mojo
16:00 ispy_ left #mojo
16:01 su-bzero_ left #mojo
16:01 ispy_ joined #mojo
16:02 perlrocks Twitter: "@vtivti does it matter? Just giving you an example of unfounded accusations :) What's gotten up your ass about #mojolicious anyway?" --perlninja http://twitter.com/perlninj​a/status/42978182546202624
16:15 dotan left #mojo
16:27 giwi left #mojo
16:37 su-bzero1 left #mojo
16:45 giwi joined #mojo
16:46 fhelmber_ left #mojo
16:51 otaviof left #mojo
16:52 su-bzero joined #mojo
16:53 kaare_ joined #mojo
16:55 kaare left #mojo
17:06 GitHub190 joined #mojo
17:06 GitHub190 mojo: master Sebastian Riedel * 98381ba (3 files in 3 dirs): improved text_field tag helper - http://bit.ly/hLtFVa
17:06 GitHub190 left #mojo
17:10 crab help! i'm falling in love with an experimental tag helper!
17:13 yakudzo left #mojo
17:14 minimalist joined #mojo
17:21 fmerges left #mojo
17:22 sri sounds dangerous
17:23 sri but all the best things are
17:43 ysyrota left #mojo
17:48 mattastrophe joined #mojo
18:04 tholen left #mojo
18:06 ispy_ left #mojo
18:15 bellaire left #mojo
18:18 garu sri: funny how the raptor_white.png file is rendered by github on a white bg. It just says "5. Always." 'nuff said :)
18:23 ispy_ joined #mojo
18:28 tholen joined #mojo
18:28 sri garu: haha
18:29 garu sri: do you have plans for releasing the svg?
18:29 sri i can't release the whole thing as svg
18:29 sri font is commercial
18:30 sri raptor alone would be an option, but seeing it used with poor type would always make my heart bleed :S
18:32 crab don't worry, times new roman 10pt should be fine
18:34 tholen left #mojo
18:40 * garu was just wondering how opensource is the logo
18:40 garu I'm not sure that shop ships to brazil :/
18:40 garu (or how expensive it would make the shirt)
18:47 crab sri: nothing to justify maintenance release soon, right?
18:49 tholen joined #mojo
18:55 stephen joined #mojo
18:56 sri garu: shops are closed for now anyway
18:58 garu :(
18:58 garu but... but... I want a shirt!!
18:58 garu :)
19:03 sri i've ordered a few with different print techniques, once i've found the one with the best quality i'm going to offer them again
19:04 sri and it of course also depends on how the spreadshirt thing turns out
19:04 crab sri: nothing to justify maintenance release soon, right?
19:04 crab urk
19:04 sri don't think so
19:05 sri what are you interested in?
19:05 crab text_field :-)
19:05 sri :)
19:06 sri just bug me often enough and i'll give in ;p
19:06 crab are we there yet?! are we there yet!?
19:06 crab (i drove somewhere with a kid last year who _actually_ kept asking "are we there yet?". i wanted to kill him.)
19:06 sri haha
19:11 spleenjack left #mojo
19:13 sri garu: i'm open for suggestions though about what formats to release
19:14 sri also suggestions for alternative open fonts
19:15 garu I'd really like it in svg, though I have no idea about a good font
19:15 garu I know several opensource font repositories, but I think you know them as well
19:16 sri i've already looked though google webfonts
19:16 sri Geo could work, but not as good as the comemrcial TheMix font
19:19 tempire left #mojo
19:19 tempire joined #mojo
19:20 garu sri: nothing on openfontlibrary.org, dafont.com or theleagueofmovabletype.com? I'm not going to pretend I can actually tell what makes a font better/worse than other
19:22 sri i've not seen a single really good open font yet
19:22 perlrocks Twitter: "Developing a geolocation based web application on windows mobile - server backend is powered by #mojolicious #perl" --rabenfeder http://twitter.com/rabenfed​er/status/43028495357575168
19:23 rhaen hej sri
19:23 sri but i'm really a typophile
19:23 * sri waves
19:23 rhaen <deeng>old owl</deeng>
19:24 rhaen oh, I need a new ipad
19:25 perlrocks Twitter: "I guess the #mojolicious tag helper plugin is soon going to lose its experimental status. :) http://t.co/hYrOVTt" --kraih http://twitter.com/kraih/status/43029289028956160
19:26 tholen left #mojo
19:33 perlrocks Twitter: "The decision to let #mojolicious tag helpers stabilize depends only on your feedback, let me know what you think. http://t.co/irLNCzH #perl" --kraih http://twitter.com/kraih/status/43031242500878336
19:37 ispy_ left #mojo
19:39 sri marcus: i don't think you'll like the ipad2 covers
19:47 elb0w sri when you do the kill -s how do you handle that signal in mojo?
19:47 elb0w I've yet to do anything like that
19:47 sri ?
19:47 crab $SIG{USR2} = sub { ... };
19:47 sri NOOO!
19:47 elb0w ?
19:47 sri do not mess with signals
19:47 elb0w y?
19:47 purl i think y is a semi-vowel, but is 'n' ever a vowel?
19:48 sri stuff explodes
19:48 elb0w lol
19:48 crab oh, i interpreted the question to mean how do you do it in general, not "how do i use signals in mojo"
19:57 tholen joined #mojo
20:09 marcus sri: I do like them
20:10 sri marcus: they totally reminded me of yours
20:11 marcus sri: well, they both use magnets.
20:11 marcus apart from that they are not so similar
20:11 marcus sri, did you see the video at http://www.apple.com/no/ipad/# ?
20:12 sri seen the whole thing live on cnn
20:12 marcus nice
20:13 marcus but yeah, apple's new cover looks a lot nicer than their old one.
20:13 marcus I still think there's a market for a leather one that covers both sides of the device tho.
20:14 tholen left #mojo
20:18 sri indeed
20:18 sri that's a weakness of the apple one
20:18 sri i'd also like something like that for the iphone
20:26 giwi left #mojo
20:48 xris joined #mojo
21:01 grim_fandango joined #mojo
21:03 grim_fandango Is there a quick tutorial on making new tag helpers?
21:03 hoelzro grim_fandango: it's pretty simple
21:03 hoelzro create a module with the register method
21:04 hoelzro the second argument to the register method is a Mojolicious app
21:04 hoelzro call $app->register() to your heart's content
21:05 sri grim_fandango: you've seen the adding helper section in the rendering guide?
21:05 grim_fandango Thanks hoelzro
21:06 sri http://mojolicio.us/perldoc?Mojolici​ous/Guides/Rendering#Adding_Helpers
21:06 grim_fandango sri: You know, I probably skimmed it too quickly.  I will go back and look again.
21:06 grim_fandango Ah, thanks.
21:06 sri covers pretty much everything there is to know
21:06 sri even blocks
21:06 grim_fandango Yup, it sure does.
21:06 grim_fandango Thanks.
21:07 sri we could use more tag helper plugins on cpan *hint hint*
21:08 grim_fandango Noted ;-)
21:12 GitHub131 joined #mojo
21:12 GitHub131 mojo: master Sebastian Riedel * 103943d (1 files in 1 dirs): improved helper recipe - http://bit.ly/ieTSyN
21:12 GitHub131 left #mojo
21:13 sri one of the things that can make tag helpers a lot easier to use
21:13 crab hoelzro: $app->helper
21:15 hoelzro crab: hmm?
21:16 hoelzro oh, yes
21:16 hoelzro that's what I meant =)
21:21 perlite_ joined #mojo
21:24 grim_fandango Is it possible to reuse a begin/end block & captured content in multiple templates?  I'm thinking this might be more appropriate for what I want to do than tag helpers.
21:25 perlite left #mojo
21:25 perlite_ is now known as perlite
21:25 mattastrophe left #mojo
21:25 grim_fandango I tried making a block, including it and then referencing it but I end up with a scope exception.
21:31 grim_fandango Maybe I really *do* want a helper, hm.
21:33 crab what do you want?
21:33 purl DO YOU WANT TO HAVE MORE
21:34 sri he might want content_for
21:35 grim_fandango purl: Yikes, not from you!  haha
21:35 purl grim_fandango: i'm not following you...
21:35 sri http://mojolicio.us/perldoc?Moj​olicious/Lite#Captured_Content
21:36 grim_fandango Yeah, so basically what I'm trying to do is recreate some "blocks" throughout my templates (these are things showing up in the sidebars) using the same markup but different content.
21:36 grim_fandango I'll look, thanks sri.
21:36 sri oh
21:36 sri you might want partial templates then
21:37 grim_fandango Oh wait... I can pass arguments to a partial, can't I?
21:37 sri http://mojolicio.us/perldoc?Mojolicious/Gu​ides/Rendering#Including_Partial_Templates
21:38 sri you can
21:38 grim_fandango Then that's exactly what I need, thanks.
21:38 grim_fandango Sorry... just picked up Mojo the other day and haven't quite got everything straightened out in my head yet :-)
21:38 sri just read the documentation, it's all in there
21:40 grim_fandango Yeah, I've looked through it... obviously I need to do so again.
21:40 grim_fandango Had a lot on the go lately, not everything is "sticking" the way it should, heh.
21:41 crab ok, that's it, i'm sick of this --listen https breaking every half an hour.
21:41 * crab sets up nginx to forward connections even on localhost
21:44 sri crab: maybe you should report a bug against the underlying modules
21:46 sri if tls crashes so often it shouldn't be too hard to prove with a basic test case
21:47 crab i'll do it when i have the time to investigate.
21:48 sri just don't forget it
21:51 s0va good evening :)
21:51 * sri waves
21:52 s0va sri: how does mojo apply routes to mojo server daemon?
21:52 crab i'll try.
21:52 sri s0va: it doesn't
21:52 sri whole different layer
21:52 s0va as far i see there is only one server method: on_handler()
21:52 sri right, that's all
21:53 sri handler does everything
21:54 s0va yep :) currently i'm able to create multiple url handlers  (i want to use mojo server daemon without mojo webapps)
21:54 s0va becouse is so fucking awesome
21:54 sri crab: i'll keep a tls daemon running here for an hour and see if it crashes too
21:55 s0va sri: i see ->on_handler only in mojo::transaction::http
21:55 sri wait
21:55 sri s0va: http://mojolicio.us/perldoc?Mojo/Server
21:55 sri it's all in there
21:56 crab sri: make a request or two to it now and then. it always crashes while i'm not doing anything, but not when it's totally idle and unused (that i've noticed, anyway). thanks.
21:56 sri you just put a callback in on_handler
21:56 crab anyway, it's certainly not busy in any sense of the word.
21:56 s0va sri: yeah, i get this on_handler thing :)
21:56 sri crab: ok, sleep 5 should do?
21:56 sri for the client
21:57 s0va i'd like to do something like this: bring up daemon in runtime (done), apply mojo app somewhere on fs to specified daemon object.
21:57 crab oh, surely. even 60 should do.
21:57 sri crab: ok, will try with 60 then
21:58 sri crab: you don't --reload right?
21:58 s0va ->app_class
21:58 s0va omfg
21:58 crab i've seen it with both, more often with reload
21:58 * s0va is ashamed
21:59 sri s0va: no need, i didn't understand the question yet anyway :)
21:59 sri crab: with --reload i really wouldn't care
21:59 sri --reload is bound to fail at some point
22:00 s0va and it does fail at some point :)
22:01 crab yeah
22:01 su-bzero_ joined #mojo
22:03 sri we can at least rule out memory leaks, it is very consistent in my test so far
22:06 su-bzero left #mojo
22:08 s0va omfg...
22:08 s0va it works :)
22:09 s0va $daemon->app_class('Some::Class'); $daemon->run();
22:09 s0va the only bad sideeffect: mojo help commands are printed to stdout
22:10 meraxes left #mojo
22:12 mattastrophe joined #mojo
22:22 sri crab: 30 mins now and everything works perfectly
22:25 s0va crab: https problems?
22:26 s0va does perl process stop or what?
22:26 sri i think handshakes start to suddenly fail
22:26 s0va oh.
22:27 sri he said after about half an hour
22:27 sri 35 mins running here now
22:27 s0va ;)))
22:28 sri https is unpredictable though
22:28 sri the bindings are very old and ugly
22:28 s0va everything ends somewhere in net::ssleay
22:28 s0va :)
22:29 sri ye
22:29 s0va sri: anyevent tls support has a note that some memory could be leaked for each accepted connection
22:30 sri 40 mins, memory and cpu still exactly the same
22:30 sri s0va: i wouldn't be surprised, but he specifically said load was very low on the server
22:31 s0va memory: 25708 => ab => 25812
22:32 s0va after ab -n 2000 -c100 -k https://localhost:3003/sth
22:32 sri there is always a little fluctuation which evens out at some point
22:32 sri ab does https? Oo
22:32 s0va yep.
22:32 sri interesting
22:32 s0va Server Port:            3003
22:32 s0va SSL/TLS Protocol:       TLSv1/SSLv3,DHE-RSA-AES256-SHA,1024,256
22:33 s0va sri: why doesn't $daemon->app_class('Something') work after $daemon->run()?
22:34 s0va ... yeah i know what you're thinking...
22:34 sri s0va: i would have to read up on it myself
22:35 s0va setting $daemon->on_handler(sub{}) works after ->run
22:36 sri app is prolly instantiated
22:36 sri should all be in Mojo::Server
22:36 sri crab: 45 mins and nothing :)
22:36 s0va ehehe
22:37 s0va crab: updated to latest io::socket::ssl?
22:40 sri i bet on a weird platform specific Net::SSLeay bug or simply --reload being active
22:41 s0va some gay openbsd OS?
22:41 s0va :)
22:41 s0va i've installed obsd 4.8 one week back
22:41 s0va basically nothing changed since 2.6 i installed years back
22:42 s0va installed is still the same, yet still efficient.
22:42 s0va and the os is still sluggish...
22:48 kaare_ left #mojo
22:50 hoelzro left #mojo
23:41 mateu left #mojo
23:42 mateu joined #mojo

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