The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2015-11-01

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

All times shown according to UTC.

Time Nick Message
00:14 sri \o\
00:14 sri /o/
00:20 jberger so far only 127 trick-or-treaters
00:20 jberger a light year
00:20 jberger probably because it was raining
00:21 jberger but we still have 40mins to go
01:00 jontaylor joined #mojo
01:00 mmp_ can you namespace routes?
01:01 mattp like if you're setting up simple nested resources, whats the best way to do that
01:05 mattp ah I guess you can conditionally attach, ie my $user = $r->any('/user/:id')->to(...); $user->get('/posts/:id')->to(...);
01:08 asarch joined #mojo
01:30 jberger mattp: routes with children cannot match on their own though
01:31 jberger So if you want a user page you'll need $user->get('/');
01:32 mattp jberger: this is strictly for a rest api
01:32 mattp guess it doesnt matter
01:35 mattp jberger: why is that? seems counterintuitive
01:35 sri for a time there was actually a way, we called it waypoints, and it was terrible
01:36 mattp sri: using child routes is what I want to model nested resources though, right?
01:38 sri i don't know what that means
01:39 mattp /users/:user_id/posts/:post_id/upvotes/:upvote_id
01:40 mattp creating the crud routes for upvote and posts which hinge on their parents
01:43 sri the documentation doesn't cover that well enough?
01:43 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Routing#Nested-routes
01:46 mattp sri: it does. was trying to figure out if there was an alternate way, like scoping your routes via sub, ie $r->get('/foo...' => sub { $r->get('/bar'); });
01:46 mattp thanks
01:48 sri that would be more verbose
02:01 jontaylor joined #mojo
03:07 nnutter joined #mojo
03:11 jontaylor joined #mojo
03:37 Grinnz <jberger> oh man, I switched from my ADSL that had been prone to dropping on me
03:37 Grinnz you in the big leagues now
03:37 asarch joined #mojo
03:37 Grinnz i was all for DSL like 10 years ago, but it just can't compete, and the phone companies are just as bad as the cable companies, so i finally gave in
03:37 Grinnz never looked back
03:39 Grinnz batman, nope you cant do "insert set", only "insert values", "insert select", or "insert default values"
03:39 Grinnz i liek the "insert set" syntax but its not really needed i guess
03:40 Grinnz jberger, eww combo routers, though :(
03:40 good_news_everyon joined #mojo
03:40 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vlCN7
03:40 good_news_everyon mojo/master 7278488 Sebastian Riedel: show how to run multiple web servers concurrently
03:40 good_news_everyon left #mojo
03:41 Grinnz when i moved here i asked the guy who was installing my cable if i could use my own docsis 3.0 modem, he was like sure man no problem, thats how i knew i'd like this cable company
03:41 Grinnz (Cablevision)
03:41 sri dsl works pretty well in germany
03:42 sri we get good routers made in germany though, which i think i've mentioned before :)
03:42 Grinnz DSL here maxes out at 6 Mbps unless you get the AT&T uverse which maxes out at like 18 or 24, and AT&T is horrible
03:43 Grinnz their modem routers are horrible, their service is horrible
03:43 Grinnz with verizon you get fios which is much better
03:43 Grinnz but thats not DSL anymore heh
03:43 sri http://www.amazon.com/FRITZ-Box-Fon-WLAN-7390/dp/B004EBGQYU/ref=sr_1_1?ie=UTF8&amp;qid=1446349367&amp;sr=8-1&amp;keywords=fritzbox
03:44 sri 50-100mbps here
03:45 Grinnz my cable is 50/30, i could upgrade to 75/35 or 101/35
03:46 Grinnz i've been thinking about upping to 75 but the 101 is too expesnive lol
03:47 sri you get 50 or 100 here depending on the quality of the cables, no price difference :)
03:47 Grinnz thats just cheating :P
03:48 sri think it's 40 euro per month with flatrate for everything atm.
03:49 Grinnz dayum my bot says thats $44
03:50 sri lots of competition
03:51 Grinnz the only competition we have is between whatever phone company your area has, whatever cable company your area has, and (lol) sattelite or 56k
03:52 Grinnz sattelite is nice for TV, not so nice for internet where latency matters
03:53 * sri has netflix instead of a tv ;p
03:53 Grinnz same lol
03:53 Grinnz i used to have Dish Network, when you could pay $35 a month and get the good stuff, now its all 12 month specials and then you're paying like $65 a month
03:54 Grinnz so basically the same or more than it woudl cost for me to just get cable tv
03:54 sri :o
03:54 Grinnz and then netflix is $8 a month and amazon prime is $100 a year
03:54 Grinnz lol
03:56 sri on the flipside, our eu politicians just screwed up net neutrality and "fast lanes" might become legal :S
03:56 Grinnz that keeps coming up again
03:58 sri deutsche telekom already announced that they'll be offering fast lanes to startups for a share of their profits... "nice data you have there... wouldn't it be a shame if something happened to it in transit?"
04:01 sri eu politics is so messed up... all the governments just sends their undesirables to brussels so they can't do any real damage... until they find a way to do
04:03 sri s/s//
04:12 jontaylor joined #mojo
05:00 bpmedley joined #mojo
05:13 jontaylor joined #mojo
05:15 mishanti1 joined #mojo
05:16 Ralesk joined #mojo
05:18 Jonis joined #mojo
05:19 Quai joined #mojo
05:31 sri we've not revisited the topic of clearing an attribute value yet btw.
05:32 sri delete $object->{foo}
05:32 kaare_ joined #mojo
05:32 sri the more i think about it the less i mind it actually
05:32 sri there's already the problem with weaken
05:33 sri weaken $object->foo($bar)->{foo};
05:53 sri guess ->weaken_attr('foo') would be better for fluent interfaces
05:54 sri $object->foo($bar)->weaken_attr('foo')
05:54 sri this would be the time for someone to bring up weakened attributes in moose ;p
05:55 sri to which i reply that in practice it can be rather clunky
05:55 sri since the caller often decides if something needs to be weakened
05:59 sri hehe, i guess the most pragmatic solution would be to give every attribute a clearer and weaken method :)
06:00 sri "has 'foo';" becomes $object->foo(...) and $object->clear_foo and $object->weak_foo(...)
06:13 jontaylor joined #mojo
07:14 jontaylor joined #mojo
07:31 crab your foo is weak!
07:32 batman Grinnz: thanks
07:32 crab p.s. after a shameful number of years, i ditched all the cgi scripts that were gluing my (personal) web site together and replaced them with a small Mojolicious::Lite program running behind nginx (and not nginx->apache->cgi as before).
07:32 crab i feel so much happier.
07:40 batman crab++ :)
07:48 irqq joined #mojo
08:00 asm35 joined #mojo
08:18 Vandal joined #mojo
09:16 jontaylor joined #mojo
09:18 Craftsmanship joined #mojo
10:17 jontaylor joined #mojo
10:35 moritz left #mojo
10:51 jontaylor joined #mojo
11:19 trone joined #mojo
11:55 sh4 joined #mojo
12:35 jberger crab++
12:36 jberger Grinnz: I finally switched because comcast gave me  $89 for 75/15 speeds and tv and hbo (2 year term)
12:36 jberger That was too good to pass up
12:37 jberger And yes I'd been without cable tv for a year, I couldn't do it anymore
12:37 crab i've been without cable tv for >10 years.
12:37 jberger Too many of my sports teams are on cable
12:37 crab also, don't you mean you give comcast $89 for ...? :-)
12:38 jberger They gave me the rate of ...
12:38 crab it'd be pretty sweet if comcast gave you $89 every month.
12:38 jberger Hahaha
12:38 jberger But I'd have to provide them with cable tv
12:38 * jberger scrabbles about for content
13:06 punter joined #mojo
13:43 sri hard to believe what a bad show heroes reborn is
13:43 sri better watch some doctor who to quickly forget about it again
13:44 jberger I, like most people I think, really liked the first few episodes of the original, and was amazed that they hadn't even thought through to the end of the first season
13:44 jberger sounds like they didn't do much better on the second time around?
13:49 coolo yeah, I'm really suprised they even managed a fourth season - the story was already so bad in 3rd that I stopped
13:54 ajr_ joined #mojo
14:01 Craftsmanship joined #mojo
14:01 jberger how did you make it to 3? I made it exactly one episode into the second
14:01 jberger and even then holding my nose after the season 1 finale
14:10 Craftsmanship Nostalgia isn't ever as good the second time :(
14:11 coolo jberger: well, I admit Hiro and the Bennet girl's story was what kept me
14:12 sri even hiro is unlikable now
14:17 coolo but interestingly enough he's in the list of the Heroes Reborn cast
14:18 coolo ah, you mean that "now" :)
14:33 chorny joined #mojo
14:40 zivester joined #mojo
14:49 marty joined #mojo
14:52 trone_ joined #mojo
15:02 lluad joined #mojo
15:47 PryMar56 joined #mojo
15:50 nnutter joined #mojo
16:35 Grinnz jberger, luckily i dont watch sports ;)
17:54 nnutter joined #mojo
18:22 stephen joined #mojo
18:26 ajr_ joined #mojo
19:14 zivester joined #mojo
19:58 mattp http://stackoverflow.com/questions/13513217/rendering-errors-in-proper-format-inside-under-on-mojoliciouslite
19:58 mattp Is this the best way to do this?
19:59 mattastrophe joined #mojo
20:00 mattp Maybe I should not use under instead. I just want to do the equivalent of chaining in catalyst. ie, stuff $user in the stash when hitting /user/5/posts
20:02 mattp and if say user doesn't exist, Bomb out in the under
20:06 mattp oops. Error on my part. Respond_to calls render, I just need to do that and return 0. nevermind!
20:16 meshl joined #mojo
20:37 jberger Grinnz: Chicago ... sports ... its almost not optional
20:37 jberger preaction excepted
20:38 preaction jberger: you gotta find the right people, i think ;)
20:39 preaction that said, the vehement anti-sports people are annoying too. calling it "sportsball" and using sports as a verb...
20:39 bpmedley joined #mojo
20:44 stephen joined #mojo
20:46 jberger and those uncouth english who persist in calling it "sport"
20:46 preaction or "football"
20:47 jberger exactly
20:57 Grinnz "footie"
21:00 nnutter joined #mojo
21:09 ajr_ joined #mojo
21:35 pink_mist joined #mojo
22:23 jes joined #mojo
22:46 FatalNIX so I'm trying to figure out the best way to listen on IPv6 with Mojolicious. what would you recommend?
22:47 FatalNIX with hypnotoad, I tried app->config( hypnotoad => { listen => ['http://*:3000'] ... but that didn't do nothing when I ran it with hypnotoad. I even added [::0]:3000 to it and without the brackets, nothing
22:48 FatalNIX of course I don't really need hypnotoad, I was just curious how you guys would do it
22:48 preaction i think you need to install IO::Socket::IP
22:49 FatalNIX i do have IO::Socket::INET6 installed
22:49 FatalNIX I have never heard of this IP module
22:49 FatalNIX it's up to date, whatever it is
22:50 Grinnz IO::Socket::IP handles IPv6 transparently, no need for INET6
22:50 Grinnz and that's required for mojo anyway
22:51 Grinnz i dont really have a good ipv6 network to try it on though
22:51 preaction https://groups.google.com/forum/#!msg/mojolicious/hWUVgcC6f2M/NCUzXgmZVoYJ <- this thread might be helpful?
22:51 bpmedley FatalNIX : http://mojolicio.us/perldoc/Mojo/Server/Daemon#listen
22:51 bpmedley * only works on IPv4, I believe
22:52 Grinnz yeah, [::] not [::0]
22:52 FatalNIX oh, I'm used to using 0 at the end heh
22:52 FatalNIX dunno why
22:53 BinGOs what OS are you running this on?
22:56 Grinnz BingOS
22:56 pink_mist lol
22:56 pink_mist I'd assume FatalNIX is using Slackware
22:57 preaction wouldn't that be frightening? Windows rebranded as BingOS...
22:58 BinGOs I know FatalNIX hangs out on #freebsd over on freenode
22:58 Adura Something terrible would have to happen to the word windows for that to happen...
22:58 pink_mist BinGOs: oh I see; I know him from ##Slackware =)
22:59 BinGOs anyways, ipv6 sockets are v6only on FreeBSD (on all the *BSDs actually)
23:00 BinGOs so you don't get that magical ipv6-and-ipv4-ness
23:24 mattastrophe joined #mojo
23:36 FatalNIX BinGOs: Slackware, FreeBSD, whatever I clone the git repo to
23:36 FatalNIX the server itl live on will be Slackware
23:36 FatalNIX i usually have servers / workstations / laptops that are either that or that.
23:37 FatalNIX BinGOs: I actually thought that was a Windows limitation, not a FreeBSD thing
23:37 FatalNIX with having a combination ipv4 / ipv6 listening socket using IO::Socket::INET
23:38 pink_mist ::INET can't do ipv6 at all
23:38 pink_mist you want ::IP
23:38 FatalNIX We intend to -only- listen on v6 anyways in the end
23:38 FatalNIX pink_mist: well, you know what I mean
23:39 pink_mist /even if/ you don't want ipv4, you still don't want to use ::INET6. you still want ::IP =)
23:39 FatalNIX :)
23:39 FatalNIX I had never even heard of that until tonight?
23:39 FatalNIX how long has that been relevant?
23:39 pink_mist couple of years :P
23:39 pink_mist at least since before slackware 14.1 came around :P
23:41 FatalNIX LOL
23:41 FatalNIX but not since 10.2?
23:44 qwdefwrf joined #mojo
23:46 meshl joined #mojo
23:46 FatalNIX pink_mist: I really like Slackware, it's about all I can handle for Linux as far as bullshit is concerned, but i've been growing really acustomed to BSD in the past several years and I sort of wonder if I only use Slackware now for my Xen dom0s.. what I will be doing when FreeBDSD dom0 support becomes stable in head..
23:47 FatalNIX I honestly like the FreeBSD kernel architecture a lot better than Linux's. The syntax style is a bit dirty, but it feels a bit cleaner of a base, even though they're both monolithic.
23:48 pink_mist if only it had as good hardware support as linux :/
23:48 FatalNIX I agree.
23:50 FatalNIX Although I have heard in the past that one of the problems that led to the intruction of 2.6 becoming 3.0 was too much hardware support for devices that are absolutely useless now for 90% of us.
23:54 pink_mist https://lkml.org/lkml/2011/7/21/455 <-- "it's simply a way to drop an inconvenient numbering system"
23:56 FatalNIX Yeah I remember that explanation
23:59 jberger I've come to appreciate FreeBSD if only for the rc.subr init system
23:59 jberger its the only system I've successfully written init scripts for
23:59 jberger non-sysadmin that I am
23:59 preaction yeah. if the BSDs adopt systemd, all is lost :p

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