Camelia, the Perl 6 bug

IRC log for #mojo, 2012-06-16

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

All times shown according to UTC.

Time Nick Message
00:24 tempire ok, allows customization
00:24 tempire not too bad now
00:27 hide is there somewhere to get the fqdn for use in a template?
00:32 hipyhop_ joined #mojo
00:40 tempire Check out Mojo::URL
00:40 tempire $self->req->url
00:44 hide so, using DefaultHelpers, app->req->url in the template should get me what I need?
00:45 tempire that's not a helper
00:45 tempire app is the entire app object
00:45 tempire which knows nothing about the current request
00:46 tempire $self->req is the current request that came in
00:46 hide yep, thanks discovered that by the error :)
00:53 hide $self->req->url is only giving me the path portion, ->host is undef
01:33 tempire it's a Mojo::URL object, so you can use any of the methods available
01:59 rem_lex|pivo joined #mojo
02:04 sshaw joined #mojo
02:12 noganex_ joined #mojo
02:24 hide got it, thanks.
04:00 tetraodontidae joined #mojo
04:33 * tempire perls
05:34 mire joined #mojo
05:38 tetraodontidae joined #mojo
05:39 * sri yawns
05:55 D4RK-PH0ENiX joined #mojo
06:30 Foxcool joined #mojo
06:42 Vandal joined #mojo
07:20 sri hmm, i would have expected at least a few complaints about the removal of I18N
08:11 d4rkie joined #mojo
09:37 GitHub62 joined #mojo
09:37 GitHub62 [mojo] kraih pushed 1 new commit to master: http://git.io/7IuK9A
09:37 GitHub62 [mojo/master] better request information examples - Sebastian Riedel
09:37 GitHub62 left #mojo
09:55 Foxcool joined #mojo
10:10 Htbaa joined #mojo
10:10 sh4 joined #mojo
10:47 Leandr joined #mojo
11:44 andrefs joined #mojo
11:57 sri marcus: how is sublime text 2 working out for you?
12:03 Debolaz[Lo] Yet another user of sublime here eh?
12:03 Debolaz[Lo] Sublime++
12:17 sri https://github.com/buymeasoda/soda-theme # that new soda theme looks awesome on os x
13:02 ryozi joined #mojo
13:09 Psyche^ joined #mojo
13:30 marcus sri: looks exactly like the soda refined theme I'm using...
13:30 marcus hmm
13:33 sri marcus: do you have perltidy working? i can't seem to find a way
13:36 marcus sri: nope.
13:59 hipyhop joined #mojo
14:00 marcus sri: https://github.com/rbo/st2-perltidy
14:05 marcus sri: now I have working perltidy :)
14:06 sri hmm
14:08 sri marcus: got used to search in project yet?
14:08 marcus sri: not really, not
14:09 marcus it's ok, but nothing more.
14:09 sri i'm close to switching, but a few things still annoy me
14:12 sri guess it's a question of which sucks less
14:13 batman sri: just a minor comment: Mojo::IOLoop kick POE's ass. big time :)
14:13 sri batman: heh, it's not meant to do that :)
14:13 batman sri: i changed from POE to Mojo::IOLoop in a server at work, and the CPU usage went from 90 to 40 percent
14:14 batman don't care what it's supposed to do. just glad it's awesome :)
14:14 batman thank you!
14:14 batman it's probably EV as well, but i don't care much about AE/EV, so I'm giving you the credit, hehe
14:15 sri \o/
14:16 batman i'm actually so incredible happy that i only see Mojo code and no EV code.
14:18 batman mojo++
14:20 sri i'm happy you're happy ;)
14:20 batman hehe
14:20 marcus batman is ganstah.
14:20 batman ganstah?
14:22 gryphon joined #mojo
14:24 sri marcus: those new tabs are a lot more pretty
14:25 marcus more pretty than what?
14:26 batman marcus: what is "ganstah" ?
14:26 marcus batman: ganster?
14:26 marcus gangster even
14:26 marcus from the ghetto.
14:26 marcus :)
14:27 batman ok...... since i like mojo? :P
14:27 * sri can't make the connection either
14:28 batman maybe it's because i use vim :)
14:28 sri oh, perltidy really works now :o
14:29 marcus sri: agree, new soda is prettier than soda refined.
14:29 marcus it's downright shiny
14:29 marcus batman: I didn't mean nothing by it, don't pop a cap in me, please.
14:29 sri the windows hater on the forum are scary, hope they don't ruin the theme with their meddling
14:30 marcus url?
14:30 sri http://www.sublimetext.com/foru​m/viewtopic.php?f=2&t=7512
14:30 asarch joined #mojo
14:30 sri "it's ugly on windows, bring back the old tabs!"
14:31 sri in fact, those tabs are so shiny they make me buy a license :)
14:31 marcus wish I could get those tabs in chromium as well.
14:31 marcus chrome even
14:31 sri seconded
14:32 sri AND BRING BACK THE DAMN +!
14:32 sri that empty button is so awful
14:32 batman https://gist.github.com/2941380 <-- i created a new irc example
14:32 batman the example already existing on github is outdated...
14:34 * marcus ponders hunting for $offspring
14:34 marcus nah, she'll be fine.
14:35 batman https://github.com/xantus/mojo-websocket-examp​les/blob/master/script/websocket-irc-example-1 <-- i think this code is outdated. at least i couldn't get it to work
14:35 sri batman: yes, very outdated
14:36 marcus hrm, guess I'll use mongodb for this new project.
14:36 sri broken for over a year i bet, judging by the use of on_*
14:36 * marcus eyes MongoDB::Async
14:37 marcus woot, Coro :-O
14:37 marcus will this even work with Mojo?
14:37 batman sri: :)
14:38 marcus xantus has been fairly idle.
14:38 batman marcus: give me a grant and i'll rewrite it using mojo-ioloop ;)
14:38 sri xantus had a java job atm i believe
14:38 batman ok
14:38 sri s/d/s/
14:38 marcus sri: he had a javascript job before this one :)
14:39 marcus so that's no real excuse.
14:39 marcus except, java, I guess.
14:41 batman got to go to get beer
14:41 batman ttyl
14:42 marcus haha
14:42 marcus enojy, batman
14:42 * marcus hasn't touched alcohol in two weeks :-/
14:43 marcus actually it might be three weeks now.
15:18 Foxcool joined #mojo
15:19 GitHub7 joined #mojo
15:19 GitHub7 [mojo] kraih pushed 1 new commit to master: http://git.io/yB7NGg
15:19 GitHub7 [mojo/master] fixed license formatting - Sebastian Riedel
15:19 GitHub7 left #mojo
15:23 GitHub148 joined #mojo
15:23 GitHub148 [mojo] kraih pushed 1 new commit to master: http://git.io/MKV2Ew
15:23 GitHub148 [mojo/master] another small license formatting fix - Sebastian Riedel
15:23 GitHub148 left #mojo
15:41 sri i can't get over the horrible search in project :S
15:42 sri using it way too often
15:59 andrefs joined #mojo
16:04 hipyhop_ joined #mojo
16:36 mire joined #mojo
17:04 spaceships joined #mojo
18:14 marcus it annoys me that sublime says it's unknown formatting too.
18:20 batman is there a way to end Mojo::IOLoop without callin ->stop ?
18:20 batman *calling
18:22 marcus exit()
18:23 batman :)
18:23 batman maybe it's because of max_connections ?
18:24 batman i'm starting a custom tcp server, and i haven't tweaked the attributes...
18:26 batman the problem is that my server suddenly stops without any error message...
18:27 batman i've added $self->log(info => 'Server stopped'); now after Mojo::IOLoop->start; just to see if the IOLoop stops or something else is up...
18:30 sh4 joined #mojo
18:32 batman maybe i need to tweak max_accepts and max_connections...
18:44 sri those values are shared between all servers
18:44 sri (just saying in case you havn't noticed)
18:45 sri Mojo::IOLoop is more of a server framework than a general purpose event loop
18:46 batman but i'm only running one server...
18:46 batman but i tried to add the logging now, but there's nothing in the lgos
18:46 batman *logs
18:46 batman guess it's something else
18:47 batman maybe i kill 15 $my_own_pid; or something
18:47 * sri still gets nervous when someone uses Mojo::IOLoop directly :)
18:47 batman not easy to write after a couple of beers :S
18:47 batman instead of Mojo::IOLoop::Server->new; ?
18:47 batman sri: ^
18:47 sri both
18:48 sri same for reactor
18:48 batman but you have created this kick ass event loop. i just can't resist using it :)
18:48 sri the whole layer is not designed for end users
18:48 batman b
18:48 batman oops
18:49 tempire time for everyone to upload their workspace photos: http://coderwall.com/p/gxjpna
18:49 batman i will not not stop using it. it's too awesome :)
18:49 tempire marcus: I want to see nordaaker!
18:49 sri haha
18:49 sri marcus regularly posts photos of his workspace
18:49 marcus tempire: nordaaker was on the reddit frontpage not that long ago ;)
18:50 marcus at least our door.
18:50 tempire well then I also want to see supervillain lair
18:50 marcus yeah right
18:50 marcus dream on
18:50 marcus sri hasn't posted pictures online since ~2005
18:50 sri mine is a bit boring atm, empty room with a big white desk and a macbook, nothing else
18:50 batman marcus: better invite to a nordaaker <3 mojolicious party. let's fly all the cool kids in :)
18:51 * sri likes his workspace completely empty
18:51 marcus batman: sounds good. right now is a bit bad for me tho (wife is giving birth any moment now) :)
18:52 tempire must be that german minimalism
18:52 tempire http://en.wikipedia.org/wiki/File:Snl89187.jpg
18:52 * sri digs minimalism
18:52 tempire er http://upload.wikimedia.org/w​ikipedia/en/9/91/Snl89187.jpg
18:52 batman marcus: i wish you both all the best :)
18:53 tempire bring on the babies!
18:53 tempire http://www.youtube.com/watch?v=Y6rE0EakhG8
18:54 marcus yeah, we're getting impatient :)
18:54 marcus will be interesting to see what arrives first, new MBP or new baby
18:55 sri looking at the pictures, i guess i'm not the only one :)
18:56 marcus event tho I hate it, I've actually been working with an external monitor at work lately
18:56 marcus the current 15" just can't hack it for xcode development. need moar pixels
18:56 tempire how could you hate that?
18:56 tempire I have two externals+15" screen
18:56 tempire it's not enough
18:56 marcus tempire: I prefer just using the 15"
18:56 marcus I can't deal with multiple monitors.
18:57 marcus distracting
18:57 marcus too much shiny :)
18:57 sri i can't work with external monitors at all anymore :o
18:57 tempire Well, send me your extras
18:58 tempire I'd like to get another two, actually.
18:58 sri ah, you're one of those :)
18:58 marcus monitor-hoarder
18:58 tempire I want 4-5 monitors, no wires, a keyboard, and a the magic pad.
18:58 tempire no, they have to all be the same.
18:58 tempire that's the trouble.
18:59 marcus you mean they show the same content?
18:59 tempire my current two are similar, so it's acceptable.  but not perfect.
18:59 marcus or the same size?
18:59 tempire no, the same type of monitor
18:59 tempire consistency and such
18:59 sri ocd
18:59 tempire otherwise it can get distracting
18:59 tempire I'd be ok with one apple 27" though
19:00 batman i got an extra monitor at work.
19:00 batman it's used like 30 minutes pr month, when i need to show something to a college that thinks my 12" is too small :P
19:00 marcus the 15" fills my vision fine.
19:01 batman my 12" is actually too big.... my lines gets longer and longer: i used to have a 78 char max length :)
19:02 marcus batman: this is why you need split-screen ;)
19:02 batman marcus: since i'm tipsy and everything why haven't you liked my "betsy/tiger" video on facebook?
19:02 batman marcus: good point!
19:02 marcus batman: did not see it.
19:03 marcus Jan Henning Thorsen does the tiger at Sollihagen . EPIC MOMENT!
19:03 marcus ?
19:03 batman https://www.facebook.com/ph​oto.php?v=10151822690055581
19:03 batman yes :)
19:04 marcus batman: I mostly use facebook to post pictures of kids :)
19:04 marcus hmm, that doesn't sound right, somehow.
19:04 marcus batman: nice video tho.
19:05 marcus what did you win?
19:05 batman hehe
19:06 batman a bottle of champagne
19:06 marcus hmm, this laptop is really dying soon.
19:06 batman osx ftw?
19:06 marcus the screen flickers in interesting ways when I play video.
19:06 batman i <3 lenovo
19:06 marcus batman: I don't treat my hardware well.
19:06 batman mostly because of the keyboard
19:06 marcus it's running on just one fan.
19:06 batman hehe
19:07 marcus one of the fans was getting really, noisy, and I tried to clean it, and I killed it.
19:07 marcus and the heat has made the display wonky as well.
19:07 batman that sucks
19:08 batman while sleep 1; do my_script.pl; done # is there any way this will not restart my server?
19:08 batman i'm even running it inside a screen?
19:08 batman s/\?//
19:09 marcus if your server hangs rather than dies?
19:09 marcus batman: use daemontools?
19:09 marcus http://cr.yp.to/daemontools.html
19:11 batman i already have something like that, but it takes 1 minute for it to restart...
19:13 tempire daemontools are solid
19:14 batman :)
19:15 batman marcus: who should i buy a .no domain from?
19:16 marcus batman: I use domeneshop. they're not hypermodern, but they are solid and nice.
19:16 batman ...and looks like shit :)
19:16 batman but i like "solid and nice"
19:17 marcus and frettled works for them
19:17 batman frettled?
19:17 marcus so you could always hunt him down in person if something goes wrong.
19:17 marcus 21:16:44 frettled has userhost 15163@smaragd.ifi.uio.no and real name "Jan Ingvoldstad (Snakepit)"
19:17 batman Fikk ikke svar fra WHOIS-server for .no, prøv igjen senere <--- hmmmmmm... not that solid i guess :)
19:17 batman ah
19:18 marcus pussig at de har problemer med whois
19:19 batman indeeed
19:19 batman -e
19:19 marcus batman: you're not in #oslo.pm on this server?
19:20 batman no
19:20 batman no i am
19:20 batman *now
19:23 marcus batman++
19:23 marcus hmm, it annoys me that MojoX::Redis is broken.
19:23 marcus seen purl?
19:24 sri purl has been gone since the last netsplit
19:25 sri prolly reached her channel limit again on reconnect
19:25 marcus I prodded hachi
19:25 sri marcus++
19:25 marcus and asked him to remove her from #iusethis if it's a channel limit issue
19:25 * sri hates modules like MojoX::Redis
19:26 marcus sri: why?
19:27 sri we are not a target event loop, we reuse other loops
19:28 sri like i said before, Mojo::IOLoop is a server framework, there are connection and accept limits, accept mutexes...
19:28 sri it's not a generic event loop
19:28 marcus it's not like there are many other perl event loops i'd like to use tho
19:29 marcus ev is a sucky dependency.
19:29 sri that's a different problem
19:29 marcus it's nice to be able to add it for performance...
19:30 sri i've considered starting a general purpose event loop, but ENOTIME :(
19:32 sri something more along the lines of node.js would be nice
19:32 marcus yepp
19:33 marcus hmm, maybe I should just use node for this project. It'd probably be easier to sell as a hosted service.
19:35 Foxcool joined #mojo
19:44 ki0 joined #mojo
19:46 marcus sri: re problems we've been having earlier with benchmarking on osx - https://gist.github.com/2942346
19:47 marcus that's from the siege brew description
19:48 sri if you benchmark with keep alive the default shouldn't be a problem
19:49 sri but it's good to know
19:56 * marcus listens to Great Giana Sisters (suite)
20:00 marcus-node joined #mojo
20:01 marcus-node wow
20:01 marcus-node I am totally ircing through node
20:02 marcus-node (using https://github.com/thedjpetersen/subway)
20:04 marcus-sw joined #mojo
20:07 sri maybe i'm too worried about ioloop
20:08 sri more general purpose use could also have positive side effects, like more in depth testing and optimizations
20:08 d4rkie joined #mojo
20:17 andrefs joined #mojo
20:26 GitHub189 joined #mojo
20:26 GitHub189 [mojo] kraih pushed 1 new commit to master: http://git.io/bFCR5g
20:26 GitHub189 [mojo/master] small optimizations - Sebastian Riedel
20:26 GitHub189 left #mojo
20:42 sri marcus: https://github.com/ericmoritz/ws​demo/blob/results-v1/results.md # better use erlang, node doesn't scale! ;p
20:42 marcus hah
20:43 marcus I'm actually back to fixing mojox-redis :p
20:43 marcus 15 minutes with node uglyness is usually enough to scare me back to perl.
20:45 sri heh, yea, the shock when you realize that you can't escape the callback spaghetti monster
20:50 marcus sri: should the id that is returned by Mojo::IOLoop->server be passed to ->stream to get back the connection if I want to set a new ->on_read or write to the connection?
20:51 sri no
20:51 sri it returns the server id
20:52 sri which only remove accepts
20:52 marcus I suspected that from the undef that ->stream returned =)
20:52 sri every accepted connection gets a new stream
20:53 marcus sri: but there's no on_connect call that lets me catch it?
20:53 marcus on(connect even
20:53 sri the callcack
20:54 marcus ah, thanks.
20:54 sri http://mojolicio.us/perldoc/Mojo/IOLoop#SYNOPSIS
20:54 sri that covers pretty much everything there is to know
20:58 marcus yupp. I actually had the callback, just trying to shake of old thinking :)
21:05 tempire 4th leg
21:05 tempire almost home!
21:07 tempire so sri.  dispatching to actions like events, instead of one assigned action.
21:07 tempire thoughts.
21:07 tempire I presume you've considered the matter.
21:07 sri tempire: kinda what bridges are for
21:09 sri tempire: or are there use cases for multiple unordered actions on a single route?
21:09 tempire yeah.  though I'm thinking of having it be the same syntax as every other on.  why not have hooks, actions, whatever just be streams of ones.
21:09 perlite joined #mojo
21:10 tempire on's
21:10 tempire since mojo is pushing the event thing.  why not go all the way.
21:10 sri but why?
21:11 sri do you have an example that gets better with that api?
21:12 sri for pretty much everything i can think of order matters, and you might even want to intercept
21:12 tempire I'm bringing it up first, 'cause I thought you might have some insight before I start thinking in those terms
21:12 sri hooks already work that way
21:13 sri but for actions i don't believe it makes much sense
21:13 tempire right, they're just a different api, and not as obvious.  so if a user wants to assign something to a particular point in the transaction cycle, they just pick the point and assign it.
21:13 tempire rather than try to figure out where in the namespace it applies
21:14 tempire you would of course have to account for serial and concurrent events by the declaration.
21:14 tempire I'm not arguing for at this point, I'm just thinking.
21:14 sri you lost me there
21:14 tempire I'll come up with an example
21:15 sri that might be better
21:16 nordmarcus joined #mojo
22:05 marcus sri: does $stream->on(read => sub { .. }) override an existing on(read or does it add another emitter?
22:05 sri on always adds
22:06 marcus sri: any way to remove it again?
22:06 sri http://mojolicio.us/perldoc/Mojo/EventEmitter # that's the whole event api
22:08 marcus sri: sweet, using once makes this almost work. down to two failing tests :)
22:10 mire joined #mojo
22:27 marcus sri: Any way to drop a connection at once rather than gracefully? Trying to test a close event, however it seems to be called during global destruction even tho I stop the ioloop in a timer after dropping the connection.
22:31 Akron joined #mojo
22:31 marcus I got the tests to pass now, but it seems like there's a 5 second delay or something from ->drop to the close event is emitted.
22:33 marcus heh, guess that's actually the connection timeout
22:33 Akron Is this something the perltidy config does? https://github.com/kraih/mojo/commit/417ce​af0024bb3a8b4875ccb428e668642aa3d13#L1R189
22:37 marcus sri: guess I should rename MojoX::Redis to just Mojo::Redis?
22:37 marcus sri: or would you rather I just keep it to myself?
22:38 marcus hacking on this thing has been quite useful to my understanding of the new ioloop api anyways.
23:08 nordmarcus joined #mojo
23:31 brambles joined #mojo
23:32 brambles_ joined #mojo
23:36 brambles joined #mojo

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