Camelia, the Perl 6 bug

IRC log for #mojo, 2011-01-22

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

All times shown according to UTC.

Time Nick Message
00:45 tempire_ left #mojo
01:16 GabrielVieira2 joined #mojo
01:22 GabrielVieira left #mojo
01:40 otaviof left #mojo
03:02 mobyu joined #mojo
03:44 mobyu left #mojo
04:04 tl joined #mojo
04:06 tholen42 left #mojo
04:21 GabrielVieira2 left #mojo
05:03 GabrielVieira joined #mojo
05:11 perlrocks Twitter: "Mojolicious watching something and I think it true that Perl users wish the same." (ja) --5_1_5 http://twitter.com/5_1_5/status/28681072132751360
06:02 jamesw joined #mojo
06:22 gabiruh left #mojo
06:22 gabiruh joined #mojo
06:58 perlrocks Twitter: "[Perl] [I made] Mojo + Skinny + Xslate made to create a template http://htn.to/qNV5Hx Flavor" (ja) --shiba_yu36 http://twitter.com/shiba_yu​36/status/28708083630870528
07:19 kaare joined #mojo
07:23 Kulag left #mojo
07:23 Kulag joined #mojo
07:32 Kulag left #mojo
07:32 Kulag joined #mojo
07:43 Kulag left #mojo
07:43 kaare left #mojo
07:45 kaare joined #mojo
07:53 sherr left #mojo
07:56 sherr joined #mojo
07:56 Kulag joined #mojo
08:22 zakame left #mojo
08:27 zakame joined #mojo
09:02 perlrocks Twitter: "[Perl] Mojolicious http://htn.to/b2WCm4 change in the static file path" (ja) --shiba_yu36 http://twitter.com/shiba_yu​36/status/28739138702278657
09:06 avkhozov joined #mojo
09:17 perlrocks Twitter: "Mojolicious now moving far made in the original home" (ja) --shiba_yu36 http://twitter.com/shiba_yu​36/status/28742961684553729
09:26 fhelmber_ joined #mojo
10:09 non joined #mojo
10:43 marcus good morning sunshines
10:57 mobyu joined #mojo
11:02 yko im not sushi!
11:02 yko oh.. you mean sunshines :)
11:05 marcus that's what I wrote
11:05 marcus now eat it up, bitch!
11:06 marcus we have a sushi restaurant just outside our office
11:06 yko working on holy saturday?
11:07 marcus is it holy_
11:07 marcus and yes
11:07 yko depends on religion :D
11:07 marcus hacking on Mojolicious:Plugin::TtRenderer actually
11:07 marcus I'm an atheist.
11:08 yko me too, but if i can have two addictional day off a week ill became christian jew
11:09 marcus :D
11:09 marcus as long as I don't need to go to the mosque.
11:12 yko ehm, i havent tell a word about islam :p
11:13 marcus was an attempt at humor. I see now that it was an utter failure
11:14 crab blah. i don't like MojoX::Validator
11:16 yko why so?
11:43 yakudzo marcus, why U like Mojolicious:Plugin::TtRenderer so much ? Any + - in front of EpRenderer ?
11:44 marcus yakudzo: I don't like the tt renderer so much
11:44 marcus but I do like TT
11:44 marcus yakudzo: it's mini language vs perl
11:44 marcus My designers are used to writing TT, and it's easy for them. Perl, not so much
11:45 marcus but the tt renderer is a bit of a second class citizen in mojoworld atm
11:45 MisterHatt no love for haml?
11:45 yakudzo understood, yes thats why I asked.
11:46 marcus MisterHatt: have been trying out the haml renderer a bit in another project
11:46 MisterHatt how's it working out?
11:46 marcus it's ok, but the perl implementation has some issues
11:46 yakudzo but I thought maybe TtRenderer works fa
11:47 marcus yakudzo: Am trying to improve the TT renderer atm
11:47 MisterHatt that's what everyone seems to say about it
11:47 MisterHatt haven't tried it myself yet though, only just got into mojolicious::lite the other day even
11:47 yakudzo cool (:
11:48 marcus MisterHatt:  #{h quality}
11:48 yakudzo MisterHatt, wellcome to world of superfast serverside web development (;
11:48 marcus this is an issue
11:48 marcus ruby interpolation
11:49 MisterHatt yakudzo: I knocked up a copy of my company's website in lite in about half an hour, I'd say it's pretty awesome
11:49 MisterHatt marcus: #{h quality}?
11:49 marcus MisterHatt:  http://search.cpan.org/~vti/Text-Haml-0.99​0104/lib/Text/Haml.pm#String_interpolation
11:49 marcus works for the simple case
11:49 yakudzo MisterHatt, share to the world your knowledge (;
11:50 marcus but #{user.baz} is a no go
11:50 MisterHatt ah right
11:50 marcus and #{user{baz}} is a syntax error =)
12:07 mobyu left #mojo
12:07 * marcus bleads from the eyes from reading TT source code
12:21 marcus <3 cake
12:24 mobyu joined #mojo
12:25 mobyu left #mojo
12:25 mobyu joined #mojo
12:45 marcus http://nordaaker.com/docs/skitc​h/Exception-20110122-134506.jpg
12:45 marcus getting there
12:45 purl getting there is the problem. or half the fun
12:45 arthas left #mojo
12:47 mobyu left #mojo
12:59 stephan48 i need a mojo app to deliver files to users(via a apache2 frontend server) is SendFile a sensible way to do that?
13:00 stephan48 or are there maybe other ways or should i rather deploy the app into a modperl authenhandler or such stuff?
13:04 otaviof joined #mojo
13:09 stephan48 basically i need to do some mappings like, a token to filename and check if this token still is useable(via timestamp or user ip or such things), and some auth checks, but i want to still use the apache2 capabilities to deliver files rather then implement them myself..
13:15 yko marcus: lol
13:50 marcus sri: Has the way inline templates work changed recently?
13:50 marcus the TT test for inline is failing for me.
13:51 marcus Sat Jan 22 14:47:32 2011 debug Mojo::Server:48 [58536]: Waiting for delayed response, forgot to render or resume?
13:51 marcus but there is a render call in the lite app callback
14:09 perlrocks Twitter: "Mojolicious Web Framework - Perl Join the revolution!: Http://mojolicio.us/" (it) --gabrielefarinel http://twitter.com/gabrielefar​inel/status/28816565801590785
14:12 DaTa stephan48: that's what sendfile is for imho :)
14:15 otaviof left #mojo
14:15 otaviof joined #mojo
14:16 otaviof left #mojo
14:17 otaviof joined #mojo
14:19 otaviof left #mojo
14:38 sri marcus: nope, don't think it has changed
14:39 sri marcus: make sure to tweet the screenshot!
15:35 y0j left #mojo
15:41 y0j joined #mojo
15:48 HSlayer joined #mojo
16:08 marcus sri: so not seeing anything obviously wrong with get '/inline' => sub { shift->render(inline => '[% 1 + 1 %]', handler => 'tt') };
16:08 marcus ?
16:08 sri nope
16:09 perlrocks Twitter: "A little saturday hacking on the Mojolicious TT renderer to bring it up to date with the latest features. http://t.co/CWRgghc" --nordmarcus http://twitter.com/nordmarc​us/status/28846828283764739
16:11 marcus osx case insensitivity sucks:  mBook:Mojo marcus$ perldoc -l Mojo -> /Users/marcus/perl5/perlbrew​/perls/perl-5.10.1/bin/Mojo
16:11 sri yes it does
16:11 sri and don't get me strated on those damn resource fork files...
16:12 marcus mhm
16:13 marcus totalfinder has some features to avoid them tho - http://nordaaker.com/docs/skitch/Fin​der_Preferences-20110122-171311.jpg
16:14 avkhozov left #mojo
16:14 marcus I actually paid for totalfinder. It makes finder useful
16:18 marcus wow
16:18 marcus http://blog.programmableweb.com/2011/01/21/wo​lfram-alpha-api-now-free-and-open-to-all/?utm​_source=feedburner&amp;utm_medium=feed&amp;ut​m_campaign=Feed:+ProgrammableWeb+(Programmabl​eWeb:+Blog)&amp;utm_content=Google+Reader
16:18 marcus really should do something awesome with mojolicious and that!
16:18 marcus wolfram++
16:21 marcus wow, just noticed something nasty in TT renderer
16:21 marcus my $inline = $c->{stash}->{inline};
16:21 sri no delete?
16:21 marcus and accessing $c->{stash} directly
16:21 sri ooh
16:21 sri not good at all
16:27 marcus hmm, seems the renderer is deleting inline from stash. Guess I should check the renderer for inline rather than stash
16:27 * sri is a little confused today
16:27 sri of course the renderer handles that :S
16:28 marcus guess that changed at some point
16:28 sri you get everything via the hash argument thingy
16:28 sri could be, inline not getting deleted would have been a serious bug
16:28 marcus my ($self, $renderer, $c, $output, $options) = @_;
16:29 sri it's all in $options
16:29 marcus right
16:31 marcus yepp, fixed inline. one failure to go
16:32 marcus something returning test123456
16:34 marcus ooooh
16:34 marcus this test expects templates in data to override external templates
16:34 marcus silly
16:37 marcus all tests pass. \o/ dinner
16:37 sri \o/
16:37 * sri orders pizza
16:38 marcus salmon for dinner here
16:38 marcus and white wine
16:39 * sri is not a wine fan
16:39 sri but "guten appetit"
16:46 avkhozov joined #mojo
16:54 marcus done!
16:54 marcus Not a big wine guy myself, but white wine to fish is allright.
16:55 Obkulas joined #mojo
17:07 Obkulas join #catalyst
17:07 Obkulas left #mojo
17:11 perlrocks Twitter: "Anyway Mojolicious:: Lite and DBIx:: Simple SQLite and was a combination of things. Did not expect to take so long" (ja) --polaroidoon http://twitter.com/polaroido​on/status/28862320000114688
17:42 sri marcus: can you rename the distribution to Mojolicious::Plugin::Something?
17:43 sri the whole MojoX thing needs to die i think
17:43 marcus sri: It's ask's distribution
17:43 marcus sri: I don't have cpan privs. I just sent him a pull requet
17:43 marcus request
17:43 sri hmm
17:45 sri :S
17:45 sri judging by the open pull requests he doesn't seem very interested
17:47 sri next time someone complains about it not being a first class citizen i'm going to ask them to fork it
17:48 sri i still remember how hard it was for vti to get patches applied
17:48 marcus sri: he mailed me about some test failures 29/12
17:48 marcus not that long ago
17:48 marcus Looks like one of the tests you added back in March is failing now.   Do you have time to have a look?  (I'm severely time constrained this month and next),
17:49 sri which tests did i add?
17:50 sri or was that a quote?
17:50 marcus that's his mail to me.
17:50 marcus I've sent him another mail now and asked him to roll a release or to give me privileges
17:51 gabiruh left #mojo
18:00 gabiruh joined #mojo
18:04 yko sri: MojoX deprecated now?
18:04 sri for quite some time actually
18:05 yko so, all Mojolicious/Mojo related stuff like extensions goes to Mojolicious::/Mojo:: namespace?
18:05 yko that's ok
18:06 sri i just want plugins in the Mojolicious::Plugin namespace
18:09 yko correct me if i'm wrong, but Mojolicious::Plugin::TtRenderer is in Mojolicious::Plugin namespace, it's only renderer MojoX
18:09 sri yes, but the distribution is called MojoX::Something
18:10 yko ah. i get it
18:10 sri while in fact there is nothing Mojo about it
18:11 sri it's all an extension of Mojolicious
18:11 marcus but the renderer lives in MojoX?
18:11 sri nope
18:11 sri Mojolicious::Renderer for a long long time
18:11 marcus oh, right
18:12 marcus so you are saying MojoX::Renderer::TT should go away.
18:12 sri the name at least doesn't make much sense anymore
18:14 sri i guess having it in the distribution doesn't do much harm as long as it is not the main module
18:15 marty left #mojo
18:27 GitHub86 joined #mojo
18:27 GitHub86 mojo: master Sebastian Riedel * 14d2303 (1 files in 1 dirs): added recipe to cookbook - http://bit.ly/i0Vr01
18:27 GitHub86 left #mojo
18:30 sri should be a rather useful one :)
18:31 sri i actually have quite a lot client hacks flying around, maybe i should add one every day from now on
18:35 marcus good idea jeans
18:35 perlrocks Twitter: "Fun streaming request hack for the #mojolicious client you might not have seen yet. :) http://t.co/aVoaLL2 #perl" --kraih http://twitter.com/kraih/status/28883576997019648
18:37 marcus sri: what do you use a streaming request for?
18:37 sri i don't know
18:37 marcus :D
18:37 sri dynamically generated upload? :)
18:40 perlrocks Twitter: "Whats actually cool about these streaming client hacks is that they work exactly the same on the #mojolicious server side. ;) #perl" --kraih http://twitter.com/kraih/status/28884624809660416
18:42 sri we really need more mojolicious bloggers
18:42 sri you know the usual... "i love this"..."have a look at that"..."i've built this"
18:42 perlrocks Twitter: "What's cool about #mojolicious? You can tell the founder (@kraih) really enjoys what he's doing. It shows in the results." --obfuscurity http://twitter.com/obfuscuri​ty/status/28885246879469568
18:45 sri :)
18:46 marcus "What's cool about #mojolicious? You can tell the founder (@kraih) is really anally retentive. It shows in the results."
18:46 marcus :D
18:46 * marcus hides
18:49 * sri actually agrees that he can be quite pedantic at times
18:52 sri but with being pedantic comes a good eye for detail, it's all a tradeoff ;p
19:07 fhelmber_ left #mojo
19:08 fhelmber_ joined #mojo
19:09 fhelmber_ left #mojo
19:17 daviddelikat1 left #mojo
19:36 yko sri: is there any difference weaking original ref or copy? https://github.com/kraih/mojo/blob/mast​er/lib/Mojolicious/Routes/Match.pm#L20
19:39 yko i'm askin begause looks like i lost ->{_controller} after return $c->render_later
19:39 yko i suppose it's mostly my bug, just wondering from where start to search
19:40 sri yes there is a difference
19:40 sri the ref count gets incremented every time you copy a reference
19:40 yko thank you
19:41 sri http://mojolicio.us/perldoc?Scalar/Util "NOTE: Copying a weak reference creates a normal, strong, reference."
19:41 sri i actually don't know much about the implementation details
19:42 sri mostly just learned from trial and error :S
19:42 yko :)
19:46 tempire um
19:46 tempire doesn't perl 5 already have subroutine signatures?
19:48 sri with xs modules yes
19:49 sri http://search.cpan.org/~flora/si​gnatures-0.06/lib/signatures.pm # rather sleek solution
19:50 yko $SIG{__WARN__} = sub { if ($_[0] !~ /^(?:(?:Illegal character in prototype).....
19:50 perlrocks Twitter: "@ Memowe Unfortunately, your plugin probably Unicode Issues and shall also Mojolicious 1:02 no longer work. I ma bemühm but to fix" (de) --discordianfish http://twitter.com/discordian​fish/status/28902443228073984
19:51 sri it's a problem that really should be solved in core imo
19:51 yko sri++
19:51 yko i've experimented with prototypes last few days and found them terrible :(
19:51 fish__ fast and translates the tweets, nice ;)
19:51 sri "I ma bemühm but to fix"!
19:52 yko sir: that should be some de song? :)
19:52 fish__ and "Mojolicious 1:02" is nice too
19:52 sri sounds almost bavarian
19:52 fish__ dunno why it thinks to add a "ma" to it
19:52 fish__ "Ich bemüh ..." was the sentence
19:54 marcus Ah - my Mojolicious was too old, doh!   I had updated the dist.ini some time ago but not upgraded in my ~/perl5/.  I'll make a release the next 48 hours -- have to go get some snow now. :-)
19:54 sri "have to go get some snow now"?
19:54 sri is that slang? Oo
19:56 marcus I was wondering too
19:56 sri :)
19:56 chansen snow as in drugs? ;P
19:56 * marcus envisions ask with a white upper lip
19:57 marcus actually, I guess he's bearded
19:57 marcus Maybe he's going snowboarding or smth
19:58 chansen first snake poison and now snow, what will be next?
19:58 GabrielVieira left #mojo
19:59 marcus things go better with coke!
19:59 marcus (http://en.wikipedia.org/wiki/Coca-Cola_slogans)
20:00 sri "Three million a day"?
20:01 marcus I guess that's the number they sold in 1917?
20:01 avkhozov left #mojo
20:01 sri ah...boring
20:01 avkhozov joined #mojo
20:01 chansen lol
20:03 sri good old days when there was still real coke in coca cola
20:07 perlite_ joined #mojo
20:10 perlite left #mojo
20:10 perlite_ is now known as perlite
20:26 daviddelikat joined #mojo
20:31 fish__ damn encoding crap.. everytime i have issues with it, it is really a pain in the ass..
20:33 fish__ my terminal shows it right, iconv -t utf8 produced something which shows up right in my terminal. but if it put it in a file and convert it with markdown and output it via mojolicious, it shows crap
20:34 * tempire loves the 'use Mojo::Base -base' trick
20:34 tempire I wish there was a way to get perl to remove the prefix -
20:34 tempire some sort of $x switch.
20:36 fish__ using the post data recieved by mojo and write it to a file, it works. but i have no idea what encoding it is.. i only see, its broken when i try to read it on my terminal
20:36 fish__ probably some double-utf8 stuff
20:38 fish__ any idea in which encoding ÖÄÜöäüß is c4d6 f6dc fce4 0ddf 000a, i guess its to short for double-utf8
20:48 daviddelikat1 joined #mojo
20:48 alnewkirk left #mojo
20:51 fish__ strange
20:51 daviddelikat left #mojo
20:58 fish__ "if mojo is doing stuff, everything is fine" the only thing not working, is to have the file in a readable format on my terminal. if i output the POSTed data (via app->log) it shows up right, same for the rendered html. but right after it to a file, the file is encoding strange
20:58 fish__ after opening it with mojo slurp again, its fine
21:07 yko fish__: i think depends on open mode. like open $FILE, '<:utf8', 'filename'
21:08 GabrielVieira joined #mojo
21:10 yko anyway, i don't want to think about encodings stuff untill i bites my ass. i had enough of it :p
21:13 mibbot joined #mojo
21:14 fish__ yko: hehe, i absoluty know what you mean
21:14 tempire sri: didn't you try using IO::Socket::IP a while back?
21:14 fish__ well, i'll play around with <:utf8 is guess, thanks for the hint
21:14 tempire (in place of INET)
21:14 sri tempire: yea
21:15 tempire what was the problem?
21:15 sri leonerd insisted on an api that wasn't 100% compatible with IO::Socket::INET
21:15 sri so i decided to wait
21:15 tempire did that break ::Socket::SSL?
21:16 sri could be dunno
21:17 sri it was mostly about dns
21:17 sri we obviously don't care about that ;p
21:17 sri so it seemed better to just wait for ipv6 to go into the perl core
21:18 sri especially since https://github.com/kraih/mojo/w​iki/IPv6-support-in-Mojolicious just works
21:20 fish__ yko: yes, your right. with >:utf8 on write it works, but slurp seems to convert it to $whatever
21:20 avkhozov left #mojo
21:21 avkhozov joined #mojo
21:21 sri if anyone wants to make Mojo::IOLoop ready for full ipv6 support with perl 5.14 just go ahead and knock ourself out :)
21:21 sri *yourself
21:22 sri please don't knock me out :S
21:25 yko fish__: https://github.com/kraih/mojo/blob​/master/lib/Mojo/Asset/File.pm#L67 #note
21:28 fish__ yko: well.. thanks... still don't get why the file is utf8 but after i slurp() it, its not..
21:29 chansen sri: Net::INET6Glue isn't a solution, it's a hack!
21:29 sri chansen: which is all we need until ipv6 support hits core ;p
21:30 yko fish__: because slurp doesn't do so :\
21:30 chansen sri: blah, IPv6 support doesn't require 5.14
21:30 chansen you are just lazy ;P
21:30 sri because there's a hack already ;p
21:31 marcus fuck ipv6 with a shovel
21:31 marcus :D
21:31 sri !
21:31 marcus work on your full stack framework instead!
21:31 sri i've gone through like 4 iterations of ipv6 support in Mojo::IOLoop... it was not pretty... never again!
21:32 yko i got another 'snowman' codename meaning today, thanks marcus
21:33 sri in the end someone will hopefully just hack up IO::Socket::INET to do ipv6 transparently
21:33 sri and everything can "just work"
21:34 sri i really don't give a damn about correctness anymore ;p
21:34 chansen sri: FFS implement IPv6 support by your self (doable) in you full stack non IPv6 framework ;P
21:34 sri ipv6 in perl has caused me so much pain
21:34 chansen ;)
21:35 sri btw. none of my wlan routers does ipv6 yet -.-
21:36 marcus yko:  Yeah, I'd like to do some cocaine. I'd like to do a drug that makes my penis small, makes my nose bleed, makes my heart explode, and sucks all my money out of the bank. Is that possible please!? I'd like to make this face all night! I'd like to sit in the bathroom and talk to a complete asshole stranger for seven hours on end. Is that possible please!? With no penis and a nose bleed! Where do I sign up!? Take my penis away! That was the
21:36 marcus worst part about the coke, man, was being in that bathroom with that stranger at the end of the night. Wasn't it, huh? Talking about shit like solving the world's problems and the only reason you're in there is because he has the coke. That should have been a fucking sign, don't ya think? I mean if Hitler had coke, there'd be Jews in the bathroom going, "I know you didn't do it. *snort* I like your mustache. *snort* Fucking Himmler. *snort*"
21:39 yko Who is Denis Leary?
21:39 purl Denis Leary is making it with liz!
21:39 sri sign me up!
21:40 marcus yko: denis leary is awesome!
21:41 mibbot left #mojo
21:47 chansen whatever you do don't by a sonicwall router as I did (all of my lan is ready for IPv6 except the fucking router)
21:48 marcus chansen: is your isp ready for ipv6 too?
21:48 chansen yes
21:48 * marcus is hooked to the net through an airport extreme
21:48 * sri will prolly get something from apple too
21:48 marcus it seems to support ipv6 well
21:49 chansen it does, I have one too
21:49 marcus so what do you need the sonicwall for?
21:49 chansen I didn't trust it as a firewall
21:50 marcus k
21:50 marcus my nat rules are pretty simple
21:50 marcus just need a few big glaring holes in the nat :)
21:52 chansen I don't like unprotected holes ;P
21:53 * chansen anyway I have been promised by sales rep that my sonicwall will get support for IPv6 this year
21:54 chansen marcus: I also need a somewhat smart SIP alg
21:54 marcus chansen: fancy. We just use skype =)
21:54 * chansen has left PSTN for SIP
21:55 marcus chansen: you still have a cell phone tho?
21:56 chansen yeah, combined with a SIP client (Bria on iPhone)
22:06 chansen I switched from tele2 (swedish provider) since they forbid IP-telephony over 3G network to Telenor (norwegian provider)
22:07 marcus mhm
22:07 marcus I'm using a virtual provider on the telenor network.
22:07 avkhozov left #mojo
22:08 chansen I use Telenor exclusively here in Sweden, their network is fairly broad here
22:46 perlrocks Twitter: "Mojolicious:: Lite module not forget the spelling of the name" (ja) --lapis25 http://twitter.com/lapis25​/status/28946535748210689
22:50 snearch joined #mojo
23:44 kaare left #mojo
23:44 non left #mojo
23:54 fish__ yko: if slurp doesnt convert anything, we is the file in utf8 but the output of mojo is not?
23:56 sri fish__: how do you output those bytes?
23:59 fish__ sri: well, it runs through a plugin i still didnt understand completly.. i probably have to dig futher before asking smart questions about it ;)

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