Camelia, the Perl 6 bug

IRC log for #mojo, 2011-09-13

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

All times shown according to UTC.

Time Nick Message
00:03 shonorio joined #mojo
00:12 shonorio joined #mojo
00:31 shonorio joined #mojo
00:41 j3nnn1 joined #mojo
01:36 Coke joined #mojo
01:36 Coke ~~
01:37 elb0w_ joined #mojo
01:38 elb0w_ tempire: work ok for you?
01:44 tempire yeah, it works.  :)
01:44 elb0w_ awesome
01:44 tempire now it's just a matter of figuring out how to redirect to the correct location as necessary
01:44 elb0w_ its unlimited bandwidth/diskspace
01:44 elb0w_ so have fun
01:44 elb0w_ https://metacpan.org/modul​e/Mojolicious::Plugin::Geo
01:55 newbie joined #mojo
02:00 noganex joined #mojo
02:11 lammel2 joined #mojo
02:14 elb0w_ wtf why can't i find the doc on routing that has the setting where everything below it gets routed somewhere
02:14 elb0w_ like a master setting
02:14 tempire you're probably looking for bridges
02:15 elb0w_ prob
02:15 elb0w_ yes i am
02:15 elb0w_ ty
03:00 Skylos joined #mojo
03:31 xaka joined #mojo
03:51 perlrocks Twitter: "However, perl is, mojo caf Toka Toka Toka mo moo mouse Toka Toka moose:: a heaping of the Toka Toka insideout base." (ja) --masakyst http://twitter.com/masakyst​/status/113459779527122944
04:04 kaare joined #mojo
04:17 Foxcool joined #mojo
04:27 Alias joined #mojo
05:19 koban joined #mojo
05:25 perlrocks Twitter: "Mojolicious and Dancer http://t.co/rcOnr7Q Sharifulin as always on top! # Mojolicious # dancer # perl # framework" (ru) --xomaa http://twitter.com/xomaa/status/113483380888305664
05:34 tempire mojolicious needs a new orleans jazz band
05:34 * sri nods
05:34 tempire http://www.youtube.com/watch?v=lXKD​u6cdXLI&feature=player_embedded
05:35 * sri stares
05:37 sri MOAR COWBELL!
05:51 tempire flashed values are stored in the session, right?
05:53 tempire yes, looks like it
05:53 purl No it doesn't, shut your hole!
05:53 * tempire glitters purl
05:54 tempire purl: karma tempire
05:54 purl tempire has karma of 35
05:58 sugar joined #mojo
05:58 AmeliePoulain joined #mojo
06:00 sri tempire++
06:04 sromanov joined #mojo
06:05 Eugene joined #mojo
06:17 tempire turns out mojocasts works in ie after all
06:35 Firkin joined #mojo
07:04 intervoice joined #mojo
07:25 Properler joined #mojo
07:38 mattastrophe joined #mojo
08:04 perlrocks Twitter: "Mojocast # 3: Authentication, Helpers, and Plugins perl # # mojolicious http://t.co/fumWhNt" (de) --jegade http://twitter.com/jegade/​status/113523533681926144
08:15 Alias joined #mojo
08:37 kaare joined #mojo
08:41 spleenjack joined #mojo
08:46 koban joined #mojo
08:55 perlrocks Twitter: "Mojocast #3: Authentication, Helpers, and Plugins - http://t.co/A8q5igo #perl #mojo" --sfperlmongers http://twitter.com/sfperlmong​ers/status/113536303714418688
09:39 Properler joined #mojo
09:52 perlrocks Twitter: ""Mojocast #3: Authentication, Helpers, and Plugins - http://t.co/uj8Cy3d #perl #mojo"" --F_ili_n http://twitter.com/F_ili_n​/status/113550594949656576
10:05 grim_fandango joined #mojo
10:08 fmerges joined #mojo
10:15 Hinrik are there any complete mojo apps on github (or similar) I could look at?
10:16 perlrocks Twitter: "Встречайте Mojolicious:: Plugin:: Gravatar koorchik # # perl # my # mojolicious http://t.co/jthKjF9" (sl) --F_ili_n http://twitter.com/F_ili_n​/status/113556536437121024
10:18 esskar joined #mojo
10:20 intervoice hey friends! Is there any possibility to use custom Exception handler? Or any aditional? I mean is there any chance to catch errors in eval that placed right in Mojolicious::Routes::_dispatch_controller function. As example to use "$continue = $app->dispatch($method)" instead of "$continue = $app->$method" ?
10:28 Coke joined #mojo
10:32 intervoice Is anybody here?  )
10:34 Hinrik apparently not
10:46 spleenjack joined #mojo
10:51 judofyr joined #mojo
10:52 judofyr sri: how would you do a 301-redirect?
10:54 random joined #mojo
11:04 noganex joined #mojo
11:12 esskar2 joined #mojo
11:21 shonorio joined #mojo
11:36 intervoice dead channel in super puper mega new mojolicious..... eeeeehh.....
11:36 omega it varies greatly with the time of day
11:52 j3nnn1 joined #mojo
11:56 perlrocks Twitter: "Inheriting or overriding or extending mojolicious Exception question #perl #mojo #mojolicious @kraih" --F_ili_n http://twitter.com/F_ili_n​/status/113581803842965504
11:57 perlrocks Twitter: "Inheriting or overriding or extending mojolicious Exception question #perl #mojo #mojolicious @kraih http://t.co/8KkHFzy" --F_ili_n http://twitter.com/F_ili_n​/status/113581951356633088
12:13 Akron joined #mojo
12:18 elb0w How do I get Morbo to show requests like the lite app does?
12:19 DaniBunny joined #mojo
12:21 elb0w Wtf am I doing wrong, so confused http://pastie.org/2526092
12:21 elb0w aside from the terrible naming convention
12:24 Akron elb0w: What do you mean with "requests like the Lite app"?
12:25 omega access logs?
12:26 Akron I don't see the relation morbo <-> lite app. Lite apps can be start with morbo. Maybe it's morbo and the built-in daemon?
12:27 elb0w If I do morbo on a lite app I see all the requests to my server
12:27 elb0w when I do it on a full app I do not
12:28 sromanov joined #mojo
12:28 Akron Do you have a log directory? What is the log->level?
12:29 elb0w oh maybe
12:29 elb0w been building everything in a lite app wanted to port over
12:29 Akron If there is a log directory, all logs will go there by default.
12:31 elb0w ah
12:31 elb0w awesome
12:31 elb0w ty
12:31 elb0w thats interesting
12:32 Akron np
12:32 elb0w its looking under the last namespace I set
12:32 elb0w probably doing something wrong I gues
12:33 Akron Sometimes things get strange if no rendered is set.
12:34 elb0w I use different namespaces for my modules
12:34 elb0w so $r->namespace('MyAPP::Something'); $route to blah#here, then $r->namespace('MyApp::SomewhereElse'); more routes..
12:34 elb0w maybe thats not proper
12:35 Akron Sorry, never used multiple namespaces.
12:35 Akron I never used multiple namespaces.
12:36 elb0w I guess I dont need to
12:36 elb0w I just like the feeling of it being organized
12:56 marcus yo hobbits
13:02 intervoice look at this please https://groups.google.com/forum/​#!topic/mojolicious/UVzrzc_14CM
13:08 SmokeMachine joined #mojo
13:10 Coke joined #mojo
13:10 elb0w hey marcus
13:10 elb0w Do you know if theres any issues using multiple namespaces?
13:13 Akron intervoice: sorry, can't help. I even don't know what you really want to achieve.
13:15 marcus elb0w: me no understand problem
13:17 perlrocks Twitter: "Mojolicious Mojocast #3: Authentication, Helpers, and Plugins: http://t.co/Wh6HB7f" --gabrielvml http://twitter.com/gabrielvm​l/status/113602141914021888
13:20 rwstauner joined #mojo
13:21 elb0w marcus: ill make an example later
13:23 SmokeMachine joined #mojo
13:28 bpaluch joined #mojo
13:43 SmokeMachine_ joined #mojo
14:33 Eugene joined #mojo
14:35 sri elb0w: please just read the documentation on namespaces, you're doing it wrong
14:35 elb0w Yeah I figured as much
14:37 elb0w sri: so thats just the default one?
14:37 elb0w Originally I was setting it inside the route itself
14:37 elb0w ok understood now ty
14:39 sri intervoice: if you're not getting an answer it's prolly because nobody understood the question, spamming me on twitter won't help
14:46 amoore joined #mojo
14:54 abra joined #mojo
15:00 Coke joined #mojo
15:04 Skylos joined #mojo
15:09 sri where is arpadszasz? :S
15:12 Coke (don't see my question in the weblogs, resend:) if I have a controller named foo with a sub named bar, do I need to explicitly route /foo/bar to that method, or is just declaring I have a foo controller sufficient?
15:17 sri http://mojolicio.us/perldoc/Mojolic​ious/Guides/Routing#Special_Stash_V​alues_28_controller_and_action_29
15:17 sri that should answer the question if i understand you right
15:22 stderr I think Coke's question amounted to whether you can leave the action out. And AFAIK the answer is "no", that would be too much magic. After all you can have supposedly private methods in your controller that Perl has no way of marking as such so the routing magic wouldn't know that there should be a route /foo/bar but not /foo/privatemethod
15:41 tempire hooray!
15:41 tempire http://itunes.apple.com/us/podcast​/mojolicious-mojocasts/id464926730
15:41 koban left #mojo
15:46 Coke ah. I'm coming from FW/1 in coldfusion, just trying to figure out how things are different. Mojo++, though. first time I've been excited about perl webdev in over a decade. ;)
15:46 Coke thanks, sri, stderr.
16:03 sri glad you like it :)
16:04 crab Coke: the guides are your friend
16:04 * sri goes to get pizza
16:05 Coke crab - aye. managed to get something up and running with mojo and a sqllite backend pretty quickly.
16:06 metaperl joined #mojo
16:07 Akron joined #mojo
16:33 elb0w sri: you guys still didnt fix that error in the docs with the syntax coloring
16:33 sri ?
16:33 j-v-e joined #mojo
16:33 elb0w have to find it now
16:33 elb0w sec
16:33 perlrocks Twitter: "1.97 Mojolicious http://t.co/zdUh3r0" (sw) --campuscodi http://twitter.com/campuscod​i/status/113651616057524224
16:34 elb0w eh its just the plugin
16:34 elb0w dont think u can fix that
16:35 elb0w it was similiar to http://mojolicio.us/perldoc/Moj​olicious/Guides/Growing#Script
16:35 elb0w when you use don't it messes up
16:35 elb0w there was one in code though
16:35 elb0w from a regex
16:35 sri and what solution do you propose?
16:36 elb0w Other than quoting the string which sort of defeats the purpose I dont know
16:36 sri your "still" above kinda implies that we talked about it before
16:36 GabrielVieira joined #mojo
16:36 elb0w The other one is in code
16:36 elb0w sec
16:36 * sri is a bit confuesd
16:37 elb0w I just found that one on Script
16:37 sri get to the point please
16:40 elb0w nvm ill just pull it and mess with it later
16:48 jamesw joined #mojo
17:00 sri tempire: you still forget to tag your tweets ;p
17:00 HSlayer joined #mojo
17:00 * sri waits for a "D'OH!"
17:00 tempire I know, I realized it as soon as I clicked the button
17:01 * tempire has been awaiting sri's scolding
17:01 tempire twitter and Facebook really need a 2-3 second edit feature
17:02 sri ye
17:05 random left #mojo
17:06 judofyr joined #mojo
17:25 sri hmm, maybe time to look for another volunteer for Mojo::Server::FastCGI :S
17:28 perlrocks Twitter: "Mojolicious Mojocast #3: Authentication, Helpers, and Plugins: http://t.co/f6FWQ2S" --j1n3l0 http://twitter.com/j1n3l0/​status/113665486411149312
17:39 metaperl How would you get the layout value globally in a Lite application?
17:39 metaperl s/get/set
17:39 metaperl And the layouts are sensitive to the content type being returned? If I set a global layout for html, when I call ->render_json, it wont render right?
17:49 Eugene joined #mojo
17:52 sri json and data can't have layouts
17:52 sri for obvious reasons
17:53 sri http://mojolicio.us/perldoc/Mojo​licious/Guides/Rendering#Layouts
17:53 sri the answer is in there
17:58 elb0w tempire: so servers good?
18:01 metaperl I should've mentioned I looked at that and didnt know how to convert the Mojolicious example to Lite
18:19 elb0w i love mojocasts
18:19 elb0w lol
18:21 metaperl how do you implement the sub startup in Mojolicious::Lite?
18:39 elb0w wa?
18:39 purl wa is an anti-spam state i believe :) or Worms Armageddon or Weird Al (Yankovic)
18:39 elb0w metaperl: what you tryin to do?
18:39 Eugene joined #mojo
18:41 cosmincx joined #mojo
18:52 metaperl elb0w: i was trying to setup an HTML layout globally for a Lite app
18:54 vel joined #mojo
19:09 Coke joined #mojo
19:31 marcus oh hai
19:31 marcus sri: I thought the problem with config getting the wrong name in tests only applied to lite. I'm seeing it for a normal mojo app as well now
19:32 marcus sri: I thought it should be able to know what it's name is, but t/folder.t is looking for folder.conf
19:32 marcus sri: is the suggested solution to set MOJO_CONFIG env?
19:32 sri marcus: suggested solution is to fix the bug ;p
19:33 marcus sri: I like that better
19:36 * marcus starts with a failing unit test
19:36 sri kinda doubt it will be easy though
19:37 marcus sri: A full app should know it's name from the package shouldn't it?
19:37 marcus I understand lite apps needing the filename
19:37 marcus I was sure this was working before
19:37 marcus Maybe with the other config package...
19:37 elb0w so I have a alias to a url in my /etc/hosts I can ping it, go to it in my browser, wget it. But when I try to hit it with UserAgent it times out any idea?
19:38 marcus elb0w: you can only have an alias to a host, not an url :p
19:38 elb0w sorry meant host
19:38 sri marcus: it's rather complicated, we use a caller trick to detect the right file name of the script
19:38 marcus elb0w: so mojo get $url fails, while lwp get $url succeeds ?
19:39 marcus s/lwp get/lwp/
19:39 elb0w let me try lwp
19:39 sri marcus: https://github.com/kraih/mojo/blo​b/master/lib/Mojo/Command.pm#L263
19:39 marcus elb0w: but mojo get $url fails, and wget $url works?
19:39 sri elb0w: we don't support /etc/hosts aliases
19:39 marcus aaah, forgot about the async resolver
19:40 elb0w sri: o
19:40 marcus elb0w: mojo does not use the system resolver
19:40 sri if the actual host resolves there is no fallback
19:40 elb0w oh man that sucks
19:40 sri we fallback to system resolver only if the async resolve fails
19:40 elb0w we have a lot of systems resolved by hosts
19:40 elb0w wait now im confused
19:40 elb0w it is failing no?
19:41 sri unknown
19:41 elb0w I tried $ENV{MOJO_DEBUG} = 1
19:41 elb0w didnt give me anymore info
19:41 marcus elb0w: sure it's not reslving to something else?
19:41 marcus resolving
19:41 purl resolving is actually more of a helper than a model too..
19:42 sri what the hell is MOJO_DEBUG?
19:42 elb0w our internal network doesnt resolve rblt.com
19:42 elb0w oh maybe its something else
19:42 elb0w sorry MOJO__USERAGENT_DEBUG =1
19:42 marcus elb0w: it resolves fine here...
19:43 marcus elb0w: rblt.com has address 79.170.246.23
19:43 elb0w yeah inside our network we cant resolve it
19:43 marcus don't you mean, your internal network cannot reach.
19:43 marcus it
19:43 elb0w yeah didnt I say that?
19:43 marcus no, resolve != reach
19:43 elb0w oh
19:43 marcus that's probably why you are using the hosts hack
19:43 elb0w how can I test?
19:44 marcus mbook:~ marcus$ host rblt.com
19:44 elb0w ok so it does resolve
19:44 elb0w I cant reach it
19:44 marcus right, so it does not fall back to the system resolver
19:44 marcus since it can resolve it
19:44 elb0w can I force it to?
19:44 * marcus looks at sri
19:44 sri think you're screwed
19:44 elb0w :(
19:45 elb0w ok inc pull req
19:45 elb0w :P
19:45 marcus elb0w: but really, you should be running an internal dns server
19:45 marcus that resolves it to the internal address
19:45 marcus rather than these silly host hacks
19:45 marcus or fix your nat :p
19:45 elb0w marcus: yeah dumb network setup
19:45 bpaluch isn't kind of standard to look at etc/hosts first?
19:46 elb0w if I swap my dns to 8.8.8.8 it works
19:46 elb0w its not for me to change the network here
19:46 elb0w just trying to make the best out of it
19:46 * marcus continues to wonder if maintaining an async resolver is worth it
19:47 marcus sri: would be nice to be able to turn it off at least.
19:47 sri so far the async resolve was pretty much effortless to maintain
19:47 sri *+r
19:47 marcus sri: $client operations guys have been complaining about it earlier too
19:48 sri fucked up corporate networks are more rare than you'd think
19:48 sri well, nobody reported it to me
19:48 marcus I thought we did, it was a while ago
19:48 marcus maybe not
19:50 sri well, it's going to stay
19:50 marcus sri: what about a patch to support /etc/hosts?
19:51 preflex_ joined #mojo
19:51 sri we just don't handle aliases
19:51 sri we do look for dns server
19:52 marcus sri: was that a yes or a no? :)
19:53 sri not sure it matters, as soon as i start asking for unit tests nobody will want to work on it anyway ;p
19:53 marcus elb0w: sri will accept a patch with unit tests :p
19:53 marcus good luck
19:53 purl You'll need it.
19:54 elb0w fine
19:54 elb0w unit tests it is
19:54 * marcus has his own troubles to write unit tests for
19:55 elb0w been wanting to learn how to do unit tests anyway!
19:55 elb0w :P
19:55 elb0w What about specifying which dns to use
19:55 elb0w would that be easier to implement?
19:55 elb0w If I could tell it to use 8.8.8.8 i wouldnt have an issue
19:56 marcus sri: btw, how can I test for a 404 using Test::Mojo ? Tried get_ok('/foo')->status_is('404') but it failed the first because get_ok seems to not like 404s :)
19:56 sri i have tons of 404 unit tests
19:56 marcus elb0w: just rm /etc/resolv.conf :p
19:56 marcus :D
19:57 marcus and it will default to google dns servers
19:57 sri elb0w: that functionality is already present...
19:59 marcus sri: guess I'm Doing It Wrong
20:00 elb0w k im blind I dont see it
20:00 bpaluch http://search.cpan.org/~sri/Mojolici​ous-1.97/lib/Mojo/IOLoop/Resolver.pm
20:00 bpaluch I think
20:00 bpaluch IP addresses of DNS servers used for lookups, defaults to the value of the MOJO_DNS_SERVER environment variable, auto detection, 8.8.8.8 or 8.8.4.4.
20:01 elb0w ah
20:08 lammel2 joined #mojo
20:09 GitHub169 joined #mojo
20:09 GitHub169 [mojo] kraih pushed 1 new commit to master: http://git.io/XmsqLQ
20:09 GitHub169 [mojo/master] improved non-blocking resolver by allowing it to be disabled - Sebastian Riedel
20:09 GitHub169 left #mojo
20:11 sri that should make everyone happy
20:11 tempire I really dig the windows metro interface
20:11 tempire seems ms is jumping beyond osx for win8
20:12 tempire the w7 phone interface is better than iOS as well
20:12 tempire makes me sad
20:13 sri marcus: i'm a little shocked though you're proposing the removal of the non-blocking resolver so lightly
20:14 sri the downsides of that should be quite obvious, no?
20:16 sri tempire: metro is only the alternative interface, they are still shipping the old windows desktop
20:19 tempire according to klout.com, I have an influence on sri
20:19 sri :o
20:19 tempire but my klout is lower :(
20:20 tempire sounds about right.  I'm guessing they're measuring the twitters
20:20 marcus sri: I was actually suggesting an ENV variable to turn it off.
20:20 marcus sri: the downside is only important if you actually do async/longpoll stuff
20:20 tempire elb0w: servers are fine - mojocasts are still being served out of moscow at the moment.  not going to change anything for at least a week unless there are problems
20:21 marcus sri: so you actually just implemented my suggestion :-)
20:21 marcus sri: I'm a bit shocked that you implemented my suggestion!
20:22 sri heh
20:22 sri maybe i interpreted too much into "marcus continues to wonder if maintaining an async resolver is worth it"
20:22 marcus maybe :)
20:22 sri for anything that uses dns seriously it's a *HUGE* boost
20:23 marcus I agree,it's a good feature
20:24 * marcus & # enobattery
20:24 mattastrophe joined #mojo
20:28 sri hmm
20:28 sri marcus: think i know what your bug is
20:28 sri and it's not fixable i think
20:38 elb0w http://www.youtube.com/watch?v=gusJeslMbLc so cool
20:40 stderr They had one like this on  a festival I went to last year
20:46 Properler|2 joined #mojo
20:53 metaperl joined #mojo
21:02 sri huh
21:03 sri why the hell do we handle .p6 extensions? Oo
21:04 sri https://github.com/kraih/mojo/blob/mast​er/lib/Mojolicious/Plugin/Config.pm#L47
21:07 sri must have been moritz
21:07 sri or i was drunk
21:07 tempire Some time ago I came across a client-side web app thing that includes a drag n' drop interface, like interface builder
21:07 tempire was I dreaming?
21:09 * tempire can't remember the name or location of it
21:11 tempire guess I was
21:11 tempire ooooh
21:12 tempire atlas
21:14 tempire ugh.  looks like motorola bought it and it died
21:14 tempire sad
21:16 tempire there's a lot of great projects out there that die because of poor business decisions/bad marketing
21:19 GitHub106 joined #mojo
21:19 GitHub106 [mojo] kraih pushed 1 new commit to master: http://git.io/s7cmUw
21:19 GitHub106 [mojo/master] fixed small name generation bug in Mojolicious::Plugin::Config - Sebastian Riedel
21:19 GitHub106 left #mojo
21:19 sri right, the objective-j thing
21:20 sri http://cappuccino.org/
21:20 sri google owns this now
21:20 sri marcus: bug should be fixed, but i expect more tests from you!
21:22 sri i don't see much of a chance google will keep a project alive that started as a port of apples cocoa stack to the web
21:23 tempire I don't care about cappuccino - obj-c and look-alikes are too old-school.
21:23 tempire but an interface builder for the web, that would be awesome.
21:24 tempire sometimes I just don't care about making a website.  I just want a nice looking web app.
21:24 tempire without messing with design
21:24 sri i know what you want :)
21:25 sri http://www.sproutcore.com/
21:26 Coke (web interface builder). like dreamweaver? ;)
21:26 sri not quite an interface builder yet, but has many of the elements
21:28 sri it's basically everything except for the interface builder
21:28 sri and it also started at apple
21:29 sri but now that i think about it, i'm missing the point
21:29 SmokeMachine joined #mojo
21:30 sri you don't care how it's implementd and just want an interface builder :)
21:33 sri hmm, there was an attempt to make it work, but that seems to have died https://github.com/robiculous/scxib
21:34 tempire I looked into sprout core.  It's fairly simple in implementation, but yeah, it's the interface builder that's important.
21:35 tempire it's just another mvc framework at the moment
21:35 tempire though it does go halfway there, with making the connections between controls and views seemless
21:36 Drossel joined #mojo
21:52 Cside joined #mojo
22:31 tempire woah
22:31 tempire just read about pushState
22:31 tempire now this is progress
22:38 sri github has been using it for quite some time
23:04 noganex joined #mojo
23:52 marty joined #mojo
23:56 marty_ joined #mojo

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