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

IRC log for #mojo, 2014-05-15

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

All times shown according to UTC.

Time Nick Message
00:07 d4rkie joined #mojo
00:24 shmuel joined #mojo
00:48 punter joined #mojo
00:53 laouji joined #mojo
01:14 klapperl joined #mojo
01:52 btyler joined #mojo
01:53 hrupp_ joined #mojo
01:57 cooper joined #mojo
02:11 jwang joined #mojo
02:17 good_news_everyon joined #mojo
02:17 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/NCGMlQ
02:17 good_news_everyon mojo/master 94b9cfe Sebastian Riedel: added no_compression method to Mojo::Transaction::WebSocket
02:17 good_news_everyon left #mojo
02:26 davido__ joined #mojo
02:49 sri oh, this is a nice service for testing should there ever be replica set support in mango http://mongolab.org/flip-flop/
02:57 sri i think failover might not be very hard to implement with an available test server like that
04:00 basic6 joined #mojo
04:09 laouji joined #mojo
04:11 laouji joined #mojo
04:35 panshin joined #mojo
04:39 laouji joined #mojo
04:46 dexteruk joined #mojo
05:00 denis_boyun joined #mojo
05:07 russum joined #mojo
05:34 laouji joined #mojo
05:40 salparadise joined #mojo
05:53 dotandimet joined #mojo
05:56 denis_boyun joined #mojo
05:59 davido__ This was one cool OpenWest presentation (used Mojo::UserAgent): http://www.vintagebytes.com/tty/system-presentation.html
05:59 davido__ He was using Mojo::UserAgent to scrape content from news, wikipedia, and weather sites based on requests from 50 year old, restored teletype machines, and then dumping tidied up output back to the teletypes.
06:19 sujithm joined #mojo
06:20 basiliscos joined #mojo
06:43 dod joined #mojo
06:45 panshin joined #mojo
06:46 hummeleBop joined #mojo
06:51 ver joined #mojo
06:58 panshin joined #mojo
07:03 dotandimet joined #mojo
07:06 igorsutton joined #mojo
07:08 neyasov_ joined #mojo
07:09 panshin joined #mojo
07:11 Kulag joined #mojo
07:13 sugar joined #mojo
07:16 dod joined #mojo
07:16 Rallias joined #mojo
07:23 cooper joined #mojo
07:28 Vandal joined #mojo
07:36 dod joined #mojo
07:40 basiliscos joined #mojo
07:47 trone joined #mojo
07:47 sujithm joined #mojo
07:54 Dandre joined #mojo
07:55 shmuel_ joined #mojo
08:14 sujithm joined #mojo
08:19 Negor joined #mojo
08:21 onur joined #mojo
08:22 Su-Shee joined #mojo
08:22 Su-Shee hi.
08:23 Su-Shee is the difference between a helper db and "has db/attr db" whether or not I have access to it in the templates?
08:25 onur Hi guys. I am new to mojo. I am developing an application. It is going to have at least 8-9 controller. And whole application requires authorization. So I need to check if user is logged in before any controller and redirect user to login controller if he is not logged in. How can I do that? idk where to look. Thanks.
08:26 shmuel_ onur: you are looking for a bridge
08:26 nicomen http://search.cpan.org/~madcat/Mojolicious-Plugin-Authentication-1.26/lib/Mojolicious/Plugin/Authentication.pm
08:26 nicomen See "Routing via condition"
08:27 shmuel_ Su-Shee: helper is available everywhere. in controllers, in template.
08:28 shmuel_ putting an attribute on the app make it available only there.
08:28 onur thats great nicomen. I wasn't using Authentication plugin.
08:28 c--__ joined #mojo
08:28 shmuel_ onur: http://mojolicio.us/perldoc/Mojolicious/Guides/Routing#Bridges
08:29 shmuel_ Su-Shee: of course, you can always get the app and use it from there.
08:30 Su-Shee shmuel_: just needed clarification on the difference..
08:31 shmuel_ helper you can use directly. just call its name.
08:32 shmuel_ helper is like defining a global function to all your controllers and templates.
08:32 Su-Shee shmuel_: yes, I know that.. just wasn't sure about which is available to whom.
08:32 shmuel_ so, everything is good now?
08:32 shmuel_ :-)
08:37 basiliscos joined #mojo
08:52 edestler joined #mojo
09:02 fhelmber_ joined #mojo
09:05 panshin joined #mojo
09:08 panshin joined #mojo
09:10 Jonneh joined #mojo
09:15 laouji joined #mojo
09:30 dod joined #mojo
09:45 dexteruk joined #mojo
09:56 panshin joined #mojo
10:08 meshl joined #mojo
10:17 basiliscos1 joined #mojo
10:18 panshin joined #mojo
10:57 ver joined #mojo
10:58 xmerlin joined #mojo
11:10 sujithm_ joined #mojo
11:16 sujithm joined #mojo
11:17 leejohnson joined #mojo
11:24 Lee joined #mojo
11:25 denis_boyun joined #mojo
11:27 dotan joined #mojo
11:30 Lee joined #mojo
11:35 neilhwatson joined #mojo
11:37 sujithm_ joined #mojo
11:39 sujithm__ joined #mojo
11:59 eseyman joined #mojo
12:01 asarch joined #mojo
12:03 dod joined #mojo
12:19 neyasov_ joined #mojo
12:27 basiliscos joined #mojo
12:41 dod joined #mojo
12:46 laouji joined #mojo
12:50 neyasov_ joined #mojo
12:52 neyasov__ joined #mojo
12:54 laouji_ joined #mojo
12:55 panshin joined #mojo
12:57 laouji joined #mojo
13:02 * sri yawns
13:04 sri Su-Shee: has/attr is just an accessor generator for attributes, helpers are methods that are available in a lot of places
13:05 arthas joined #mojo
13:05 sri it's not just scope, it's completely different concepts
13:07 zivester joined #mojo
13:08 Mikey joined #mojo
13:18 laouji joined #mojo
13:25 Eke|| joined #mojo
13:38 gryphon joined #mojo
13:41 d4rkie joined #mojo
13:50 btyler joined #mojo
13:52 neyasov__ joined #mojo
13:53 bluescreen joined #mojo
14:01 sri i find the lack of breaking changes in 5.0 disturbing :o
14:03 mishantil Breaking changes in projects like these are usually a big deterrent, so not introducing those is IMHO a good thing for the projects survivability.
14:03 d4rkie joined #mojo
14:06 nicomen ut it hinders evolution!!
14:06 nicomen +b
14:06 r0b3rt joined #mojo
14:07 dod joined #mojo
14:10 sh4 joined #mojo
14:13 rem_lex|pivo joined #mojo
14:15 neyasov__ joined #mojo
14:21 stephan48 mishantil: breaking changes are a way to make people aware of the fact that mindless updates are a bad idea...
14:22 moritz that's a very self-centric view
14:22 moritz there are thousands of packages installed on every production machine
14:23 moritz being mindful about upgrading every single one of them is basically impossible
14:23 stephan48 moritz: and a view which is by no means be meant serious :)
14:23 moritz so you just upgrade everything, do your unit and acceptance tests, and see what breaks
14:23 moritz stephan48: good :-)
14:24 mishantil stephan48: heh. Thanks for clarifying. You saved me some typing just now. :p
14:24 mishantil ...although I could have let moritz finish.
14:24 davido__ You could consider the slight change in number detection semantics in Mojo::JSON to be a breaking change. Although it's now more in line with expectations, it could possibly break some existing code.
14:25 mishantil We once had our ass severely bitten by using Data::Dumper to 'pretty-print' some data into a log-file.
14:26 mishantil None of us considered the fact that Data::Dumper changes your data.
14:26 mishantil ..talking about expectations. :p
14:26 moritz mishantil: I just recently debugged a related bug in Data::Dump
14:26 mishantil moritz: Fun eh?
14:26 moritz which set some SV flags
14:26 moritz mishantil: aye
14:28 sri haha, and suddenly it's not as silent anymore :D
14:29 mishantil sri: you tease
14:35 sh4 joined #mojo
14:39 sri although there's a breaking Mojo::Log change i've been considering for some time
14:39 sri http://pastie.org/9178727
14:39 sri this way it would be very easy to modify the message format
14:39 sri and the 404/500 templates would share the same formatting logic
14:42 mishantil Don't think we would get issues with that, but then again we don't really use Mojo::Log for much.
14:42 sri i doubt it would affect many, just the few people that monkey patch format or overload it in a subclass
14:43 sri i've seen people monkey patch it... which is why i want the change :)
14:44 igorsutton joined #mojo
14:48 bluescreen_ joined #mojo
14:54 good_news_everyon joined #mojo
14:54 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/dmTAAw
14:54 good_news_everyon mojo/master f6488e5 Sebastian Riedel: made formatting of log messages more customizable
14:54 good_news_everyon left #mojo
14:55 sri anyway, when i say breaking changes i don't really mean breaking big stuff... just fix the little quirks... like lock/unlock callbacks not being consistent with all other callbacks kept in attributes
14:56 sri (the others being Mojo::Log::format and Mojo::Template::escape)
14:56 sri not actually a pattern we use much since Mojo::EventEmitter
15:04 * sri wants more quirks found and fixed!
15:06 * moritz sets sri into quirks mode
15:12 nicomen <!DOCTYPE sri PUBLIC>
15:15 neyasov__ joined #mojo
15:16 rem_lex| joined #mojo
15:17 neyasov___ joined #mojo
15:21 fhelmber_ joined #mojo
15:26 beyondcreed joined #mojo
15:32 sri hÃ⁠¤Ã⁠¤yÃ⁠¶
15:36 tianon haha, if browsers supported DOCTYPE sri, I'd be all over that :D (especially since we can assume it would error out on bad markup)
15:50 abra joined #mojo
15:51 good_news_everyon joined #mojo
15:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/6gzrAw
15:51 good_news_everyon mojo/master 84dbd46 Sebastian Riedel: more consistent callback examples
15:51 good_news_everyon left #mojo
15:57 sri bye bye net neutrality
15:58 sri just minutes after the fcc vote comcast announces data caps... this is gonna end well
15:59 alnewkirk joined #mojo
16:01 sri get your shit together americans!
16:05 davido__ I guess we'll have to lay some fiber under the ocean to a net-neutral country to regain neutrality in the US.
16:06 sri eu has net neutrality laws
16:07 Lee joined #mojo
16:07 sri https://gigaom.com/2014/04/03/european-parliament-passes-strong-net-neutrality-law-along-with-major-roaming-reforms/
16:07 sri in fact, i'm really looking forward to roaming reforms
16:13 btyler gah. terrible week for the internet between that and DRM in all major browsers
16:14 * sri nods
16:15 btyler only a matter of time until we start seeing things like "don't worry, watching content via EME or Authorized Mechanisms won't count towards your data cap!"
16:15 sri it won't be that simple
16:16 sri netflix will pay comcast, which then won't count towards your data cap, and you have to watch netflix with an EME module that only works on windows
16:17 sri and you'll be paying double for netflix *and* comcast anyway
16:17 btyler I was envisioning a much evil-er phone home in the binary EME blob
16:17 sri oh, it does phone home too
16:17 btyler wouldn't be the first time a DRM feature was actually a rootkit
16:18 sri in case you missed my tweet from yesterday :) https://twitter.com/kraih/status/466725265008525312
16:18 neyasov___ joined #mojo
16:18 panshin joined #mojo
16:18 btyler and here I thought I was being cynical and pessimistic...that's awful.
16:19 sri *but*
16:19 sri the phone home traffic does not count towards your pathetic data cap \o/
16:19 sri :p
16:20 btyler arrrrrrgh
16:20 dabudabu Oh really? Where do I sign up?!
16:24 odc joined #mojo
16:44 Lee joined #mojo
16:46 denis_boyun joined #mojo
16:52 batman anyone who got plans for the mojoconf hackathon? http://www.mojoconf.org/mojo2014/wiki?node=hackathon
16:56 panshin joined #mojo
17:11 stokachu joined #mojo
17:19 neyasov___ joined #mojo
17:23 panshin joined #mojo
17:29 trone joined #mojo
17:37 ua joined #mojo
17:44 fhelmber_ joined #mojo
17:51 sri batman: somehow i can't link to myself
17:51 batman it's because act sucks. you need to use your id: [user:10520]
17:53 sri ewwww
17:53 batman i know. next time i'm involved, i'm forking act.
17:53 batman s/forking act/writing my own thing/
17:57 cpan_mojo Mojolicious-Plugin-MethodOverride 0.030 by Bernhard Graf - http://metacpan.org/release/GRAF/Mojolicious-Plugin-MethodOverride-0.030
18:00 Akron joined #mojo
18:00 panshin joined #mojo
18:05 doby joined #mojo
18:19 dod joined #mojo
18:19 neyasov___ joined #mojo
18:28 onur hi guys. What happens if user changes expiration time of session cookie in his browser? does mojo checks timestamp of cookie?
18:29 onur I mean session
18:31 stephan48 onur: no, i don't think so, but you could write that yourself
18:31 sri there's a timestamp in the cookie value
18:32 stephan48 interesting
18:41 mishantil So what are peoples wishes for mojoconf? Anything in particular people want to get out of it?
18:45 Lee joined #mojo
19:09 neyasov___ joined #mojo
19:11 marcus mishantil: I just wonder how I'll manage to stay sober until my talk at the end of the day.
19:11 marcus ;-)
19:12 mishantil Shaky nerves?
19:22 sri and i wonder how i'll manage to give my talk sober, since it's in the morning :O
19:23 marcus sri: let's have a jaeger shot for breakfast and solve both our problems ;)
19:26 asarch joined #mojo
19:30 denis_boyun_ joined #mojo
19:33 sri \o/
19:33 stephan48 haha
19:34 davido__ onur: The point to signed cookie based sessions is that it's difficult for a client to modify them without invalidating them.  ...difficult meaning just a few inches short of impossible.
19:35 stephan48 and then there will be a note on the talk room door: "sorry but all speakers are drunk, please meet us at the bar"
19:35 marcus There's actually a bar in the 1st floor of the conference.
19:35 davido__ but sufficiently hard to make it impossible in practical terms.
19:35 stephan48 oops
19:35 marcus http://www.kulturhusetioslo.no/
19:36 onur yes I know that davido__ but it's only true for its content. People can edit their cookie expiration time in their browser, but sri said there is a timestamp in cookie, it shouldn't be a problem.
19:37 dexteruk_ joined #mojo
19:42 davido__ By the way, where are the tests for the DefaultHelpers plugin?  I was thinking I would find a plugin path under t/Mojolicious...
19:44 kbenson1 joined #mojo
19:45 sri davido__: impossible, unless you can break hmac-sha1
19:46 davido__ sri: That's what I meant by impossible in practical terms. Theoretically it's not 100% impossible, just hard enough that it may as well be impossible.
20:06 Akron joined #mojo
20:11 Akron Regarding the hackathon: Wasn't there an idea for a non-blocking mail client ages ago?
20:16 mishantil Lets make a regex to parse html while we're at it. :)
20:16 davido__ ^++
20:21 igorsutton joined #mojo
20:27 sri that reminds me, i actually wanted to try parsing JSON with a single regex in Mojo::JSON :)
20:28 tempire It's good to know it's not only me that thinks Act is horrible.
20:28 tempire It needs to die.
20:34 mishantil tempire: ++
20:35 tempire Maybe that's what the hackathon should be.
20:35 mishantil Making time to get an alternative up and running is hard though. :p
20:35 tempire A conference site/registration software that DWIM
20:35 tempire It could be called JDTT
20:35 tempire "Just do the thing"
20:35 mishantil Digs Women In Mustard?
20:36 mishantil O_o
20:44 bars0 joined #mojo
20:50 neyasov_ joined #mojo
21:08 meshl joined #mojo
21:31 rem_lex joined #mojo
21:44 fhelmber_ joined #mojo
21:47 sugar_ joined #mojo
21:51 cpan_mojo Mojolicious-Plugin-AppCacheManifest 0.01 by Simon Bertrang - http://metacpan.org/release/JANUS/Mojolicious-Plugin-AppCacheManifest-0.01
21:52 janus joined #mojo
21:53 janus hi, just uploaded a first release of this: https://github.com/sbertrang/mojolicious-plugin-appcachemanifest
21:57 jberger_ joined #mojo
21:58 jberger_ janus: we know,  cpan_mojo  beat you to it ;-)
21:58 jberger_ \o/
21:59 janus well, yes - also realized my client wasn't running :/
21:59 janus either way more goodness now ;)
22:00 jberger_ I'm just proud of my stupid bot
22:00 jberger_ Ignore me
22:00 janus nah, without having looked I like my guess, so let me see ;)
22:00 panshin joined #mojo
22:02 janus using Mojo::IRC? didn't know - so nice already
22:03 meshl joined #mojo
22:03 janus or one of your own?
22:05 janus that's actually kind of a hello world thing for me (too?) :)
22:08 jberger_ https://github.com/jberger/Mojo-FriendFeed/blob/master/ex/cpan.pl
22:11 janus nice and pretty small for what it does
22:14 janus and more capable than most of the stupid bots I've written ;)
22:15 punter joined #mojo
22:15 meshl joined #mojo
22:17 sjn joined #mojo
22:17 jberger_ A testament to the tools it's built upon
22:17 sjn \o
22:18 sjn so, tempire's mojolicious class is sold out \o/
22:18 sjn that's kinda neat :)
22:18 jberger_ Wow
22:18 jberger_ tempire++
22:19 disputin joined #mojo
22:20 sjn I'd say that's a nice indication that there's a market for Mojolicious out there. :)
22:22 tempire Or it's an indication that nordaaker has a good reputation
22:23 tempire or knows how to advertise to the local market
22:23 tempire or that I'm just.that.pretty.
22:23 bluescreen joined #mojo
22:23 sjn or there's a dire need for courses featuring glitter :)
22:24 tempire That's a given.
22:29 sri i think the nyancats sold it
22:30 jberger__ joined #mojo
22:31 jberger_ joined #mojo
23:07 d4rkie joined #mojo
23:19 neyasov_ joined #mojo
23:19 jberger__ joined #mojo
23:23 jberger_ joined #mojo
23:23 jberger_ joined #mojo
23:24 rem_lex|pivo joined #mojo
23:46 Dandre joined #mojo

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