Camelia, the Perl 6 bug

IRC log for #mojo, 2010-11-15

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

All times shown according to UTC.

Time Nick Message
00:06 kvorg joined #mojo
00:10 ash_ left #mojo
00:26 alnewkirk joined #mojo
00:37 vel left #mojo
00:50 sri ok, ipv6 support without xs is absolutely impossible :S
00:50 sri maybe with perl 5.14
00:53 MojoGuest267 joined #mojo
00:53 MojoGuest267 From: http://news.ycombinator.com/item?id=1277067 (50 hits)
00:53 MojoGuest267 left #mojo
00:54 MojoGuest948 joined #mojo
00:54 MojoGuest948 From: http://www.networkedblogs.com/33Knp (21 hits)
00:54 MojoGuest948 left #mojo
01:07 sri damn, it is possible
01:47 sri no way i'm going that far :)
01:48 sri no ipv6 until it is trivial to support
01:49 GitHub31 joined #mojo
01:49 GitHub31 mojo: master Sebastian Riedel * e00c51d (1 files in 1 dirs): cleanup - http://bit.ly/cMyhaf
01:49 GitHub31 left #mojo
01:57 ash_ joined #mojo
02:15 testbot joined #mojo
02:15 testbot Test!
02:16 sri interesting
02:19 testbot left #mojo
02:19 testbot joined #mojo
02:19 testbot left #mojo
02:20 testbot joined #mojo
02:21 testbot left #mojo
02:52 ash_ left #mojo
03:00 perlrocks Twitter: "Would like to see more #mojolicious applications utilize external event loops like #poe. http://bit.ly/93GIv0 #perl" --kraih http://twitter.com/kraih/status/4005726473166848
03:05 perlrocks Twitter: "RT @kraih: Would like to see more #mojolicious applications utilize external event loops like #poe. http://bit.ly/93GIv0 #perl" --zakame http://twitter.com/zakame/status/4006923896619009
03:08 sri wonder if a plugin that just autoloads all event loops it can find would be a good idea
03:38 perlrocks Twitter: "How about #mojolicious and IO::AIO? :) http://bit.ly/9tT4Le #perl" --kraih http://twitter.com/kraih/status/4015424056328192
03:56 perlrocks Twitter: "RT @kraih: How about #mojolicious and IO::AIO? :) http://bit.ly/9tT4Le #perl" --j3nnn1 http://twitter.com/j3nnn1/status/4019946891771904
04:04 tl joined #mojo
04:06 tholen42 left #mojo
04:23 GitHub28 joined #mojo
04:23 GitHub28 mojo: master Sebastian Riedel * 791ccde (4 files in 4 dirs): fixed a Mojo::Client bug where interrupted connections were still successful - http://bit.ly/9t6hY6
04:23 GitHub28 left #mojo
04:56 ltriant left #mojo
05:02 ltriant joined #mojo
06:02 tempire left #mojo
06:15 perlrocks Twitter: "RT @ shiba_yu36: Today Mojolicious, Xslate, DBIx:: Skinny had to try several on. I know that you can meet quite a lot, sleep." (ja) --__gfx__ http://twitter.com/__gfx__/status/4054832247734272
06:15 ysyrota joined #mojo
06:30 ltriant left #mojo
06:32 und3f[A] is now known as und3f
06:34 und3f sri, thanks )
06:35 und3f sri, got so much closed bugs. Waiting for release on cpan! :)
06:37 perlrocks Twitter: "RT: @kraih: Would like to see more #mojolicious applications utilize external event loops like #poe. http://bit.ly/93GIv0 #perl" --sharifulin http://twitter.com/shariful​in/status/4060348806078465
06:44 koban joined #mojo
06:46 perlrocks Twitter: "Mojolicious::Lite Стартуем! http://bit.ly/ca8jAF" --develosaur http://twitter.com/develosa​ur/status/4062725483270144
07:09 kvorg left #mojo
07:12 perlrocks Twitter: "Perl on ya.ru: Mojolicious:: Lite 'll start! / Mojolicious / allframeworks.ru - Blog about modern web development and ... http://ff.im/tLz40" (ru) --planetperlru http://twitter.com/planetper​lru/status/4069104637972480
07:34 pid joined #mojo
07:43 und3f sri, in README.pod you can write other way of installation Mojolicious with wget (it is widely used) wget --no-check-certificate -qO- cpanmin.us | perl - http://latest.mojolicio.us
07:59 und3f is now known as und3f[A]
08:06 breaker313 joined #mojo
08:16 koban left #mojo
08:20 alnewkirk left #mojo
08:36 fhelmberger joined #mojo
09:01 DaTa "Old MacDonald had a farm IO::AIO!" lol
09:13 s0va perlrocks: ehm, tried poe with POE::Wheel::Run, but it block really badly!
09:13 s0va sri: are you here
09:29 spleenjack joined #mojo
10:11 koban joined #mojo
10:16 s0va question: this one works: http://pastebin.com/Y60FVXbQ
10:16 s0va this one doesn't: http://pastebin.com/dFk5qLgd
10:16 s0va wtf?
10:19 crab oh great. i upgraded to the latest mojo and now my input tags don't work.
10:20 crab they have to be "input_tag 'x' => ..." now?
10:25 crab "renamed tag helper input to input_tag"
10:27 crab tag 'input' also no longer works, it seems.
10:31 perlrocks Twitter: "Mojolicious:: Lite + Mojolicious:: Plugin:: Xslate when we used in the layout, the layout templates in the <: $ c.content | mark_raw:> Maybe, but balanced by good in this?" (ja) --Naney http://twitter.com/Naney/status/4119369902727168
10:33 perlrocks Twitter: "Also Mojolicious:: Lite Reiautotenpuretofairu waited in a little place to put. Beneath layouts / up instead of templates / layouts / I just had to put less." (ja) --Naney http://twitter.com/Naney/status/4119868991348736
10:57 * crab cries
11:23 crab and "label 'x'" no longer works either. +        - Removed tag helpers label and img.
11:23 * crab sighs
11:23 crab wtf?
11:26 ysyrota left #mojo
11:26 ysyrota joined #mojo
11:28 ysyrota left #mojo
11:28 ysyrota joined #mojo
11:30 ysyrota left #mojo
11:30 ysyrota joined #mojo
11:35 forwardever joined #mojo
11:49 perlrocks Twitter: "RT @ Naney: Mojolicious:: Lite + Mojolicious:: Plugin:: Xslate when we used in the layout, the layout templates in the <: $ c.content | mark_raw:> balanced, but by now in the ..." (ja) --__gfx__ http://twitter.com/__gfx__/status/4138793988788224
11:49 kimoto joined #mojo
11:55 kimoto sri: How about adding Apache/mod_proxy to Mojolicious::Guides::Cookbook
11:55 kimoto http://pastie.org/1299343
11:56 perlrocks Twitter: "@ __gfx__ Thank you. Mojolicious:: Lite's Pod first look at the document Xslate <: $ content:> on so I thought what I can see in it is not." (ja) --Naney http://twitter.com/Naney/status/4140776829227008
12:01 perlrocks Twitter: "The helper @ __gfx__ content Mojolicious:: Plugin:: DefaultHelpers to the point where I have to arrive at, to do with what is without step flow." (ja) --Naney http://twitter.com/Naney/status/4142008650178560
12:26 perlrocks left #mojo
12:30 koban left #mojo
12:33 koban joined #mojo
12:47 baton8 https://github.com/blog/744-today-s-outage
12:58 dotan joined #mojo
13:16 daviddelikat left #mojo
13:20 s0va baton8: nice fuckup...
13:27 alnewkirk joined #mojo
13:33 baton8 s0va, yeah ;)
13:52 marcus yo peeps
13:55 yko joined #mojo
13:58 daviddelikat joined #mojo
14:27 sri crab: tag helpers are experimental
14:27 sri so be careful
14:28 alnewkirk left #mojo
14:29 sri tag helpers are the one thing i'm most unsure about
14:29 sri kimoto: sure, add those to the wiki first
14:34 breaker313_ joined #mojo
14:39 breaker313 left #mojo
14:43 vel joined #mojo
14:44 yko left #mojo
14:51 crab oh
14:51 crab why are you unsure?
14:52 sri because there is no best practice established yet
14:52 stephan49 because he can.
14:53 sri tag helpers are basically still in the design phase
14:53 sri helpers that looked like normal html tags for example turned out to be problematic
14:54 crab like "input"? what was the problem with it?
14:54 sri looked like a tag
14:54 crab i've just about finished moving to the new helper scheme, using hidden_field etc.
14:54 crab it made things shorter, but it took a long time.
14:54 sri label was more typing than the actual tag
14:55 crab sri: yes, indeed
14:55 crab (about label)
14:55 kimoto I added recipi to wiki
14:55 kimoto https://github.com/kraih/mojo/​wiki/Various-way-of-deployment
14:55 sri basically, now i want tag helpers to each do "something more" than just generate a tag, and have a name that can't be confused
14:55 crab though i still think <%= label 'fieldname' => "xyzzy" %> would've been good
14:55 crab i see
14:56 sri i'm just figuring out these little best practices, so i think tag helpers will stay experimental for a long time
14:59 sri if you need more stability i suggest not using tag helpers or forking the plugin for your own use
15:00 sri guess some modules like Mojo::DOM can soon become non experimental
15:05 sri btw. gonna release later today, get testing! :)
15:07 sri kimoto: you mean "ways", otherwise good start
15:07 yko joined #mojo
15:08 sri oh, and "multiple"
15:11 forwardever maybe, the page should be called "Apache", not "multiple ways of deployment" ? (main category would remain "Deployment")
15:11 dotan kimoto: you can also put your mojo apps in different paths instead of subdomains
15:14 dotan is there a place to add general howto/tips/faqs on the wiki? stuff like "how do I get only post params" that someone asked here yesterday.
15:14 kimoto sri, forwardever: ok. i will try fix it.
15:15 a|newkirk[assoc] joined #mojo
15:17 kimoto waht page name is good, "Apache deployment", "Deployment of Apache", "Deployment in Apache"
15:17 a|newkirk[assoc] is now known as alnewkirk
15:17 forwardever dotan: maybe a main category called "Controller" with a page called "controller recipes" ? ($c->req->body_params)
15:20 forwardever kimoto: think "Apache deployment" would be best option as page name; on main page, the link would just be called "Apache", as it is already located under title "Deployment"
15:20 mrSln joined #mojo
15:21 kimoto forwardever: ok.
15:22 Akron joined #mojo
15:25 mrSln hello everyone. I'm trying to run my project with 'starman', but I'm getting error:
15:25 mrSln "Error while loading script/myproject: Can't locate object method "new" via package "Myproject" at /usr/local/share/perl/5.10.0/Mojo/Server.pm line 23.".
15:25 mrSln The same thing with 'plackup'. Please, help me.
15:27 mrSln Perl        (5.010000, linux)  Mojolicious (0.999938, Hot Beverage)
15:28 koban left #mojo
15:29 koban joined #mojo
15:29 kimoto i fixed pages.
15:29 kimoto https://github.com/kraih/mojo/wiki
15:29 kimoto https://github.com/kraih/m​ojo/wiki/Apache-deployment
15:30 kimoto how about these pages.
15:32 mrSln are you talking to me?
15:34 kimoto mrSln: not. sri and forwardever.
15:35 forwardever mrSln: I get such an error e.g. if "use base 'Mojolicious;" is missing in my routes file (in case it's a none lite app)
15:35 mrSln yes, it's not lite app
15:36 forwardever mrSln: maybe the package name is also not correct in the routes file?
15:38 forwardever mrSln: routes file should be located here: /myproject/lib/Myproject.pm
15:38 forwardever mrSln: but there might be many other reasons why it doesn't work
15:42 mrSln thanks for helps. But it seems correct so far. It isn't missed  "use base 'Mojolicious;". Package name is correct. Location is correct, it's in the home folder (~/myproject/lib/Myproject.pm, not root). What kind of reasons are you talking about?
15:42 mrSln sorry for English, btw
15:45 mrSln forwardever, what do you mean by saying incorrect package name? It's 'package Myproject;'
15:45 forwardever mrSln: seems correct
15:48 forwardever mrSln: what happens if you go to: /myproject/ and then enter "script/myproject daemon" or "perl script/myproject daemon"
15:49 sri starman screws up $0
15:49 sri you might need MOJO_HOME=/lalala
15:49 sri and/or update your script
15:50 sri FindBin for example does not work with starman
15:50 mrSln sri, I think I've done that. (I mean I have tried it already). But I will try it again. What do you mean by saying update my script?
15:50 mrSln oh
15:50 mrSln I'm using FindBin
15:51 sri use lib join '/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib';
15:51 sri newer scripts use something like that
15:51 ysyrota left #mojo
15:52 mrSln sri, thanks, I'll try it.
15:52 otaviof joined #mojo
15:53 sri http://www.apple.com/ # hmm
15:54 s0va sri: Asset::File doesn't work correctly in sub callbacks...
15:54 sri s0va: and you of course have a test to prove that?
15:54 mrSln forwardever, actually, it's not working at the time o_O but it was working perfectly. I think I'm getting unrelated to mojo error: "perl: symbol lookup error: /usr/local/lib/perl/5.10.0​/auto/HTML/CTPP2/CTPP2.so: undefined symbol: _ZN4CTPP9CTPPErrorC1ERKSsS2_RKjS4_S4_S4_". I'm using CTTP2 as templater
15:55 sri mrSln: now your perl is screwed
15:55 s0va sri: works: http://pastebin.com/Y60FVXbQ doesn't: http://pastebin.com/dFk5qLgd
15:55 sri mrSln: thats something we can't help you with
15:55 sri s0va: umm, Mojolicious::Static was never meant to be used like that, you're entirely on your own there
15:56 mrSln sri, ok, thanks. I think I'll figure out it
15:56 s0va i know:) but if i use Asset::File directly, the same happens.
15:56 sri s0va: make a nice little test patch and it will be fixed in minutes ;)
15:56 koban left #mojo
15:57 s0va sri: (sic!); i'll try to do this.
16:00 forwardever mrSln: maybe, if the solution sri suggested works and it is of general interest, you might add a deployment recipe to the wiki :)
16:04 mrSln forwardever, ok, I'll think about it, if it will work. I'm not sure what are you asking about, do you mean deployment recipe with starman?
16:05 breaker313_ left #mojo
16:06 forwardever mrSln: maybe, if you think the problem could also be of interest to all people trying to deploy mojo with starman
16:14 mrSln sri, ah, I forgot that I saw the same problem with FindBin, and solution was to use -MFindBin key. Are you sure that starman doesn't work with FindBin at all?
16:14 sri mrSln: could work, all i know is that starman screws up $0
16:15 sri that doesn't matter with newer mojolicious apps though
16:15 sri since we don't use FindBin anymore
16:16 dotan left #mojo
16:21 otaviof left #mojo
16:29 sri s0va: actually i think you might be misunderstanding something
16:29 sri s0va: what *exactly* are you trying to achieve
16:37 sri s0va: there was a bug, but it's entirely unrelated to Mojo::Asset::File
16:37 sri so if you tried raw Mojo::Asset::File it can't be the one
16:49 GitHub31 joined #mojo
16:49 GitHub31 mojo: master Sebastian Riedel * 2debd31 (2 files in 2 dirs): removed useless environment variables
16:49 GitHub31 mojo: master Sebastian Riedel * 2a8eed4 (3 files in 3 dirs): fixed a Mojolicious::Static rendering bug
16:49 GitHub31 mojo: master commits 791ccde...2a8eed4 - http://bit.ly/aq684r
16:49 GitHub31 left #mojo
16:50 GitHub110 joined #mojo
16:50 GitHub110 mojo: master Sebastian Riedel * 6daef76 (1 files in 1 dirs): release preparation - http://bit.ly/a0k0cH
16:50 GitHub110 left #mojo
16:51 sri s0va: i really need a test to indentify your bug, the one above is not related to Mojo::Asset::File at all
16:52 und3f[A] is now known as und3f
16:53 Akron sri: I think you should skip websocket_tls_proxy_lite_app for Strawberry Perl. Failed again on another Windows system ...
16:53 sri Akron: already in github master
16:53 sri plan skip_all => 'Windows is too fragile for this test!' if $^O eq 'MSWin32';
16:53 sri :D
16:54 Akron sri: Oh - nice! And sad ... well ... when's the next CPAN release?
16:54 sri today
16:54 sri in case there are no big bugs reported
16:54 und3f :)
16:56 Akron sri: great!
16:56 sri und3f: is that a happy smile or a "i have found a big bug" smile? :)
17:02 und3f sri, it happy smile.
17:02 sri \o/
17:02 und3f sri, seems like check-host work nice now :)
17:07 und3f sri, btw, i have a question to you. I need to drop Mojo::Client' request if downloading object is too big. How to make it?
17:07 sri und3f: set an error on the response
17:08 sri $tx->res->error('Interrupted!');
17:08 sri thats enough
17:08 sri it will close the connection gracefully and stuff
17:08 und3f sri, but how to determine size of object before downloading
17:08 und3f sri, rewrite Mojo::Client?
17:08 sri umm
17:09 sri on_progress?
17:09 und3f sri, what is it? Can't find such method
17:10 und3f oh, it is on Mojo::Message
17:10 und3f sri, thank
17:10 sri you can just check $self for everything
17:11 sri and set $self->error(...) if you don't like something
17:12 kvorg joined #mojo
17:12 sri the experimental $self->content->progress might also help
17:13 sri it's supposed to tell you how much content bytes have been received yet
17:14 und3f sri, btw, doesn't MOJO_MAX_MESSAGE_SIZE works for Mojo::Client requests?
17:15 sri of course does
17:15 und3f that everything i need :)
17:15 und3f Thanks
17:15 sri hmm, boring
17:15 und3f yeah )
17:16 und3f i don't want find any bugs today
17:17 perlrocks joined #mojo
17:19 sri i don't want to fix any bugs today :)
17:24 marcus heh
17:24 su-bzero left #mojo
17:24 marcus just got banned from #catalyst for speaking my mind
17:24 marcus mst is such a class act.
17:25 sri wow
17:27 su-bzero joined #mojo
17:29 sri marcus: lol, now i'm banned too
17:30 marcus sri: nice. Did you say something ? :)
17:30 marcus or are you just banned in general?
17:32 sri just reminded the channel that you were the first in there
17:32 sri "if anyone has the right to speak his mind in here it's him"
17:33 sri and *baem*
17:34 sri in no way offensive
17:35 MojoGuest431 joined #mojo
17:35 MojoGuest431 From: http://www.google.ca/search?sourceid=chr​ome&amp;ie=UTF-8&amp;q=html5+irc+client (1 hits)
17:35 MojoGuest431 /server #irc.freenode.net
17:36 MojoGuest431 left #mojo
17:37 janus lol, catalyst has a vision... excluding users
17:39 otaviof joined #mojo
17:39 MojoGuest546 joined #mojo
17:39 MojoGuest546 From: http://www.google.ca/search?sourceid=chr​ome&amp;ie=UTF-8&amp;q=html5+irc+client (2 hits)
17:39 MojoGuest546 left #mojo
17:43 MojoGuest363 joined #mojo
17:43 MojoGuest363 From: http://www.networkedblogs.com/33Knp (22 hits)
17:43 MojoGuest252 joined #mojo
17:43 MojoGuest252 left #mojo
17:44 MojoGuest363 left #mojo
17:44 MojoGuest390 joined #mojo
17:44 MojoGuest390 From: http://www.networkedblogs.com/33Knp (23 hits)
17:45 MojoGuest390 left #mojo
17:45 MojoGuest63 joined #mojo
17:45 MojoGuest63 From: http://www.networkedblogs.com/33Knp (24 hits)
17:45 MojoGuest63 left #mojo
17:47 MojoGuest712 joined #mojo
17:47 otaviof left #mojo
17:47 otaviof joined #mojo
17:47 MojoGuest712 left #mojo
17:47 otaviof left #mojo
17:51 sri release time i guess
17:53 pid left #mojo
17:55 und3f sri, btw, how to setup on_process for Mojo::Client request?
17:56 und3f can't just understand
17:56 sri make your own $tx
17:56 und3f oh....
17:56 und3f thanks :(
17:57 sri advanced transaction features are the whole point we have transaction generators ;)
17:57 sri my $tx = $client->build_tx(GET => 'http://mojolicio.us');
17:59 perlrocks Twitter: "Released #mojolicious 0.999939 with lots of bugfixes, enjoy! :) #perl" --kraih http://twitter.com/kraih/status/4232037154168832
17:59 perlrocks Twitter: "RT @kraih: Released #mojolicious 0.999939 with lots of bugfixes, enjoy! :) #perl" --perlninja http://twitter.com/perlnin​ja/status/4232155089608704
18:04 und3f sri, my mind is doomed today
18:16 rhaen hm.
18:17 rhaen hello world.
18:17 marcus hello, cruel world
18:18 mrSln sri, I didn't solve the problem, I'll post about it in google.group. And will the new version of mojo on cpan today?
18:19 * sri waves
18:19 sri mrSln: already uploaded
18:19 sri mrSln: won't help you much though
18:20 mrSln sri, http://search.cpan.org/~kraih/ it seems old version to me
18:20 sri you can always use the download link on http://mojolicio.us
18:20 marcus hmm
18:20 marcus a
18:20 marcus anyone played with hadoop?
18:21 sri ETOOMUCHJAVA
18:22 mrSln sri, where I should put -f key there: curl -L cpanmin.us | perl - http://latest.mojolicio.us
18:22 marcus facebook has the second largest hadoop installation in the world?
18:22 marcus sri: What would you use for a distributed file system?
18:22 sri riak
18:23 s0va removed ipv6 support?
18:23 sri s0va: yes
18:23 s0va socket::ip doesn't work ok?
18:23 sri no doesn't
18:23 marcus sri: I thought you hated the riak license.
18:24 sri it's apache
18:24 sri i'm totally in love with riak
18:24 sri riak-search is awesome
18:25 marcus hmm
18:25 marcus I thought it was redis you liked :)
18:25 sri naah, redis-cluster puts all the logic into the client :S
18:25 marcus ouch
18:25 sri don't like it at all anymore
18:26 marcus so I guess I can use riakfuse with good concience now :)
18:26 sri riak has a few rough edges like the erlang config files
18:26 sri but overall the design is great
18:26 spleenjack left #mojo
18:27 marcus another open source project I find interesting is opentsdb - http://opentsdb.net/index.html
18:27 sri java again
18:27 marcus yeah, it's written on top of hadoop :)
18:28 marcus or rather on top of hbase, which is on top of hadoop
18:28 sri riak-search is an erlang implementation of lucene :)
18:28 sri with automatic scaling
18:28 sri through riak
18:28 marcus sky was doing something similar to opentsdb
18:28 marcus but it seems like it has stalled - https://github.com/crucially/timesplicedb
18:28 sri never again java for me!
18:29 sri reminds me too much of my telco job a few years ago :S
18:29 sri time slice db *shudders*
18:29 s0va sri: what does fix in file asset class do?
18:29 rhaen btw - what about mod_perl - is it still usuable these days?
18:30 rhaen usable I mean.
18:30 marcus it's as unusable as it has always been :)
18:30 s0va sub add_chunk { return $self } or something like that
18:30 sri s0va: i did not fix anything there, still waiting for your test
18:30 Akron left #mojo
18:31 marcus sri: not done java in years either
18:31 marcus I guess I wouldn't mind using some well written service in it tho.
18:31 rhaen marcus: hm, I need something to configure like 20 webservers. So I thought to write a webinterface with mojolicious, store the configs in a db and use mod_perl to configure the webservers with it.
18:31 rhaen marcus: objections?
18:31 marcus I actually use xapian for search most of the time.
18:32 marcus Rhaen: first sensible use of mod perl I've heard in years.
18:32 rhaen ok, I'll take it as "no objections"
18:33 marcus I just don't use apache anymore:)
18:33 marcus I use nginx
18:34 rhaen ok, I am tied to apache with the company I am working for
18:34 marcus bondage inc?
18:34 rhaen They do some horrible stuff with tomcats in the back with it
18:34 marcus kinky
18:34 s0va rhaen: don't do that.
18:34 s0va use puppet
18:35 rhaen s0va: hm - we use puppet, howver it's a pain in the ass to do everything with config files
18:35 s0va rhaen: or share one configuration using svn or git.
18:35 rhaen s0va: like 400 domains, 2500 redirects
18:35 marcus should be fine if you split it up in per domain configs?
18:36 s0va rhaen: you can generate configuration using templates, just like with mojo
18:36 rhaen with puppet methodology its tied to the admins, with a web interface I can spill the work over to the helpdesk :)
18:36 s0va per-domain configs are MUST even if you host only two domains.
18:37 s0va hm, interesting...  but quite bound to break :)
18:37 rhaen like - if you want a redirect - go enter it yourself
18:37 s0va what are you trying to achieve?
18:37 rhaen I'd like an easier way to configure the 20 webservers in sync.
18:38 s0va mostly, i do sysadmin job...
18:38 rhaen Puppet can copy the data, can restart the servers, however, you still have to use apache syntax for it
18:38 s0va you just need configurations in sync? heh, simple solution: git directory + rsync to 20 hosts :)
18:38 marcus Rhaen: http://www.develobert.info/2007/12/da​tabase-storage-of-apache-virtual.html :)
18:38 rhaen configuring a vhost and redirects can be done be everyone - with a clever webinterface.
18:39 rhaen This could render the configs, use puppet to spill them across the servers
18:39 rhaen or - I could use mod_perl for the job.
18:39 s0va rhaen: then use mojo for parsing configurations and generating them, but don't use it for syncing machines.
18:39 s0va there are better ways to to do it in a more "traditional" and reliable way.
18:39 rhaen s0va: I would use mod_perl for reading the configs out of the database and configure the servers during startup times.
18:39 MojoGuest475 joined #mojo
18:39 MojoGuest475 From: http://www.networkedblogs.com/33Knp (25 hits)
18:40 MojoGuest839 joined #mojo
18:40 MojoGuest839 From: http://www.networkedblogs.com/33Knp (28 hits)
18:40 rhaen s0va: I suppose I have those guys in my team. Zillions of lines of config code - broken by around 10 people who are working on it daily
18:41 MojoGuest32 joined #mojo
18:41 MojoGuest32 From: http://www.networkedblogs.com/33Knp (29 hits)
18:41 MojoGuest32 left #mojo
18:41 rhaen s0va: using a templating is a must to ensure a high level of quality
18:41 s0va omg :)
18:41 s0va i agree :)
18:41 MojoGuest475 left #mojo
18:42 MojoGuest839 left #mojo
18:42 rhaen marcus: the link is not too bad :)
18:42 s0va but... if you already have puppet installed, you can:
18:42 marcus Rhaen: it's a start
18:42 MojoGuest541 joined #mojo
18:42 MojoGuest541 From: http://www.networkedblogs.com/33Knp (30 hits)
18:42 MojoGuest541 left #mojo
18:42 s0va create your own module, which reads redirects/aliases from database and renders template with it.
18:42 rhaen use the templating system of puppet - for the configs, but use Mojolicious::Lite to enter the data
18:43 rhaen excellent idea - I had it in a meeting today
18:43 rhaen still thinking of it. I like it :)
18:43 s0va :) this way you can leave distribution/reloading job to puppet
18:44 s0va and you can create shiny pimp-my-web2_0-web-interface with mojo
18:44 rhaen with ajax in place expanding
18:44 s0va ruby is weird in my opinion (i hate their syntax) but even more flexible than perl...
18:45 s0va no ajax, no fun :)
18:45 * rhaen drivels.
18:45 s0va i just created restful mojo webapp for monitoring/managing end-user iptv terminals ...
18:45 s0va it does really weird shit using Expect :)
18:46 MojoGuest847 joined #mojo
18:46 MojoGuest847 From: http://www.networkedblogs.com/33Knp (31 hits)
18:46 MojoGuest847 left #mojo
18:46 rhaen but I hate this erb stuff
18:46 rhaen can't they use YAML for config storage?
18:47 MojoGuest583 joined #mojo
18:47 MojoGuest583 From: http://www.networkedblogs.com/33Knp (32 hits)
18:47 s0va yaml... omg. someone should be killed for coming up with yaml.
18:47 s0va erb is just like mojo's ep templates.
18:47 MojoGuest583 left #mojo
18:47 s0va almost exactly the same.
18:47 und3f sri, thanks :) That a perfect now
18:48 marcus I suggest killing ingy.
18:48 MojoGuest913 joined #mojo
18:48 MojoGuest913 From: http://www.networkedblogs.com/33Knp (33 hits)
18:48 marcus he is somewhat to be blamed for YAML.
18:48 sri i kinda like yaml and haml
18:48 MojoGuest913 left #mojo
18:48 sri then again i hate yaml and haml too
18:48 marcus sri: I bet you like python too
18:48 s0va hehe :)
18:48 MojoGuest600 joined #mojo
18:48 MojoGuest600 From: http://www.networkedblogs.com/33Knp (34 hits)
18:49 MojoGuest600 left #mojo
18:49 sri same love/hate relationship i have with python ;p
18:49 s0va well, at least it DICTATES you the coding style sri prefers.
18:49 sri python lacks clean lambda support
18:49 s0va i will use python when it will allow me to use tabs as ident separators
18:49 sri big downside for me
18:50 s0va you mean, inline functions?
18:50 sri ye
18:50 s0va $sth = sub {} stuff?
18:50 marcus callbacks :)
18:50 und3f sri, found one more site with ipv6 record
18:50 und3f sri, ftp.freebsd.org
18:50 und3f sri, PTR record is set too
18:50 marcus obj-c blocks for life!
18:50 sri und3f: might be a better test target :)
18:50 und3f much better, i guess
18:50 marcus irc.freenode.net has a ipv6 record too
18:51 rhaen yeah - writing YAML from Mojo is fine with me.
18:51 marcus actually, it has like 4
18:51 marcus chat.freenode.net has IPv6 address 2001:19f0:feee::dead:beef:cafe
18:51 rhaen we need a data model for it.
18:51 sri lol
18:52 sri no PTR record though
18:52 rhaen ok, I need to make dinner for the family
18:52 rhaen see you later.
18:53 marcus am not seeing ptr for 2001:6c8:2:600::132 either
18:54 sri same
18:54 sri und3f: what address?
18:55 marcus how come the ftp freebsd.org addresses has an empty field?
18:55 marcus like 2::e ?
18:55 marcus (sorry, am pretty ignorant about ipv6)
18:55 und3f sri, http://check-host.net/check?d​ns=1&amp;host=ftp.freebsd.org
18:55 und3f or what you asked?
18:56 sri und3f: doesn't work
18:56 sri no PTR
18:56 und3f sri, http://pastebin.ca/1992459
18:58 sri oh, freebsd.isc.org
18:58 marcus uhm, freebsd.isc.org != ftp.freebsd.org :)
18:59 polvo left #mojo
18:59 marcus I guess I'm too stupid for ipv6
19:00 GitHub141 joined #mojo
19:00 GitHub141 mojo: master Sebastian Riedel * 3be1cc7 (3 files in 3 dirs): improved resolver tests - http://bit.ly/asEU8q
19:00 GitHub141 left #mojo
19:00 sri marcus: you're not alone :S
19:01 sri s0va: btw. basically everything in mojolicious supports ipv6 (resolver and stuff) it is just the low level socket api that needs a few changes (10 lines in the end or so)
19:02 sri once an xs module is sane enough we can easily bring it back
19:02 sri or possibly with perl 5.14
19:03 sri 5.12 sadly only gives up inet_pton
19:08 sri und3f: mind if i tweet check-host.net?
19:08 und3f sri, that would be cool
19:18 perlrocks Twitter: "Here's a fun and useful #mojolicious application for checking your servers from different destinations. http://check-host.net #perl" --kraih http://twitter.com/kraih/status/4251968709074944
19:19 perlrocks Twitter: "RT @kraih: Here's a fun and useful #mojolicious application for checking your servers from different destinations. http://check-host.net ..." --und3f http://twitter.com/und3f/status/4252217259327488
19:20 JonChisciotte joined #mojo
19:24 s0va what about ipv6 glue module?
19:24 mrSln left #mojo
19:25 s0va nevermind... i've made some nasty stuff by doing if (ipv6) { something } else { else }; and it worked. I was using Socket6 by hand.
19:25 s0va well, i guess, you know better
19:25 perlrocks Twitter: "So #redhat enterprise linux 6 has been released, and it includes #perl 5.10.1, that means we can slowly move #mojolicious away from 5.8.7." --kraih http://twitter.com/kraih/status/4253768866594818
19:26 sri s0va: glue might work
19:26 sri since we use IO::Socket::INET exclusively for low level work
19:28 s0va oh fuck :)
19:28 s0va what about Net::INET6Glue::INET_is_INET6
19:29 sri might work
19:29 s0va but i totally agree with you... IO::Socket::INET and perl core itself should be ipv6 enabled.
19:30 s0va ... i don't know why this is such big problem. common, even python has this out-of-the-box.
19:30 sri sadly nobody is working on that, we can only hope
19:31 sri LeoNerd is working on getting the low level api ready, but he's too much of a perfectionist to add ipv6 support to IO::Socket::INET
19:31 s0va so idea to add them to perl core?
19:32 s0va omg, sometimes i really hate perl ...
19:33 s0va i hope, that mojo will return some perl reputation...
19:33 sri the problem is that nobody *really* needs ipv6 yet
19:33 s0va yeah...
19:33 otaviof joined #mojo
19:33 sri you can pretty much always expect an ipv4 fallback to work
19:34 s0va true...
19:34 sri well, once we need it, it will be back in mojolicious, and i don't care how ugly the code has to be then ;)
19:34 s0va i found mojo, while i was searching on cpan for better replacement of my POE based http server.
19:34 yko left #mojo
19:34 s0va i needed clean https and ipv6 support.
19:34 sri why ipv6?
19:34 s0va https and ipv6 worked on my server, but it was quite fat.
19:35 s0va i'm trying to move our server network to ipv6.
19:35 s0va before i *NEED* to do it.
19:36 JonChisciotte left #mojo
19:36 sri ah, i think IO::Socket::IP will be usable again soonish
19:36 sri adding support for it again shouldn't be hard
19:36 s0va our system monitoring software is written entirely in perl.
19:36 s0va no ipv6 support => no ipv6 at all
19:37 fhelmberger left #mojo
19:38 s0va hm, btw, is there a way to figure out client's ip address?
19:38 s0va i don't find it in api...
19:39 sri $tx->remote_address or so
19:40 s0va nice! X-Forwarded-For support...
19:40 s0va damn, it's already almost everything there
19:42 marcus except the mail system and coffe maker
19:42 s0va tell me about toad... what are you trying to achieve with it...
19:42 s0va yesterday someone said that it will be hot-redeployable appserver
19:43 s0va well, mojo is already hot redeployable... are you trying to do something like java servlet container where different java webapps run independently in the same process?
19:44 sri it's not "real" hot redeployable
19:45 sri that will be in one of my next commits with a new server
19:45 sri currently you can only reload the perl code
19:45 sri next incarnation will allow upgrading perl at runtime
19:45 s0va :))))
19:46 abra joined #mojo
19:46 sri not thought about servlet containers yet, not sure it's needed
19:46 marcus hmm
19:46 marcus looks like my mojo talk hasn't been accepted at LPW
19:46 sri :O
19:47 sri those bastards!
19:49 yko joined #mojo
19:50 fhelmberger joined #mojo
19:50 marcus no, I'm wrong
19:50 marcus I was looking at last year's lpw
19:51 marcus they haven't accepted any talks yet to this year's conference
19:51 marcus Submitted talks: 29
19:51 marcus Accepted talks: 0
19:54 s0va just note: i'm getting Subroutine Mojolicious::Controller::app redefined at /usr/local/lib/perl5/site_perl/5.10.0/Mojo/Base.pm line 85. in production mode after each request
19:54 s0va the same for :app and :tx
19:55 s0va i have only lite app
19:55 sri s0va: update mojolicious
19:56 s0va sri: just figured out: removing --reload from command line fixes the issue
19:58 meraxes joined #mojo
20:05 sri s0va: let me know if ipv6 glue works :)
20:09 abra left #mojo
20:10 sri holy shit
20:10 sri perl -MNet::INET6Glue ./script/mojo get http://[::1]
20:10 sri that just worked
20:11 y0j left #mojo
20:12 sri perl -MNet::INET6Glue ./script/mojo daemon --listen http://[::1]:3000
20:12 sri that too
20:15 s0va great :)))
20:16 s0va BEGIN { eval "use Net::INET6Glue"; }; should do the job then :)
20:22 tholen joined #mojo
20:23 fhelmberger left #mojo
20:24 perlrocks Twitter: "For those missing #ipv6 support in #mojolicious. #perl "perl -MNet::INET6Glue ./myapp.pl daemon --listen http://[::1]:3000"" --kraih http://twitter.com/kraih/status/4268585325166592
20:28 forwardever sri: you wrote that you will start moving #mojolicious away from 5.8.7., what does that mean, will Mojolicious soon no longer run on perl 5.8.7 at all?
20:28 sri forwardever: yes
20:29 sri all mainstream distros are now on 5.10.1
20:29 sri that means we can slowly leave 5.8 behind
20:30 sri there is lots to be gained, especially with the new regex engine
20:30 sri the // operator and given/when
20:30 DaTa i also love ~~
20:30 sri right smart match
20:31 sri i've not done anything with it yet :(
20:32 forwardever good to know, as Mojolicious will no longer be an option for quite a lot of projects (which only have access to Perl 5.8.8, like on most of todays standard webhosting accounts) :(
20:33 crab interesting.
20:33 sri who is still on 5.8.x?
20:33 DaTa i caught me recently doing $users=$dbi->selectcol_arrayref("select user from some_table"); if($user ~~ $users) { ... } instead of doing: select user from some_table where user = ? :)
20:33 crab my last 5.8.x machine went away last week.
20:34 sri forwardever: you do realize such hosting providers would be using outdated distros?
20:38 tempire joined #mojo
20:41 perlrocks Twitter: "There's now also a wiki recipe for #ipv6 in #mojolicious, enjoy. :) http://bit.ly/bdG9Wl #perl" --kraih http://twitter.com/kraih/status/4272775170629632
20:42 perlrocks Twitter: "RT @kraih -There's now also a wiki recipe for #ipv6 in #mojolicious, enjoy. :) http://bit.ly/bdG9Wl #perl" --jamieoliverusa http://twitter.com/jamieolive​rusa/status/4272953919275008
20:44 perlrocks Twitter: "#IPv6 repost RT @kraih -There's now also a wiki recipe for #ipv6 in #mojolicious, enjoy. :) http://bit.ly/bdG9Wl... http://bit.ly/9j9PLD" --IP_v6 http://twitter.com/IP_v6/status/4273431247847424
20:44 perlrocks Twitter: "#IPv6 repost There's now also a wiki recipe for #ipv6 in #mojolicious, enjoy. :) http://bit.ly/bdG9Wl #perl: The... http://bit.ly/cUwgQc" --IP_v6 http://twitter.com/IP_v6/status/4273432426446848
20:44 perlrocks Twitter: "#IPv6 repost For those missing #ipv6 support in #mojolicious. #perl "perl -MNet::INET6Glue ./myapp.pl daemon --l... http://bit.ly/buWXpC" --IP_v6 http://twitter.com/IP_v6/status/4273435937083392
20:44 sri :S
20:44 sri not gonna tag anything with ipv6 again...
20:46 tholen left #mojo
20:47 marcus :D
21:04 rhaen :)
21:04 y0j joined #mojo
21:08 kvorg left #mojo
21:09 ltriant joined #mojo
21:10 MojoGuest671 joined #mojo
21:10 MojoGuest671 From: http://www.google.com/search?aq=0&am​p;oq=html+5+irc&amp;sourceid=chrome&​amp;ie=UTF-8&amp;q=html5+irc+client (1 hits)
21:10 MojoGuest671 left #mojo
21:10 MojoGuest910 joined #mojo
21:10 MojoGuest910 From: http://www.google.com/search?aq=0&am​p;oq=html+5+irc&amp;sourceid=chrome&​amp;ie=UTF-8&amp;q=html5+irc+client (2 hits)
21:10 MojoGuest910 left #mojo
21:11 MojoGuest773 joined #mojo
21:11 MojoGuest773 From: http://www.google.com/search?aq=0&am​p;oq=html+5+irc&amp;sourceid=chrome&​amp;ie=UTF-8&amp;q=html5+irc+client (3 hits)
21:11 MojoGuest773 left #mojo
21:11 MojoGuest596 joined #mojo
21:11 MojoGuest596 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (12 hits)
21:11 MojoGuest596 left #mojo
21:13 otaviof left #mojo
21:16 sri :)
21:16 rhaen hm what's the best way to build a key/value store with complex data structures?
21:17 marcus http://bit.ly/5fJc
21:17 rhaen Store everything inside the value and parse it on access?
21:17 rhaen like a json document?
21:18 sri lol
21:18 rhaen YOU ARE A PIRATE!
21:22 kvorg joined #mojo
21:23 perlite_ joined #mojo
21:26 yko left #mojo
21:26 perlite left #mojo
21:26 perlite_ is now known as perlite
21:37 alnewkirk left #mojo
21:53 spleenjack joined #mojo
22:12 y0j left #mojo
22:22 memememomo_ is now known as memememomo
22:23 marcus <mst>
22:23 marcus marcus: is there an example of how to do chained-style subclass re-use with the routes dispatcher?
22:25 sri Oo
22:26 daviddelikat left #mojo
22:26 perlrocks Twitter: "It seems the latest IO::Socket::SSL release (1.34) breaks #mojolicious, this also explains all the recent windows testing problems. #perl" --kraih http://twitter.com/kraih/status/4299209826111488
22:26 sri i hate prereqs
22:30 rhaen right
22:30 rhaen unfortunatelly Strawberry ships with IO::Socket::SSL
22:31 rhaen the only solution for this might be to turn off the tests and mark it broken on win32
22:31 sri i'm not sure what's happening
22:31 marcus sri: http://nopaste.snit.ch/25647 some discussions from #catalyst-dev you might find interesting.
22:31 sri t/mojo/ioloop_tls.t passes
22:31 rhaen as I said - I tried to look into it - and failed
22:33 y0j joined #mojo
22:33 sri marcus: haha
22:33 rhaen sri: you are deep in love with mst, aren't you?
22:34 sri he's generally quite boring
22:35 tempire left #mojo
22:37 sri actually bridges are closer to rails filters than catalyst chained thingy
22:37 sri the idea was simply to move filters one level up
22:38 sri should be more visible in Mojolicious::Lite with "under"
22:38 sri which is a bridge internally
22:39 vel left #mojo
22:40 rhaen $self->bed
22:41 sri marcus: even though i've used chained to explain bridges to people coming from catalyst before
22:41 sri it is closer to rails
22:41 marcus yeah
22:41 marcus mst is very concerned with reusable controllers.
22:41 marcus and thinks a centralized router gets messy in bigger apps
22:42 sri inheriting routes from base classes is totally simple?
22:46 sri reusing application logic will always be a huge problem
22:46 sri i don't think it can be solved on the normal framework layer
22:47 sri you need something like drupal
22:47 sri with way more constraints
22:47 marcus maybe so
22:47 marcus what is that python thing again?
22:47 sri plone?
22:48 sri django?
22:48 sri django has mostly gone with embeddable applications
22:49 sri they are registered in a central router
22:49 marcus plone
22:49 marcus was the one I meant
22:49 sri ah
22:49 sri don't know much about it
22:49 marcus it's pretty high level
22:49 janus centralized router are the only _sane_ way in huge projects
22:49 janus *routers
22:50 spleenjack left #mojo
22:50 janus sorry to jump in, but some time ago i've asked for dynamic route changes for a reason ;)
22:51 marcus hehe
22:51 marcus I don't like huge projects :)
22:51 sri you are distracting me from fixing tls btw ;p
22:51 marcus they are usually unfocused.
22:51 janus hell yeah
22:52 janus thats why the flexibility is necessary in the first place ;)
22:53 janus small apps on a small common ground ftw!
22:53 janus well, can be whatever common ground... as long as the apps dont try to get the whole thing at once :>
22:54 marcus :)
22:54 marcus sri: this whole thing is distracting me from obj-c hacking and sleep
22:55 daviddelikat joined #mojo
22:55 sri obj-c snob
22:55 marcus it's actually quite painful
22:55 marcus doing http shit, wishing I had Mojo
22:56 sri :D
22:58 alnewkirk joined #mojo
22:58 janus embed perl?
22:58 sri MacRuby? ;p
22:59 marcus actually, this is iOS
22:59 marcus embedding perl would be ehm.. hard
23:00 marcus I guess I'm allowed to these days tho
23:01 sri oh shit
23:04 sri it was all my fault
23:04 sri somehow
23:05 sri hmm, wel
23:05 sri l
23:05 sri it worked with 1.33
23:05 sri maybe not entirely my fault :S
23:08 sri gonna make an emergency release
23:09 marcus sweet
23:09 marcus http://search.cpan.org/~drinchev​/CSS-LESSp-0.81/lib/CSS/LESSp.pm
23:10 GitHub8 joined #mojo
23:10 GitHub8 mojo: master Sebastian Riedel * 4552b30 (4 files in 4 dirs): fixed IO::Socket::SSL 1.34 compatibility - http://bit.ly/cDgHEv
23:10 GitHub8 left #mojo
23:10 sri someone please test on windows
23:10 sri so i can release
23:11 * marcus cowardly refuses
23:16 sri whatever, i'll release now!
23:21 perlrocks Twitter: "Released #mojolicious 0.999940 fixing IO::Socket::SSL 1.34 compatibility. #perl" --kraih http://twitter.com/kraih/status/4313038219907072
23:22 perlrocks Twitter: "This should also take care of the recent problems with strawberry #perl. #mojolicious" --kraih http://twitter.com/kraih/status/4313330520952832
23:35 memememomo is now known as memememomo_
23:47 und3f bye
23:47 und3f is now known as und3f[A]

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