Camelia, the Perl 6 bug

IRC log for #mojo, 2010-10-08

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

All times shown according to UTC.

Time Nick Message
00:03 spleenjack left #mojo
00:26 zamolxes left #mojo
00:26 zamolxes joined #mojo
01:11 polvo joined #mojo
01:26 ka2u left #mojo
01:26 ka2u joined #mojo
02:35 janus left #mojo
03:07 yakudzo joined #mojo
03:13 janus joined #mojo
03:40 fod left #mojo
04:03 tl joined #mojo
04:05 tholen42 left #mojo
04:32 sri left #mojo
04:40 sri joined #mojo
04:40 perlrocks joined #mojo
04:41 perlrocks left #mojo
04:41 perlrocks joined #mojo
05:16 sri yay, server upgrades, fresh new hardware
05:23 koban joined #mojo
05:30 marcus_ sri: no sleep tonight_
05:38 koban left #mojo
05:57 sri not much, need more coffee!
06:00 gabb lol
06:01 gabb what server upgrade? not hetzner, is it?
06:02 alnewkirk sri, new version, http://search.cpan.org/dist​/Scrappy-0.6/lib/Scrappy.pm
06:09 sri http://www.macrumors.com/2010/10/07​/microsoft-and-adobe-executives-mee​t-to-discuss-apple-possible-merger # :O
06:09 sri yea, upgrading all my older hetzner servers atm
06:09 sri some are like 5+ years old
06:18 kvorg i'll trade you my home server, evolved from february 1996. I think nothing but the box and some screws are original material since I had to deinstall the zip drive last month. :-P
06:24 kvorg left #mojo
06:28 ltriant left #mojo
06:49 marcus_ hah
06:49 marcus_ I remember zip drives
06:49 marcus_ from the 90s
07:11 tardisx left #mojo
07:28 gabb sri: new hetzner boxes are awesome :>
07:29 gabb had a 6+ years old box and now on the eq4 I have a hard time to generate load
07:32 koban joined #mojo
07:36 kvorg joined #mojo
07:42 ysyrota joined #mojo
07:47 Rhaen moin
08:00 alnewkirk left #mojo
08:03 gabb Dear god, please take me now
08:03 * gabb has to grade 70+ exams till end of day
08:04 marcus_ just randomize them and assign grades according to a bell curve
08:04 gabb lol, students have the right to peek into the graded/corrected exams and debate grading
08:05 gabb that would horribly backfire
08:07 marcus_ probably
08:08 marcus_ I guess giving them all As wouldn't work either.
08:08 marcus_ seems you're screwed, my friend.
08:09 gabb I wish they would have only given them multiple-choice ;((
08:09 gabb grading UML diagrams is so retarded
08:09 marcus_ mm
08:10 * gabb will ask the students next year to create UML class and activity diagrams for mojo :>
08:10 alnewkirk joined #mojo
08:12 marcus_ aiee
08:12 marcus_ UML should have died in the 90s
08:13 gabb then half the indian coding industry would die off
08:13 marcus_ I don't see the downside
08:13 gabb me neither :P
08:15 gabb dawww ... I love the bad students, handing in empty exams, less work for me
08:15 gabb wish I could reward them
08:15 * gabb writes down a fail nonetheless
08:27 marcus_ add a smiley ;)
08:27 vti http://redis.io/logocontest/index.php?desc # 10028 votes!
08:27 marcus_ 10029 now
08:28 vti somebody wrote a script? :)
08:28 gabb ye it jumped yesterday from 20 to 10020
08:28 gabb so only 8 new votes over night
08:29 tardisx joined #mojo
08:57 kvorg i just happened to have Mojo::DOM and XML::Twig pods side by side: giggles
08:58 kvorg so, any recommendations on how to try and use partial rendering to incrementaly output something to a dumb html client (with no js)?
08:59 kvorg i can count on time or user-triggered reloads, nothing else
09:05 perlrocks Twitter: "Mojolicious the daemon I use it in production but I" (ja) --memememomo http://twitter.com/memememomo/status/26731552899
09:07 gabb Mojoliciousのdaemonって本番でも使ってもいいのね hmmm
09:08 gabb auto translated?
09:12 spleenjack joined #mojo
09:12 marcus_ yes
09:18 gabb neato
09:42 gabb awesome, some student gave the actors in a UML use case diagram various 4chan smiley faces
09:42 gabb BONUSPOINTS
09:45 yakudzo does Mojo::DOM understand utf-8?? when I try replace_inner() with russian letters it puts nothing to value of node
09:49 yakudzo if I put there russian and latin leters it again puts nothing to value.
09:50 gabb write test case -> get fix :)
09:50 yakudzo (:
09:51 yakudzo where to post test cases ?
09:51 gabb dunno what sri prefers, but any nopaste service should do, just keep em simple-stupid
10:02 kvorg left #mojo
10:09 kvorg joined #mojo
10:15 perlrocks Twitter: "in the process of crossing my widely known framework Liza with a slightly lesser-known frameworks Mojolicious get something like Mojoliziouz" (ru) --skaurus http://twitter.com/skaurus/status/26735103066
10:19 yakudzo widely known???
10:19 alnewkirk left #mojo
10:22 vti i guess it's a joke
11:01 yakudzo sri, http://paste.scsys.co.uk/52688
11:02 yakudzo is that paste will be ok for test case ?
11:02 kvorg left #mojo
11:06 jawnsy left #mojo
11:13 ltriant joined #mojo
11:14 jawnsy joined #mojo
11:21 yakudzo left #mojo
11:24 GabrielVieira2 joined #mojo
11:29 GabrielVieira left #mojo
11:29 kvorg joined #mojo
11:36 perlrocks Twitter: "Catalyst is turning quite inflexible and requiring many a hoop to be jumped in order to do something simple. Time to look at Mojolicious" --perlninja http://twitter.com/perlninja/status/26739891955
11:37 gabb hoho
11:40 zamolxes sri: so how do you handle forms?
11:54 skaurus joined #mojo
11:54 skaurus Good day everyone!
11:55 skaurus The question is - how to know route name in method?
11:56 skaurus It was asked before, I know...
11:57 skaurus To be more precise, I need to know route name in bridge
12:00 gabb dont routes have an attribute like ->description ?
12:01 skaurus routes have method ->name('smth') if you talking about that
12:01 skaurus but how to get current route in method? I know only about how to take current url; I want to check that it url gets routed by right route
12:04 gabb So you want to know the route that invoked a certain method?
12:05 skaurus Like that...
12:05 skaurus actually it's not method but bridge and that bridge used for few routes :)
12:05 gabb does to_string work for you ?
12:05 skaurus called on what?
12:05 gabb on your $r
12:06 skaurus Em, you mean first param of method?
12:06 gabb yes
12:07 skaurus ok, thanks, I'll try it now...
12:07 gabb if thats not what you are after, you may need to wait for a qualified person to answer you, like sri, vti or marcus_ :)
12:07 skaurus Can't locate object method "to_string" via package "Mojolicious::Controller"
12:08 gabb I only started with mojo myself a few days ago :S
12:08 skaurus ^)
12:08 gabb hmmm, I was under the impression that you get $r, then $c and so on
12:08 gabb sriiiiii! :P
12:08 a|newkirk[assoc] joined #mojo
12:11 vti skaurus: https://gist.github.com/f648c5bbfbac96c20ee5
12:12 vti in controller $self->match->name
12:12 vti or better $self->match->endpoint->name
12:14 skaurus vti: thanks!! just figured out to use ->match, but then stopped again :) endpoint->name working fine!
12:14 skaurus so... here next question :)
12:15 skaurus ok, I'm in bridge and my route is '/:user_id', my url is '/0'
12:15 skaurus $self->param('user_id') and $self->stash('user_id') doesn't work... Where am I wrong?
12:15 skaurus doesn't work means that they return undef instead of zero
12:16 vti have you tried using something else besides a zero?
12:16 skaurus nope, but I really need zero) Will try 1 now
12:16 vti try it, could be a bug
12:17 skaurus nope, 1 doesn't show up too
12:20 vti i guess in bridge you don't have params yet, you could look into captures
12:21 vti but they are not unescaped
12:21 vti $c->match->captures
12:24 skaurus captures contains hashref with only key cb...
12:26 vti check $stash->{mojo.captures}
12:28 skaurus $self->stash don't have such key; it have keys mojo.started, mojo.params and cb
12:29 skaurus and there nothing like user_id...
12:29 vti try dumping $c object :)
12:30 skaurus ohmy :)
12:32 skaurus $self->{match}->{stack}->[1]->{user_id} is first occurence...
12:33 skaurus ... and last, besides the routes :)
12:33 skaurus soo, how to get this through api?)
12:35 vti $c->match->stack->[-1]->{user_id} :D
12:35 jamesw left #mojo
12:35 skaurus wow!)))
12:36 skaurus it's because I'm in bridge?)
12:37 vti i think sri will tell you 'feel free to fix it' :)
12:37 vti or there is a better way
12:37 skaurus "provide a failing test!" :)
12:37 skaurus thank you for helping :)
12:48 jamesw joined #mojo
12:59 skaurus yep, right, _walk_stack called after bridge...
13:21 kvorg left #mojo
13:42 skaurus oh, fuck
13:43 ltriant left #mojo
13:43 skaurus there are no way to additionally check params in routes?
13:43 skaurus like, route /:user_id, where user_id must be digits
13:43 vti there is
13:44 skaurus looks like I'm not able to find it in Routing.pod... one more try...
13:44 skaurus ah, here it is! :)
13:45 vti More Restrictive Placeholders
13:45 skaurus yeah
13:45 skaurus looks like I'm able to fully convert from my old self-written framework to Mojo, cool!
13:46 skaurus quite transparently
13:46 vti Liza?
13:47 skaurus :))) how do you know?) twitter?)
13:47 vti everybody knows about liza
13:47 vti it's more popular than mojolicious :)
13:47 marcus_ pravda
13:47 vti even more popular as catalyst
13:47 vti s/as/than/
13:48 skaurus it's quite frightening, guys!
13:48 skaurus you make me creepy
13:48 vti google uses it in production
13:48 marcus_ skaurus: are you using a translator? ;)
13:48 skaurus :D
13:48 skaurus marcus_: no, I writing English directly from my mind... not perfect, I know
13:49 skaurus and Liza should be Lisa, yeah)
13:49 vti skaurus: without typing? oO
13:49 marcus_ skaurus: sweet trick
13:49 marcus_ skaurus: you make me creepy does not mean what you think it does =)
13:50 skaurus vti: yep. Actually I'm a brain directly connected to hardware
13:50 skaurus loosy one
13:50 marcus_ he must be related to sri
13:51 vti his son maybe
13:51 vti assembled on the back yard
13:51 skaurus also maybe my real name is Luck...
13:52 skaurus I meant Luke
13:52 vti lucky luke :)
13:52 marcus_ I was thinking skywalker
13:54 perlrocks Twitter: "I sit on the IRC-channel Mojolicious, do Modzholizu, and then ... http://clip2net.com/clip/m71​02/1286545702-clip-12kb.png Well this is fucked up!" (ru) --skaurus http://twitter.com/skaurus/status/26750895273
13:54 skaurus ...
13:55 skaurus :D
13:55 vti we follow you
13:57 skaurus Well I have such a good laugh very long time ago :)
13:57 skaurus quite impressive that bod do a translate, via Google translate I presume
13:58 skaurus *bot
13:58 vti ye, sri wrote it
14:00 skaurus it's cool to have such a father
14:00 fish_ http://thedailywtf.com/Articles/Stupid​-Coding-Tricks-The-TSQL-Madlebrot.aspx <- nice one :)
14:16 koban left #mojo
14:31 skaurus anyone have receipt for redirect warn messages into log? setting $SIG{'__WARN__'} = sub { $self->log(@_) }; in startup sub makes my app to stop rendering pages...
14:31 zamolxes using ::Lite, how can I dispatch / to public/index.html ? it's just  a static html
14:31 skaurus I think use of $self inside %SIG is bad idea too
14:32 skaurus zamolxes: are you using built-in server without apache or nginx?
14:34 und3f[A] is now known as und3f
14:42 zamolxes skaurus: yes.
14:42 zamolxes skaurus: will have varnish in front to cache everything except the only dinamic request (that returns a json)
14:42 zamolxes well, also the json, but it will probably have a low hit/miss ratio :)
14:43 zamolxes skaurus: if it's not possible, it takes 30 seconds to create a route + a template , but looks ugly
14:43 skaurus can't you config varnish in such a way that requests to / routes to static?
14:43 skaurus both apache and nginx able to do that
14:44 kvorg joined #mojo
14:44 zamolxes i just need to rewrite /index.html to / :)
14:44 zamolxes sure i can do that but meh
14:44 zamolxes okay
14:45 skaurus :) better do that in something C-ish, not Perl-ish :)
14:45 zamolxes doesn't matter, it will be cached after the first req anyway
14:52 doubi joined #mojo
14:56 skaurus redirect warn messages into mojo log, anyone?
15:06 Rhaen huh?
15:06 Rhaen use Mojo::Log for it.
15:06 Rhaen which should be app->log->warn("my message);
15:06 Rhaen from the inside of your mojolicious app
15:07 Rhaen skaurus: does that help
15:07 Rhaen ?
15:08 skaurus well, I have quite a lot of legacy (procedural) code which uses warns and dies. So I'll prefer to not fix all that, just want all those old warn's to warn into log.
15:08 vti i think they are already there
15:09 skaurus nope, it warns in shell under which daemon started
15:13 Rhaen ok, here is something ...well..why don't you use local to overwrite warn?
15:14 skaurus local $SIG{'__WARN__'} ?
15:14 Rhaen yeah, I know - that's bad, but why not :)
15:14 Rhaen yup.
15:15 Rhaen I am not sure if it works that way, lemme check :)
15:15 skaurus well, do that in startup sub in main lib; it's don't stop rendering, as without local :) But warn's, at least in bridge, still goes to shell
15:15 skaurus maybe it too local :)
15:16 sri HAI
15:16 Rhaen hahahahahaaa!
15:16 sri vti: not a bug
15:16 Rhaen HAI SOCIETY!
15:16 skaurus sri: hi :)
15:17 skaurus so this local $SIG{'__WARN__'} = sub { $self->log(@_) }; = doesn/t work as I hope...
15:17 vti sri: by a bug i meant when it would work with 1, but not with 0 ;p
15:17 Rhaen ok, that would have been my choice.
15:17 skaurus sri: how to redirect all warn's into mojo log? :)
15:17 sri someone should tell yakudzo to use utf8
15:17 vti sri: we found your son
15:18 sri vti: which one?
15:18 skaurus oh shi~... ))
15:18 skaurus :D :D
15:18 Rhaen perl <yourmojostuff> | tee -a <development/yourmojostuff.log> 2>&1
15:18 vti sri: read logs ;p
15:18 sri skaurus: i have no idea, possibly redirect stderr to the log handle
15:19 skaurus Rhaen: well... why not?!) thanks :)
15:19 Rhaen omg.
15:19 Rhaen :)
15:20 skaurus sri: right, maybe this is the only solution :)
15:20 sri you guys are talking too much...
15:22 sri lets all relax for a bit and enjoy this moment of silence
15:25 sri ok thats enough
15:25 sri yay big bang theory is back!
15:43 fhelmber_ joined #mojo
15:52 dotan joined #mojo
15:59 und3f is now known as und3f[A]
16:00 ysyrota left #mojo
16:03 und3f[A] is now known as und3f
16:05 fhelmber_ left #mojo
16:15 und3f is now known as und3f[A]
16:18 und3f[A] is now known as und3f
16:19 und3f is now known as und3f[A]
16:19 und3f[A] is now known as und3f
16:20 und3f is now known as und3f[A]
16:21 und3f[A] is now known as und3f
16:25 gabb big bang theory is TERRIBLE!
16:26 skaurus WHY ANYONE WOULD SAY SUCH A HORRIBLE LIE???
16:26 dotan left #mojo
16:26 doubi left #mojo
16:26 gabb Community, Rules of Engagement and so on are all waaay funnier
16:26 skaurus maybe you also don't like Doctor House???
16:27 gabb Cuddy: House, I got a patient for you
16:27 gabb House: Not interested
16:27 skaurus They fucking in that new season, you now
16:27 skaurus So it's all new
16:27 gabb Cuddy: her lungs are filled with blood and the liver is failing
16:27 gabb House: uh, interesting - its Lupus
16:27 gabb 40 min later
16:28 gabb House: oops, wasnt lupus, its X - the end
16:28 gabb that describes about every House episode :P
16:28 skaurus seriously, that was hell correct, but outdated already for a while
16:28 gabb ye I know :>
16:28 gabb last season was great
16:28 skaurus so... Burn the Heretic! and by Heretic I means you!))
16:28 gabb this one ... remains to be seen
16:29 gabb I miss 13 ;(((
16:29 skaurus true
16:30 sri :O
16:31 skaurus sri: btw, can you share your init.d script for Mojo?
16:31 skaurus I hope you have one)
16:32 sri using hypnotoad ;p
16:33 skaurus (((( i want too!
16:49 skaurus bye everyone
16:49 skaurus left #mojo
16:52 spleenjack left #mojo
17:00 sri http://tibleiz.net/asm-xml/index.html # lol
17:01 sri finally somebody who serious about optimization!
17:01 sri *+'s
17:02 dotan joined #mojo
17:02 meraxes left #mojo
17:07 meraxes joined #mojo
17:11 dotan left #mojo
17:22 Htbaa joined #mojo
18:15 a|newkirk[assoc] left #mojo
18:24 stephen joined #mojo
18:25 spleenjack joined #mojo
18:44 dotan joined #mojo
19:43 rhaen_ joined #mojo
19:48 Rhaen left #mojo
19:48 rhaen_ is now known as Rhaen
19:53 Rhaen hej!
19:53 Rhaen sri?
19:54 Rhaen hm, ok - leave me a /msg or something what you think about this idea:
19:55 Rhaen I played around with the github wiki and with Module::Build and I think I can provide an easy way to improve the wiki docs
19:55 Rhaen by checking, etc.
19:55 Rhaen There is a way to generate a doc module, too and I really would like to do that.
19:55 Rhaen Release a CPAN module as offline version of the wiki.
19:56 Rhaen I would like to look into it - I think that's great design
19:56 Rhaen and it web scales
19:56 Rhaen Mojolicious::Guides::Wiki as namespace
19:56 Rhaen any objections, applauds - anything?
20:00 Rhaen you'll install it and it scales right up
20:01 dotan left #mojo
20:08 dotan joined #mojo
20:12 kvorg Rhaen: it is friday night. except you and me, all sane people are out on beer.
20:12 doubi joined #mojo
20:12 kvorg and doubi.
20:12 * doubi nods vigorously
20:12 doubi ...wait, what?
20:13 kvorg exactly. thanks for supporting my point. ಠ_ಠ
20:13 * kvorg waves and heads out for ... wishful thinking.
20:27 dotan left #mojo
20:27 dotan joined #mojo
20:39 doubi left #mojo
20:53 GabrielVieira2 left #mojo
21:10 dotan left #mojo
21:15 doubi joined #mojo
21:22 dotan joined #mojo
21:31 dotan left #mojo
21:41 sri lol
21:42 sri Rhaen: first we need more content i guess ;)
22:36 Htbaa left #mojo
22:59 kvorg left #mojo
23:10 spleenjack left #mojo
23:18 alnewkirk joined #mojo
23:53 doubi Basic question: What kind of are you getting when you say my $self = shift; in reg'lar ol' controller actions?
23:54 doubi *What kind of object
23:58 GabrielVieira joined #mojo

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