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

IRC log for #mojo, 2014-04-07

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

All times shown according to UTC.

Time Nick Message
00:10 shmuel joined #mojo
00:25 btyler joined #mojo
00:29 russum joined #mojo
00:31 jack joined #mojo
00:50 laouji joined #mojo
00:58 hotsnow joined #mojo
01:29 klapperl_ joined #mojo
01:44 cfedde joined #mojo
01:47 jberger sri++
01:48 jberger sorry I vanished today
01:48 jberger I've done much more real $work this weekend than I'm happy with, but this close to roll out I guess it happens
01:49 * sri is surprised how many low hanging fruits there still are in Mango::BSON... a few minutes of profiling and both encoding/decoding are about 20% faster
01:50 jberger nice
01:50 jberger want me to add the new and improve Mango to that list?
01:51 sri yea
01:52 jberger what the heck kind of markup is this??
01:55 sri sphinx maybe?
01:56 sri hah http://sphinx-doc.org/rest.html
01:59 jberger ah ok
01:59 jberger you think I might know that working at a Python shop and all
02:00 jberger https://github.com/mongodb/docs-ecosystem/pull/155
02:01 sri wow, Mango::BSON is now only 5 times slower than MongoDB::BSON... which is XS :o
02:01 jberger that's impressiv
02:01 jberger e
02:02 jberger but that makes me think
02:02 jberger perhaps I ought to add "pure-Perl" to the pull request
02:03 jberger shops that don't like XS might be interested in that
02:03 sri "Pure-Perl non-blocking I/O MongoDB driver" is the official slogan
02:05 jberger since all the drivers on the site are MongoDB I think we can leave that out :-), unless you would prefer the official line
02:16 sri i still remember when radiant was considered cool http://radiantcms.org/ ...now ghost is a whole new dimension of cool https://ghost.org/
02:17 * sri likes the trend though
02:17 jberger node?
02:17 purl somebody said node was the id of the object in the database, not the row #
02:18 sri desktop app grade design for web apps
02:18 jberger ah yes, there it is
02:18 sri backend is not that important
02:18 sri node.js does have many design people though
02:20 sri i see a trend though that pure backend people are going quickly out of fashion... if you can't design a little the web is no longer for you
02:20 sri where it previously was design people needing a little programming chops :)
02:20 sri guess the shift is only fair
02:20 jberger stuff like bootstrap, plus the trend towards clean design helps us a little
02:21 sri well, if i see pure bootstrap my first though has become "oh, he didn't even try"
02:21 jberger yeah, I do that too
02:22 jberger and admittedly Galileo only avoids that by not using much of it, rather than tweaking it
02:22 sri oh my, game of thrones is back!
02:22 jberger yeppers
02:23 jberger I forget did you read the books?
02:24 jberger all I'll say is that this is going to be a fun season ;-)
02:25 jberger is the episode over, I need to "oatmeal" it
03:47 marty_ joined #mojo
04:12 laouji joined #mojo
04:15 russum1 joined #mojo
04:18 russum joined #mojo
04:39 laouji joined #mojo
05:26 inokenty joined #mojo
05:57 Lee joined #mojo
06:05 Eke- joined #mojo
06:27 Vandal joined #mojo
07:00 sugar joined #mojo
07:00 dod joined #mojo
07:05 basiliscos joined #mojo
07:06 eseyman joined #mojo
07:18 sujithm joined #mojo
07:25 dpetrov_ joined #mojo
07:32 sujithm joined #mojo
07:41 Dandre left #mojo
07:51 crab joined #mojo
07:51 crab hi.
08:04 trone joined #mojo
08:04 russum joined #mojo
08:10 russum joined #mojo
08:12 laouji joined #mojo
08:13 russum1 joined #mojo
08:17 laouji joined #mojo
08:19 espent joined #mojo
08:19 hotsnow joined #mojo
08:20 fhelmber_ joined #mojo
08:30 denis_boyun joined #mojo
08:34 dod joined #mojo
08:37 edestler joined #mojo
08:40 DuMu joined #mojo
08:49 Dandre joined #mojo
08:52 DuMu Howdy. I would like to differentiate requests to the same route using params. I want to check whether the param exists by name. Is there a way to do this? exists and defined do not appear to work.
08:59 maxhq joined #mojo
09:11 hummeleBop joined #mojo
09:22 crab what are you doing with exists and defined
09:28 DuMu I have tried writing: if (exists($self->param('ended'))) {#do stuff}
09:28 DuMu but it doesn't seem to work
09:28 DuMu ditto for defined
09:32 odc joined #mojo
09:33 sujithm joined #mojo
09:36 DuMu I get the error message: " exists argu
09:37 DuMu sorry, the error message is: "exists argument is not a subroutine name at [appname.pl] line 93"
09:41 crab that of course doesn't work, but defined should work fine
09:42 crab if (defined $self->param('ended')) { ... }
09:50 alnewkirk joined #mojo
10:01 sujithm joined #mojo
10:05 mire joined #mojo
10:05 denis_boyun joined #mojo
10:10 DuMu thanks crab, that doesn't throw an error. I seem to have a problem with my route, which I have been trying to debug, hence I didn't get back to you before.
10:11 laouji joined #mojo
10:21 Akron joined #mojo
10:25 laouji joined #mojo
10:26 laouji_ joined #mojo
10:27 laouji joined #mojo
10:28 punter joined #mojo
10:39 laouji joined #mojo
10:42 laouji_ joined #mojo
10:45 nic joined #mojo
10:51 rawler joined #mojo
11:09 sujithm joined #mojo
11:10 d4rkie joined #mojo
11:15 maxhq joined #mojo
11:28 d4rkie joined #mojo
11:41 maxhq joined #mojo
11:50 russum joined #mojo
11:52 russum1 joined #mojo
12:01 sujithm joined #mojo
12:30 DuMu hey crab, I have tested this properly now. There wasn't anything wrong with the route after all. I was just getting nothing rendered because the if (defined...) clauses weren't working.
12:30 DuMu I added an 'else' case and started getting ouput in RESTclient.
12:32 DuMu if (defined $self->param('ended') ) # does not work, but
12:33 DuMu if ($self->param('ended') == 'now') # does work.
12:35 moritz DuMu: == is for numeric comparison. Using it to compare to 'now' is almost certainly wrong
12:35 DuMu good point moritz. rookie error!!!
12:36 moritz (and 'use warnings' catches it)
12:37 neilhwatson joined #mojo
12:38 DuMu ... and now I look the warning is showing up in the debug output :-|
12:39 DuMu I am getting use warnings; implicitly via use Mojolicious::Lite;
12:41 bjoernfan joined #mojo
12:43 DuMu actually, the equality test correct syntax should be:  if ($self->param('ended') => 'now')
12:47 DuMu maybe not - that doesn't seem to work reliably only for key == ended and value == now either.
12:52 avenj '=>' is a comma
12:54 gregf fg
12:54 gregf sorry :/
12:54 punter :-)
12:55 gregf purl
12:55 purl yes, gregf?
12:56 gregf purl, eval: my $val = "hello"; print $val == "hello" ? "yep" : "nope";
12:56 purl gregf: what?
12:56 gregf perlbot
12:57 gregf ah nevrmind.silly bot.  you're not the kind i'm after.
12:57 gregf purl, eval: my $val = "hello"; print $val eq "hello" ? "yep" : "nope";
12:57 purl gregf: sorry...
12:57 gregf dont worry
13:01 jack joined #mojo
13:09 dod joined #mojo
13:26 punter purl, print "Hi there"
13:26 purl punter: excuse me?
13:29 dod joined #mojo
13:32 DuMu right, that makes sense. the fat comma was assigning the param value and returning true, so it worked every time.
13:33 nic it's not fat, it's big-boned
13:36 DuMu :D
13:43 bluescreen joined #mojo
14:01 gryphon joined #mojo
14:03 btyler joined #mojo
14:04 arthas joined #mojo
14:11 arthas joined #mojo
14:25 arthas joined #mojo
14:28 jim joined #mojo
14:30 disputin joined #mojo
14:31 arthas joined #mojo
14:47 sujithm_ joined #mojo
14:48 beyondcreed joined #mojo
14:53 davido joined #mojo
15:13 arthas joined #mojo
15:15 sh4 joined #mojo
15:15 arthas joined #mojo
15:19 dotan joined #mojo
15:28 meshl joined #mojo
16:04 bluescreen joined #mojo
16:04 sugar joined #mojo
16:11 denis_boyun joined #mojo
16:15 arthas joined #mojo
16:20 rem_lex|pivo joined #mojo
16:59 basiliscos joined #mojo
17:12 asarch joined #mojo
17:14 Adura joined #mojo
17:20 marty joined #mojo
17:36 aggrolite joined #mojo
18:00 neilhwatson joined #mojo
18:17 dod joined #mojo
18:39 sujithm joined #mojo
18:40 bjoernfan Hmm... quick check: Are you supposed to have to supply app->secrets in tests to avoid getting warnings from Mojo::Util?
18:42 davido joined #mojo
18:43 bjoernfan Can't see anything about having to do that in Test::Mojo
18:44 bjoernfan If I don't supply it session stuff does not work and tests fail.
18:45 bjoernfan Let me know if it sounds weird and I can try to submit a real bug report.
18:48 bjoernfan ... no... I think that's me doing weird things getting secrets from config in startup...
19:04 meshl joined #mojo
19:05 denis_boyun_ joined #mojo
19:06 bluescreen joined #mojo
19:12 davido_ joined #mojo
19:29 neyasov joined #mojo
19:30 batman joined #mojo
19:31 bluescreen_ joined #mojo
19:34 yko joined #mojo
19:35 Eke- joined #mojo
19:40 neilhwatson How do you check for errors with $toad->run('/opt/delta_reporting/app/DeltaR.pl')? Can you use || die?  I have a app that fails to start, but exits zero with no error messages.
19:42 yko joined #mojo
19:45 BeDa joined #mojo
19:46 gryphon joined #mojo
20:03 yko joined #mojo
20:06 neyasov joined #mojo
20:06 batman joined #mojo
20:06 espent joined #mojo
20:09 davido_ joined #mojo
20:10 marcus joined #mojo
20:19 davido_ joined #mojo
20:30 Gedge joined #mojo
20:33 doby joined #mojo
21:00 mire joined #mojo
21:11 davido_ joined #mojo
21:18 russum joined #mojo
21:25 marty joined #mojo
21:47 bluescreen_ joined #mojo
22:05 marty joined #mojo
22:35 Xedus joined #mojo
22:36 Xedus hey
22:37 Xedus new to mojolicious, have a question about logging
22:49 d4rkie joined #mojo
22:49 Xedus left #mojo
22:51 ivan joined #mojo
23:13 vmmello joined #mojo
23:26 marty joined #mojo
23:27 marty joined #mojo
23:50 mtths joined #mojo

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