Camelia, the Perl 6 bug

IRC log for #mojo, 2011-12-01

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

All times shown according to UTC.

Time Nick Message
00:04 MojoGuest175 joined #mojo
00:15 xaka is iowatcher->recurring(0 => ...) good way to run code on every loop iteration?
00:49 mercutioviz joined #mojo
01:14 bosphorus joined #mojo
01:17 gshank joined #mojo
01:25 Alias joined #mojo
01:38 j3nnn1 joined #mojo
02:22 MojoGuest811 joined #mojo
02:22 MojoGuest811 From: http://news.ycombinator.com/item?id=1277067 (163 hits)
02:22 MojoGuest365 joined #mojo
02:22 MojoGuest365 From: http://news.ycombinator.com/item?id=1277067 (164 hits)
02:49 mire joined #mojo
02:59 xaka joined #mojo
03:26 Alias left #mojo
03:36 MojoGuest901 joined #mojo
03:36 MojoGuest901 From: http://blog.kraih.com/perl-is-ready-for-html5 (43 hits)
03:51 jnap joined #mojo
05:35 ispy_ joined #mojo
05:36 MojoGuest282 joined #mojo
05:36 MojoGuest282 From: http://networkedblogs.com/33Knp (9 hits)
06:45 Vandal joined #mojo
06:50 koban joined #mojo
07:05 sugar joined #mojo
07:29 gabiruh joined #mojo
07:34 maluco joined #mojo
07:48 MojoGuest39 joined #mojo
07:48 MojoGuest39 From: http://www.google.com/url?sa=t&rct=j&a​mp;q=&esrc=s&source=web&cd=4&a​mp;ved=0CEYQFjAD&url=http%3A%2F%2Fdev.​xantus.org%2F&ei=OjHXTvIzipbZBZClqbYO&​amp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
08:07 xaka joined #mojo
08:15 bosphorus joined #mojo
08:24 * sri yawns
08:28 * marcus takes  a picture
08:44 batman joined #mojo
08:46 * tempire takes a picture of marcus yawning
08:47 * marcus eats tempire's camera
08:47 marcus tempire: GCI! Let's get subtitles for your screencasts?
08:47 * sri eats pancakes
08:48 tempire ?
08:48 tempire oh
08:48 tempire that might be neat
08:49 tempire would that actually be helpful?
08:49 tempire I guess for people with so-so english skillz
08:50 tempire should a code-in involve actual code, though?
08:51 heytrav joined #mojo
08:53 tempire would need to find an html5 video player that supports them
09:09 Quai hmf, when I start my mojo app with morbo, it says it is listening on 127.0.0.1:3000, but it is listening to *:3000
09:10 sri only in the human readable message, the log should say *:3000
09:10 Quai soo, Mojo::Server::Daemon prints the true listen to the log, but changes * to 127.0.0.1 before printing to stdout?
09:11 sri that's why it says "available" and not "listening"
09:12 Quai it made me think that my app was only accessible from localhost, so I have been running something faceing the interwebz without knowing it for weeks :P
09:13 Quai (I noticed when someone was running OpenVAS against it)
09:14 sri if i change the message to using *:3000 we'll have people complaining that their browsers refuse to connect to "http://*:3000"
09:14 Quai sri: I know :) It makes sense when you explain it, but it was confusing for me.
09:15 sri it's a vicious cycle!
09:18 user_3795 joined #mojo
09:24 Andrei666 joined #mojo
09:30 gabiruh joined #mojo
09:31 mike_ joined #mojo
09:35 maluco joined #mojo
09:40 judofyr joined #mojo
09:41 judofyr sri: can a route add conditions to params in a parent route? $f = $r->bridge('/folder/:id'); $f->route('/', id => qr/\d+/); $f->route('/')?
09:42 judofyr I guess not…
09:46 judofyr sri: an easy way to do internal redirects?
09:46 berov joined #mojo
09:47 judofyr sri: in that case I could do: $f->route('/')->to(sub { if /\d+/; somewhere; else; somewhere_else })
09:47 judofyr (if you ignore my crappy pseudo code
09:58 judofyr sri: let me put it another way: I want to have a bridge: $f=$r->bridge('/foo/:id')->to('foo#load'), but I want $f->route('/', id => qr/\d+/)->to('foo#bar') and $f->route('/')->to('bar#foo') (note that it's in another controller)
10:07 crab judofyr: there's no way to do internal redirects
10:09 crab can you do $f = $r->waypoint('/foo')->to('bar#foo'); $f->route('/:id', id => qr/\d+/)->to('foo#bar'); $f->route('/:id')->to('foo#load')?
10:11 judofyr crab: the thing is, I want to do $a=$f->bridge('/')->to('folder#login_required') and then $a->route('/edit')
10:11 d4rkie joined #mojo
10:11 judofyr crab: and those routes should work on both types of routes
10:13 crab make two bridges
10:13 crab one to enforce login required
10:14 crab and one under that the way i said
10:15 judofyr crab: and what about comment, tag and untag? two sets of routes?
10:16 spleenjack joined #mojo
10:17 crab i'm not sure i understand
10:17 crab can you tell me what set of URLs you're writing routes for?
10:18 judofyr crab: I want /foo/:id/comment to *always* go to foo#comment
10:18 judofyr crab: yeah, I think that would be helpful for myself too
10:19 judofyr crab: http://pastie.org/private/pohip8cwtaptmefxj4rg
10:20 judofyr crab: yes, I know it's a crappy set of routes :)
10:20 judofyr I hate them
10:20 judofyr but that's the way they are :(
10:21 koban joined #mojo
10:21 judofyr crab: folder#load is a bridge callback
10:24 judofyr crab: do you see a simple solution? other than re-blessing $self to Museum and running $self->folder?
10:29 crab judofyr: the way i handle the closest equivalent in my application is this:
10:30 crab (i don't do by-name loads, so i'll come back to that)
10:30 crab $f = $r->waypoint('/foo/:id')->to('foo#load');
10:30 crab $f->route('/comment')->to('foo#comment');
10:31 crab $f->route('/blah')->to('whatever#blah');
10:31 crab where foo#load takes the id (or name, in your case) and loads it up into the stash
10:32 crab your folder#view vs. museum#folder problem is something i haven't solved before. /me thinks a bit
10:33 crab i think: bridge('/foo/:name')->to('foo#load'), ->route('/')->to('museum#folder'), ->route('/comments')->to('folder#comments')
10:34 crab and separately for /foo/:id (but teach foo#load to load the foo by either id or name, whichever is in the stash)
10:35 crab have i explained myself clearly enough?
10:35 judofyr crab: but /foo/1 should never go to museum#folder
10:36 crab right
10:36 crab and it won't, because in the /foo/:id route, you'll send it to folder#view
10:37 crab so if you set the regexps for :name and :id appropriately... oh damn, that won't work.
10:37 judofyr :)
10:38 crab actually, i'm not sure it won't work. let me see.
10:38 judofyr crab: actually, /foo/name (and /foo/name/comment) doesn't *have* to go through folder#load.
10:39 judofyr it's okay whether it does it or not
10:40 crab it seems to work
10:40 crab so you can do it that way.
10:42 judofyr crab: does /foo/1/comment work?
10:42 crab yep.
10:43 judofyr crab: could you paste a short example? not sure if I quite get it.
10:44 crab http://hastebin.com/XoV9SmoDyC.pl
10:45 crab (god, why is this thing so green?)
10:45 judofyr crab: oh, but that's duplicate routes :/
10:45 judofyr which I wanted to avoid
10:45 judofyr crab: the /comments
10:46 crab why?
10:46 crab and by duplicate do you mean multiple URLs ending up at the same controller#action?
10:47 crab when i first started using mojo, i used to work very hard to avoid it, but i decided that it wasn't worth it.
10:47 judofyr crab: I don't want four "->get('/comments')->to('foo#comments')"
10:47 judofyr comments, tag, untag etc.
10:47 crab do you absolutely have to support all those things by name?
10:48 judofyr yes :)
10:48 crab you're not going to turn an ugly requirement beautiful by plastering duct tape on it
10:48 judofyr true
10:49 crab either your id vs. name recognition will be ugly, or this will
10:49 sri you can always add shortcuts to make repetetive routes pretty
10:50 sri (not that i've followed the discussion, just a general observation)
10:50 crab $a->ugly();
10:50 sri !
10:50 judofyr sri: simplest way to achieve this: http://pastie.org/private/pohip8cwtaptmefxj4rg :)
10:51 sri not in the right mindset to solve wild routing problems, i'll pass ;p
10:52 judofyr sri: would it be possible to support $f=$r->bridge('/folder/:id'); $f->route('/', id => qr/\d+/); $f->route('/') ?
10:52 sri absolutely not
10:52 judofyr :(
10:53 sri but seriously
10:53 purl is that for real?
10:53 sri go meta and use shortcuts
10:53 * sri runs away before anyone can ask a followup question
10:54 judofyr :)
10:54 judofyr fair enough
10:55 crab also send me museum tickets
11:24 crab when i say something silly like that, and then nobody says anything for a long time, i feel increasingly stupid
11:29 sri welcome to my world
11:33 vervain joined #mojo
12:13 Psyche^ joined #mojo
12:13 dryman joined #mojo
12:48 Foxcool joined #mojo
12:56 anaio joined #mojo
13:00 noganex_ joined #mojo
13:01 spleenjack1 joined #mojo
13:38 andrefs joined #mojo
13:43 espent joined #mojo
13:54 vervain How can I override the default port in my Mj::Lite app?
13:55 DaTa somebody has written a hostcheck site with mojo right? anybody remembers the url? :)
13:57 DaTa ah, http://check-host.net/ :)
14:01 jnap joined #mojo
14:08 jnap joined #mojo
14:09 MojoGuest373 joined #mojo
14:09 MojoGuest839 joined #mojo
14:09 MojoGuest373 From: http://link.smartscreen.live.com/?l=http​%3a%2f%2fdev.xantus.org%2f&p=1&u​=&r=AGQ=&d=I&c=Euqc71MdUUygq​7xTx9g2pw==&y=176271&h=9HCEXkBA (1 hits)
14:09 MojoGuest839 From: http://link.smartscreen.live.com/?l=http​%3a%2f%2fdev.xantus.org%2f&p=1&u​=&r=AGQ=&d=I&c=JMCvjomyK0S/k​mdAKhFDbA==&y=175F07&h=TZ7TLcAb (2 hits)
14:09 MojoGuest732 joined #mojo
14:09 MojoGuest732 From: http://link.smartscreen.live.com/?l=http​%3a%2f%2fdev.xantus.org%2f&p=1&u​=&r=AGQ=&d=I&c=Euqc71MdUUygq​7xTx9g2pw==&y=176271&h=9HCEXkBA (2 hits)
14:16 GitHub5 joined #mojo
14:16 GitHub5 [mojo] kraih pushed 1 new commit to master: http://git.io/x4NUdQ
14:16 GitHub5 [mojo/master] release preparation - Sebastian Riedel
14:16 GitHub5 left #mojo
14:27 espent left #mojo
14:57 Andrei666 joined #mojo
15:13 MojoGuest492 joined #mojo
15:13 MojoGuest492 From: http://cbe004.chat.mibbit.com/ (1 hits)
15:21 sri hmm, i need a new tv show to watch
15:23 MojoGuest788 joined #mojo
15:23 MojoGuest788 From: http://cbe004.chat.mibbit.com/ (2 hits)
15:33 arthas joined #mojo
15:33 Andrei666 joined #mojo
15:56 mercutioviz joined #mojo
16:05 ispy_ joined #mojo
16:26 grim_fandango joined #mojo
16:47 kaare joined #mojo
16:58 xaka joined #mojo
17:05 fmerges joined #mojo
17:12 marcus wassup
17:12 marcus sri: which one?
17:14 sri marcus: dude
17:14 sri you tell me!
17:42 batman joined #mojo
17:46 kthakore joined #mojo
17:46 kthakore Hi
17:46 purl salut, kthakore.
17:46 kthakore As an alternative to WebSockets (for non chrome broswers) does mojo make long polling easier too?
17:57 fitnerd joined #mojo
17:59 fitnerd I am running nginx as a proxy for hypnotoad processes on a remote host.  I am having problems where a timeout is being encountered somewhere after around 5 seconds.  Nginx response 502 Bad Gateway.  I have adjusted all the timeouts I can find for nginx.. is there something inside of Hypnotoad that could trigger a timeout if the script takes too long?
18:07 batman joined #mojo
18:43 marcus Sri: I started watching once upon a time yesterday. Trying suits today
18:43 sri marcus: i liked suits and hated once upon a time
18:44 marcus Wish they had licensed fables instead of making a cheap knockoff
18:44 marcus My wife wants me to download Revenge
18:45 sri seen it, it's like a soap opera that's vaguely interesting
18:46 andrefs joined #mojo
18:46 marcus Starting to see why mongodb drivers are still MIA :D
18:47 sri ;p
18:47 fitnerd hey someone is alive :)
18:47 fitnerd either of you have a guess  on my question ^^?
18:48 marcus Fitnerd: I am guessing you should make faster pages =)
18:49 fitnerd heh well its not a page.. its a webapp with some tough computational requirements sometimes
18:49 sri sorry, but my answers just tend to scare people away
18:50 marcus Stranger-danger!
18:50 * sri needs a new crime drama to watch
18:50 fitnerd well i studied the Hypnotoad source and I dont see any likely culprits.. so im guessing its an nginx issue
19:05 mike_ joined #mojo
19:08 mire joined #mojo
19:13 augensalat joined #mojo
19:25 tempire sri: life on mars, us version
19:26 tempire don't read any teasers
19:26 tempire make sure to watch them in order
19:29 sri tempire: but i hate the 70s
19:29 tempire without the 70s, you'd be doing manual labor right now.
19:29 tempire embrace it!
19:30 tempire it's less about the 70s, and more about the juxtaposition between 20xx and the 70s
19:31 tempire watch the first episode, it will hook you all by itself
19:31 sri hmm
19:32 sri guess i'll try the first episode
19:32 tempire remember, don't read teasers
19:32 mercutioviz joined #mojo
19:32 tempire would be like watching the end of fight club first
19:32 tempire well, maybe not as dramatic.  but still.
19:33 MojoGuest668 joined #mojo
19:33 MojoGuest668 From: http://www.google.it/url?sa=t&rct=j&amp​;q=websocket%20irc&source=web&cd=4&​amp;ved=0CDYQFjAD&url=http%3A%2F%2Fdev.​xantus.org%2F&ei=A0LVTsudI4nm-gbLo-WIDw​&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (3 hits)
19:35 sri wonder if white collar is worth trying
19:36 tempire I dig it.
19:36 tempire was my favorite show before I discovered burn notice
19:36 sri interesting
19:36 tholen joined #mojo
19:36 tempire it's like the movie, catch me if you can, were it to containue
19:36 sri sounds like i would like it
19:37 tempire character chemistry is what drives the show
19:37 tempire all the usa network shows are pretty good
19:37 tempire except for necessary roughness
19:38 tempire and law and order, unless you like that sort of thing
19:38 sri i used to like law and order, but it's too repetetive
19:39 tempire I can't handle svu
19:39 tempire once that stuff is in your head, you can't get it out
19:39 tempire poison
19:43 sri svu bores the hell out of me :S
19:43 tempire crazy germans
19:44 tempire tough skin, I guess
19:46 sri well, i can't really relate to american actors
19:46 tempire the actors themselves, or the cultural references?
19:46 sri not all cultural references i'm sure
19:47 sri neither can i relate to the environment
19:47 sri looks lore like a soap opera to me
19:48 * tempire storms away, to plot a breakup
19:48 sri isn't it the same when you watch a "tatort"? do you have those in the us?
19:49 tempire not sure what that is
19:49 tempire once upon a time is barely tolerable.  going to hang in there for a bit to what happens.
19:49 sri http://www.imdb.com/title/tt0806910/
19:49 Akron joined #mojo
19:50 sri the canonical german crime drama
19:50 tempire that's a genre or a specific series?
19:50 sri a series that runs like forever
19:50 tempire like law and order
19:50 Akron Derrick is more canonical overseas, I guess.
19:50 tempire I get bored with those, personally
19:51 sri that could be
19:51 tempire oh, forever like decades
19:52 tempire nothing like that here, except for the normal soap operas that run during the day
19:52 sri i think our crime dramas are a lot darker
19:52 sri like the swedish stuff
19:53 tempire likely.  I think most european stuff is.
19:53 sri ye
19:53 tempire I had to stop watching them.  so depressing
19:53 * tempire sprinkles glitter on his european cohorts
19:53 sri but you have one of those now too with the killing
19:54 tempire I'm probably the odd ball.
19:54 tempire I stopped watching mad men 'cause it was too depressing.
19:54 tempire everyone making stupid decisions, betraying each other, no good guys
19:54 sri mad men sounds boring
19:54 tempire felt like I was watching children
19:55 sri but i love light fun shows like leverage too
19:55 tempire ugh
19:55 tempire didn't like leverage
19:55 sri :o
19:55 tempire too contrived for me
19:55 tempire especially in comparison to burn notice
19:55 sri psych!
19:58 * sri keeps browsing tv.com hunting for more shows to watch
19:58 tempire you don't have netflix over there, do you?
19:58 sri no :(
19:58 tempire shame
19:59 sri we still have to steal the old fashioned way
19:59 MojoGuest760 joined #mojo
19:59 MojoGuest760 From: http://www.google.pl/url?sa=t&rct=j&amp​;q=html5%20irc&source=web&cd=4&​ved=0CDkQFjAD&url=http%3A%2F%2Fdev.xant​us.org%2F&ei=DNzXTuHfIIbvsgbziYGHDA&amp​;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&amp​;sig2=ZMTekkgWvv-gilwoBvJoDQ&cad=rja (1 hits)
19:59 sri i would pay for netflix in a heartbeat… if they would let us
19:59 tempire $8/month!
19:59 MojoGuest760 /join
19:59 MojoGuest760 \join
20:00 tempire it's pretty fantastic.
20:00 MojoGuest760 left #mojo
20:00 xaka when i run requests in parallel using useragent + delay, what the best way to measure response time? does transaction has something like start_time, end_time?
20:00 MojoGuest260 joined #mojo
20:00 MojoGuest260 From: http://networkedblogs.com/33Knp (10 hits)
20:01 osprey_ joined #mojo
20:02 sri i like these crime shows with a twist, like lie to me, castle, bones and the like
20:02 sri any more like that i need to try?
20:02 tempire castle is great.
20:03 xaka are you ignoring me, huh? :(
20:03 tempire haven't been able to get past bones not being andel
20:03 tempire angel
20:03 sri (white collar is next on the list)
20:03 sri haha
20:03 sri yea, took me some time to get past that too
20:04 tempire xaka: you're not being specifically ignored
20:04 KayT3 joined #mojo
20:04 xaka sri: does it make sence to add start_time, end_time to transaction object?
20:05 sri xaka: afraid i am ignoring you after our last conversation, which was rather unpleasant
20:05 amoore joined #mojo
20:06 sri if there is nothing nice to say i prefer to stay silent
20:06 xaka sri: sorry then, but sometimes you do the same, did not want to offend
20:07 * xaka shakes hand...
20:12 sri ignoring is actually the wrong word, avoid conversation is better (thanks tempire)
20:13 * tempire hugs everyone
20:13 * sri joins
20:14 * tempire map-reduces
20:14 KayT3 joined #mojo
20:15 tempire xaka: might want to try the mailing list to see if someone has a solution for you
20:17 sri https://github.com/baryluk/erljs # lol
20:18 tempire marcus: I presume I have to enter mojocast subtitles as a GCI entry somewhere?
20:18 rafl i could do that for you if you prepared them as a csv file
20:19 rafl but do note that they wouldn't be going live until Dec 16
20:43 mercutioviz joined #mojo
20:44 osprey_ left #mojo
21:00 sri tempire: how is chuck?
21:01 tempire I absolutely abhor chuck
21:01 * sri puts it on the list
21:01 tempire lulz
21:02 tempire I cannot stand pansy men
21:02 rafl chuck <3
21:02 tempire grow some testicles, be a man, ask the girl out
21:02 tempire done
21:02 sri imdb actually gave me some good "you might also like these shows" suggestions
21:02 tempire 3 episodes, tops
21:03 sri some i've never heard of too, like justified
21:03 tempire justified was pretty cool, I thought
21:03 tempire only saw a couple of episodes, but it was interesting
21:03 tempire actually had forgotten about it until you mentioned it
21:04 MojoGuest254 joined #mojo
21:04 MojoGuest254 From: http://www.google.com/url?sa=t&amp;rct=j&amp;q=&a​mp;esrc=s&amp;source=web&amp;cd=2&amp;ved=0CCcQFj​AB&amp;url=http%3A%2F%2Fdev.xantus.org%2F&amp;ei=​t-vXTp-vCofU4QSt_smADg&amp;usg=AFQjCNGw6nZv0wO42u​zUnHhWcD0vcKNULg&amp;sig2=nsoYFaRYvtlKb-LcxLuhMA (1 hits)
21:08 MojoGuest648 joined #mojo
21:08 MojoGuest648 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (11 hits)
21:09 MojoGuest648 left #mojo
21:09 sri http://thenextweb.com/shareables/2011/12/01/wor​k-at-this-company-and-youll-get-a-cow-a-fixie-a​nd-an-unlimited-supply-of-your-favorite-beer/ # sounds like my type of company
21:19 osprey_ joined #mojo
21:20 marcus whee, etags.
21:20 marcus sri: chuck is pretty good.
21:21 sri marcus: why didn't you tell me about chunk earlier? :(
21:24 marcus sri: I assumed you'd seen it a long time ago
21:24 sri :S
21:25 marcus sri: look on the bright side, now you have a lot to watch :)
21:25 sri indeed
21:34 osprey_ left #mojo
21:35 osprey_ joined #mojo
21:59 mattastrophe joined #mojo
22:04 dch joined #mojo
22:13 MojoGuest706 joined #mojo
22:13 MojoGuest706 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (12 hits)
22:14 MojoGuest319 joined #mojo
22:14 MojoGuest319 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (13 hits)
22:14 dch just a quick thanks - I needed a static file webserver for testing, pow.cx was an install pig.
22:14 dch cpanm + mojo::lite is *brilliant*
22:15 MojoGuest761 joined #mojo
22:15 MojoGuest761 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (14 hits)
22:24 rhaen hui
22:34 j3nnn1 joined #mojo
22:43 d4rkie joined #mojo
22:49 f00li5h joined #mojo
22:51 jnap joined #mojo
23:04 sri tempire: haha, you're right, white collar is great
23:31 elb0w_ joined #mojo
23:46 mire joined #mojo
23:52 sri how the hell could i miss chuck...
23:54 xaka sri: i have useragent and 2 processes which share an instance. Very strange situation happens - sometimes response from p2 comes to p1 and vice verse. The question is - does useragent reuse socket for every http request or creates a new one?

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