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

IRC log for #mojo, 2014-04-05

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

All times shown according to UTC.

Time Nick Message
00:33 zivester joined #mojo
00:57 dvinciguerra joined #mojo
01:00 klapperl_ joined #mojo
01:21 inokenty joined #mojo
01:45 inokenty joined #mojo
01:59 klapperl joined #mojo
02:11 mattastrophe joined #mojo
04:35 alnewkirk joined #mojo
05:25 mire joined #mojo
06:20 dotandimet joined #mojo
06:38 dod joined #mojo
06:49 sh4 joined #mojo
07:22 voegelas joined #mojo
07:30 Vandal joined #mojo
07:44 Eke- joined #mojo
07:58 dotandimet joined #mojo
08:11 denis_boyun joined #mojo
08:37 denis_boyun joined #mojo
08:59 basiliscos joined #mojo
09:00 dotandimet joined #mojo
09:05 d4rkie joined #mojo
09:12 fhelmber_ joined #mojo
09:25 d4rkie joined #mojo
09:35 sujithm joined #mojo
10:11 denis_boyun joined #mojo
10:20 sujithm joined #mojo
10:32 yakudza_ joined #mojo
10:36 meshl joined #mojo
10:38 rem_lex|pivo joined #mojo
10:50 mire joined #mojo
11:17 dvinciguerra joined #mojo
11:53 good_news_everyone joined #mojo
11:53 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/tEGsGQ
11:53 good_news_everyone mojo/master 199ca71 Sebastian Riedel: made start-line regex a little more strict
11:53 good_news_everyone left #mojo
12:10 hesperaux joined #mojo
12:14 sri next mango release will break quite a few things
12:15 sri because of the new mongodb 2.6 wire protocol
12:15 sri but the new protocol will enable some pretty cool features, such as a bulk api
12:16 sri my $result = $collection->bulk->ordered(1)->insert({foo => 1})->insert({foo => 2})->insert({foo => 3})->find({foo => 2})->update({'$set' => {foo => 4}})->execute;
12:17 sri insert/update/remove can all be bulk operations
12:18 sri they are executed on the server together, either ordered or unordered
12:19 sri ordered means the first to fail stops the whole bulk operation, unordered means the server will optimize things by parallelizing
12:24 sri official apis are also moving away from flags for upsert, multi and single
12:24 sri instead there's methods now
12:25 sri upsert(), upsert_one(), remove(), remove_one(), update(), update_one()
12:28 sujithm_ joined #mojo
12:32 trone joined #mojo
12:50 bayashi joined #mojo
13:14 dotandimet joined #mojo
13:18 laouji joined #mojo
13:19 dotandimet1 joined #mojo
13:39 hummeleBop joined #mojo
13:50 Eke- joined #mojo
13:52 laouji joined #mojo
13:55 laouji_ joined #mojo
13:59 dotandimet joined #mojo
14:03 dotandimet1 joined #mojo
14:42 Eke- joined #mojo
14:57 dotandimet joined #mojo
15:01 mire joined #mojo
15:07 sh3 joined #mojo
15:19 dotandimet joined #mojo
15:47 upasana Hi!
15:47 upasana This is my Mojolicious::Lite app : https://gist.github.com/Sweet-kid/3e162da56e12977e09b2
15:48 upasana Under post '/signup', I'm redirecting to '/home', under post '/home', I'm doing $self->render('home') which should render home.html.ep, I've given home.html.ep, but still getting template not found error (in the second file).
15:49 upasana Can anyone please tell me my mistake? Thanks.
15:50 dotandimet joined #mojo
16:01 sri upasana: are you sure you're using an up to date version of mojolicious?
16:02 sri this is what an up to date log should look like http://pastie.org/8996569
16:03 sri "mojo version"
16:03 sri (on the command line)
16:05 upasana afaik, yes, but let me check
16:05 upasana 1 min
16:05 sri fyi. it works for me if i set the logged_in check to true
16:06 upasana sri: 4.91
16:06 sri then you're not testing with the same app
16:06 upasana sri: since loggedin is being printed, so it means session 'loggedin' is true
16:07 upasana I am debugging this problem since yesterday
16:07 sri it works here
16:07 upasana Let me tell what I am doing exactly
16:07 sri time to step back and remove everything that's not necessary to trigger the problem
16:08 sri when you have a minimal test case things will be obvious
16:11 upasana okay
16:11 upasana Let me do it from scratch
16:13 sri you don't happen to have a templates directory with an abandoned home.*.* template that points to a missing layout, do you?
16:16 sri although, i'd expect a better debug message in that case
16:16 sri but something along those lines is the only explanation
16:18 dotandimet joined #mojo
16:19 sri in any case, an app like the one in the gist does not produce those log messages
16:19 upasana Oh yeah, I have templates/home.html.ep
16:19 upasana I created it earlier, but got screwed up, so wrote everything in one file. Let me remove it & try again.
16:20 upasana yay!
16:20 upasana working
16:20 upasana thanks so much!
16:20 sri :)
16:22 good_news_everyone joined #mojo
16:22 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/gYyMNA
16:22 good_news_everyone mojo/master 9e86687 Sebastian Riedel: mention precedence of template sources
16:22 good_news_everyone left #mojo
16:22 sri i wanted to link to the tutorial section... but it's not actually mentioned there yet :/
16:26 sri hmmmm... guess i won't be breaking as much in the mango api as i thought
16:26 sri gonna stay close to the api of the mongo shell client
16:28 sri most of the old api stays the same, just a new bulk layer http://docs.mongodb.org/master/reference/method/Bulk/
16:29 sri no way i'm going to call a method that's going to be used all the time initialize_ordered_bulk_op though ;p
16:29 sri $collection->bulk->ordered(0) with a 1 default
16:30 sri of course the first thing i found was that the official mongodb perl client implements bulk operations wrong -.-
16:44 denis_boyun_ joined #mojo
16:54 denis_boyun joined #mojo
17:16 denis_boyun_ joined #mojo
17:50 sri step one done https://github.com/kraih/mango/tree/write_commands
17:51 sri the wire protocol did get quite a bit simpler
17:52 meshl joined #mojo
17:52 sri aside from no more 2.4 support there are no real user visible changes... stuff just gets faster and safer \o/
17:53 sri now on to bulk operations
17:54 sri btw. if anyone wants 2.4 support to be kept for a few more months as a fallback... you're welcome to hire me to make it happen
18:05 sujithm joined #mojo
18:24 sri *crickets*
18:52 disputin joined #mojo
19:26 jhg joined #mojo
19:30 dotandimet joined #mojo
19:41 meshl joined #mojo
19:48 mire joined #mojo
20:11 meshl joined #mojo
20:34 klapperl_ joined #mojo
21:07 Eke- joined #mojo
21:19 tianon joined #mojo
21:40 meshl joined #mojo
21:45 batman sri++
21:52 espent joined #mojo
22:26 alnewkirk joined #mojo
22:38 d4rkie joined #mojo
22:53 mattp joined #mojo
23:30 btyler joined #mojo
23:57 punter joined #mojo

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