Camelia, the Perl 6 bug

IRC log for #mojo, 2013-06-01

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

All times shown according to UTC.

Time Nick Message
00:01 SmokeMachine joined #mojo
00:07 sri :)
00:07 sri well, then lets change that
00:07 * sri just thought of a feature he wants to add
00:18 radixo joined #mojo
00:29 sri hmm... actually not as much fun as i thought :/
00:30 sri $res->links(next => 'http://example.com/foo/3', previous => 'http://example.com/foo/1')
00:30 sri my $next = $res->links->{next};
00:31 sri was thinking about something like that... but the RFC has tons of edge cases
00:34 good_news_everyone joined #mojo
00:34 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/YK6Yzw
00:34 good_news_everyone mojo/master 1450fa7 Sebastian Riedel: added link method to Mojo::Headers
00:34 good_news_everyone left #mojo
00:34 sri well, i can at least do that... still 8888 lines though
00:56 sri http://tools.ietf.org/html/rfc5988 # the rfc btw.
01:26 cooper joined #mojo
01:44 d4rkie joined #mojo
01:56 Meiermann joined #mojo
02:00 good_news_everyone joined #mojo
02:00 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/h3QQ8A
02:00 good_news_everyone mojo/master eaca9da Sebastian Riedel: added vary method to Mojo::Headers and updated after_render recipe
02:00 good_news_everyone left #mojo
02:03 asarch joined #mojo
02:07 good_news_everyone joined #mojo
02:07 good_news_everyone [mojo] kraih tagged v4.10 at 9564780: http://git.io/j1mg_g
02:07 good_news_everyone left #mojo
02:10 mire joined #mojo
02:16 Caelum so mojo4 is out
02:16 Caelum does it break all mojo3 code or only some mojo3 code?
02:18 Caelum not that I particularly care, because my previous employer was a douche
02:47 ajmrch joined #mojo
02:48 crab is there an upgrading-to-4 howto?
02:59 egopro joined #mojo
03:05 fildon__ joined #mojo
03:40 senthil1 joined #mojo
03:58 senthil joined #mojo
04:04 Caelum I was going to implement carton there, but didn't get a chance
04:06 crab carton?
04:19 russum joined #mojo
04:20 russum left #mojo
04:20 d4rkie joined #mojo
04:20 senthil1 joined #mojo
04:22 russum joined #mojo
04:29 russum left #mojo
04:32 inokenty joined #mojo
04:34 jberger_ http://p3rl.org/Carton
04:34 zivester joined #mojo
04:35 D4RK-PH0ENiX joined #mojo
04:41 egopro joined #mojo
04:43 d4rkie joined #mojo
04:48 D4RK-PH0ENiX joined #mojo
04:53 senthil joined #mojo
04:59 d4rkie joined #mojo
05:02 senthil1 joined #mojo
05:03 crab cool. i just replaced all the render_foo() calls and put hmac_hmd5_sum back and everything works with 4.10.
05:06 senthil joined #mojo
05:23 senthil joined #mojo
05:47 basiliscos joined #mojo
05:49 Britzel_ joined #mojo
06:03 d4rkie joined #mojo
06:05 senthil1 joined #mojo
06:15 senthil joined #mojo
06:26 jnbek joined #mojo
06:27 ynonp joined #mojo
06:36 dod joined #mojo
06:37 egopro joined #mojo
06:58 dod joined #mojo
07:18 d4rkie joined #mojo
07:24 d4rkie joined #mojo
07:24 trexy joined #mojo
07:30 d4rkie joined #mojo
07:31 Vandal joined #mojo
07:33 egopro joined #mojo
07:37 denisboyun_ joined #mojo
07:39 D4RK-PH0ENiX joined #mojo
07:41 d4rkie joined #mojo
07:53 jzawodn joined #mojo
08:07 ynonp joined #mojo
08:41 senthil joined #mojo
08:44 egopro joined #mojo
09:05 senthil joined #mojo
09:19 Vandal joined #mojo
09:47 dod1 joined #mojo
09:48 dod1 joined #mojo
10:06 ghandi joined #mojo
10:06 ghandi Hi there! Doesn't have lite-Apps the has(accessor => sub {})-Method?
10:06 ghandi And can i simply include Mojo::Base to get it?
10:07 ghandi Because i fight the "MySQL Server has gone away" problem in a lite app. Whil in the Full-App with the has()-Method i don't get these troubles
10:09 ghandi Ahh, found it myself. :D https://github.com/kraih/mojo/wiki/Hyp​notoad-prefork-web-server#wiki-___top
10:45 mire joined #mojo
11:04 ladnaV joined #mojo
11:15 d4rkie joined #mojo
11:16 dsteinbrunner joined #mojo
12:29 Vandal joined #mojo
12:37 senthil joined #mojo
12:49 ynonp joined #mojo
13:03 ladnaV joined #mojo
13:11 sh4 joined #mojo
13:12 ynonp joined #mojo
13:24 ynonperek_ joined #mojo
13:49 ynonp joined #mojo
13:54 ynonp joined #mojo
13:55 jberger joined #mojo
13:59 dsteinbrunner joined #mojo
15:48 inokenty joined #mojo
15:56 senthil joined #mojo
15:58 senthil left #mojo
16:19 libsysguy joined #mojo
16:22 ynonp joined #mojo
16:22 moltar joined #mojo
16:31 ynonp joined #mojo
16:35 libsysguy so I am trying to make an application with multiple parts that can be run independently but they all need to use the user authentication piece.  Is there a way of linking apps like that.  The issue I am running into is I am using DBIx::Class for the ORM and I don't want to have to include the schema from the other app every time.
16:35 Britzel_ look for "mount"
16:35 libsysguy I am kind of wondering if a REST API would be best for the user system
16:36 Britzel_ in Mojolicious docs
16:36 libsysguy mount it is then :)
16:36 libsysguy thanks Britzel
16:36 Britzel_ No, wait, probably got you wrong.
16:37 Britzel_ 'mount' allows you to mount independent Mojo apps under the same server with a combined URL scheme.
16:37 libsysguy well that could still be helpful
16:37 Britzel_ Of course you can share certain information, but that still means that you have to include the modules in each app.
16:37 libsysguy I'm still pretty green with mojo :p
16:37 Britzel_ So am I, just a few days ahead :)
16:38 Britzel_ But it's awesome :)
16:38 libsysguy it totally is, at least in my experience so far
16:38 libsysguy it has been a bit painful converting my old stuff
16:38 libsysguy but any migration is painful imo :p
16:40 ynonp joined #mojo
16:42 bjoernfan Figure you've already seen this, but I can't see it in backlog, so... Java mongo driver: https://github.com/mongodb/mongo-ja​va-driver/blob/master/src/main/com/​mongodb/ConnectionStatus.java#L213
16:43 libsysguy yeah I am still blown away by that
16:43 libsysguy bjoernfan did you see the jira ticket about it
16:48 libsysguy Britzel I guess if I mounted the app it wouldn't be hard to make calls for basic things like finding a user and authenticating
16:49 libsysguy my intention is to reduce code redundancy but I am afraid that I am going to introduce some latency
16:49 bjoernfan Wasn't the jira thing about Python?
16:50 Britzel_ libsysguy: Why not put all the auth code in a module and use that in each app?
16:50 libsysguy I think it was the python driver for mongo bjoernfan
16:51 libsysguy I suppose that would work if I was going to have to use the database schema anyway
16:51 libsysguy ^^ makes no sense to anyone except me, I'm sure of it
17:14 jberger sounds like libsysguy should make a plugin for his db stuff
17:14 jberger then each app can use the plugin
17:14 jberger I won't be around much today, if someone sees him come back, maybe say so
17:17 d4rkie joined #mojo
17:27 sri bjoernfan: and those drivers are still miles ahead of the official perl driver :S
17:29 * sri is getting a headache thinking about http headers
17:29 sri Link: </TheBook/chapter2>; rel="previous"; title*=UTF-8'de'letztes%20Kapitel
17:29 sri stuff like that...
17:30 sri been thinking about a) making Link header management easier, and b) adding a sane general purpose http header tokenizer
17:31 asarch joined #mojo
17:32 sri there is "something" in the Mojo::Cookie base class, perhaps it could be made more reusable
17:36 sri http://tools.ietf.org/html/rfc5987 # at least the * belongs to the name, not the =
17:36 moltar joined #mojo
18:00 sri hmm, the tokenizer from Mojo::Cookie works pretty decent actually :o
18:01 sri just the expires special case is in the way
18:05 life_unit joined #mojo
18:06 life_unit ntcn
18:06 life_unit òåñò
18:08 life_unit êòî áîëåå ìåíåå ìîäæî çíàåò ïîäñêàæèòå ìíå
18:19 asarch joined #mojo
18:28 rem_lex|pivo joined #mojo
19:01 ajmrch joined #mojo
19:28 denisboyun__ joined #mojo
19:28 basiliscos joined #mojo
19:39 Kov|sumika joined #mojo
19:48 good_news_everyone joined #mojo
19:48 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/bl-Xdw
19:48 good_news_everyone mojo/master 180cf67 Sebastian Riedel: added parse_header function to Mojo::Util and fixed a few boundary and charset detection bugs
19:48 good_news_everyone left #mojo
19:48 sri that should come in handy for *a lot* of things :)
20:00 good_news_everyone joined #mojo
20:00 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/2T3_SA
20:00 good_news_everyone mojo/master 0bff603 Sebastian Riedel: make sure broken Expires values are handled gracefully
20:00 good_news_everyone left #mojo
20:11 good_news_everyone joined #mojo
20:11 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/r2Zj1w
20:11 good_news_everyone mojo/master 03a1f9c Sebastian Riedel: another parse_header test
20:11 good_news_everyone left #mojo
20:17 sh4|2 joined #mojo
20:18 sri review of parse_header and its tests would be appreciated
20:19 sri it has the potential for horrible backcompat breakage in case of bugs
20:20 sri if anything parse_header does is wrong according to an RFC, the RFC will win
20:21 sri i'm bookmarking this call for comments in case someone complains about breakage in the future :)
20:27 sri still unsure about how to do web linking though
20:28 sri $self->res->links(next => $self->url_for(list_books => {id => 23})) seems kinda neat though
20:29 sri my $url = $self->res->links->{next};
20:39 good_news_everyone joined #mojo
20:39 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/-BsLsg
20:39 good_news_everyone mojo/master 25c46e4 Sebastian Riedel: fixed small quality detection bug in Mojolicious::Types
20:39 good_news_everyone left #mojo
20:40 sri we could really use more HATEOAS fans around here :/
20:48 perlite_ joined #mojo
21:25 good_news_everyone joined #mojo
21:25 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/FXDreg
21:25 good_news_everyone mojo/master 356a6a7 Sebastian Riedel: small optimizations
21:25 good_news_everyone left #mojo
21:28 mire joined #mojo
21:58 sri http://docs.python-requests.org/en/​latest/user/advanced/#link-headers # example for a user agent that handles link headers
21:59 sri my $url = $self->res->links->{next}{url}; doesn't look so nice though
22:00 sri no clue how to create link headers either
22:01 sri $self->res->links({rel => 'next', url => $self->url_for('foo', {id => 23})});
22:03 sri github api is not a bad example for HATEOAS
22:03 sri mojo get -M HEAD 'https://api.github.com/users/kra​ih/repos?page=1&amp;per_page=1'
23:00 good_news_everyone joined #mojo
23:00 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/LopPpA
23:00 good_news_everyone mojo/master 3612d80 Sebastian Riedel: fixed a few parse_header bugs
23:00 good_news_everyone left #mojo
23:18 good_news_everyone joined #mojo
23:18 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/7235Og
23:18 good_news_everyone mojo/master 36e95c6 Sebastian Riedel: fixed another parse_header bug
23:18 good_news_everyone left #mojo
23:30 good_news_everyone joined #mojo
23:30 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/RZLdwg
23:30 good_news_everyone mojo/master df3d5e0 Sebastian Riedel: and more parse_header bugs
23:30 good_news_everyone left #mojo
23:46 good_news_everyone joined #mojo
23:46 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/cV2UFg
23:46 good_news_everyone mojo/master 55c4922 Sebastian Riedel: renamed parse_header to split_header
23:46 good_news_everyone left #mojo

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