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

IRC log for #mojo, 2015-05-15

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

All times shown according to UTC.

Time Nick Message
00:14 disputin joined #mojo
00:24 vmbrasseur joined #mojo
00:27 disputin joined #mojo
00:31 nf joined #mojo
00:33 jberger so, I don't get why the handler method gets the transaction object as an argument if it is not an embedded app, and a controller if it is
00:38 mattastrophe joined #mojo
00:41 Grinnz buh?
00:41 purl spluh!
00:44 jberger http://mojolicio.us/perldoc/Mojo#handler
00:44 jberger vs
00:45 jberger http://mojolicio.us/perldoc/Mojolicious/Guides/Routing#Embed-applications
00:45 asarch joined #mojo
00:46 Grinnz oh... that handler :)
00:46 Grinnz i don't think those two instances of "handler" are really referring to the same thing
00:47 Grinnz oh... maybe they are, it is just a Mojo subclass
00:47 * Grinnz obviously hasn't used embedded applications
00:49 jberger I haven't much, but in looknig at Mojolicious::Plugin::MountPSGI I thought that there was a major mistake in the embedded application
00:49 jberger and I couldn't figure it out
00:49 jberger until I found that
00:50 Grinnz heh
00:50 Grinnz jberger, http://mojolicio.us/perldoc/Mojolicious#handler this shows examples of passing both types of objects ???
00:51 jberger :o
00:51 jberger Grinnz++
00:52 Grinnz it looks like it passes to build_controller, which takes a $tx...
00:53 Grinnz and then there's: # Embedded application       if (my $sub = $tx->can('stash')) { ...
00:53 jberger right
00:53 Grinnz so i guess thats checking for a controller object? lol
00:53 jberger yeah, I see that too
00:54 Grinnz so i guess the answer is probably "to make embedded applications easier to make"
01:02 klapperl_ joined #mojo
01:21 jberger marcus: https://github.com/marcusramberg/Mojolicious-Plugin-MountPSGI/pull/1
01:24 jberger marcus: I also think that adding a section to the doc showing the MountPSGI plugin as a mechanism by which to test PSGI apps via Test::Mojo might be nice
01:25 ToApolytoXaos joined #mojo
01:28 howitdo joined #mojo
01:32 nf joined #mojo
01:45 zivester joined #mojo
01:59 klapperl joined #mojo
02:00 cfedde joined #mojo
02:04 noganex joined #mojo
02:33 nf joined #mojo
02:38 mattastrophe joined #mojo
02:59 hshong joined #mojo
03:33 nf joined #mojo
03:38 mattastrophe joined #mojo
04:25 davido_ joined #mojo
04:34 nf joined #mojo
04:38 zivester joined #mojo
04:45 sh4 joined #mojo
04:50 d4rkie joined #mojo
04:57 polettix joined #mojo
05:11 _dave_ joined #mojo
05:18 vmbrasseur joined #mojo
05:21 kaare joined #mojo
05:35 nf joined #mojo
06:03 polettix joined #mojo
06:35 McA joined #mojo
06:36 nf joined #mojo
07:17 trone joined #mojo
07:20 elik joined #mojo
07:26 AndrewIsh joined #mojo
07:30 moritz left #mojo
07:36 nf joined #mojo
07:53 jabberwok joined #mojo
08:08 dod joined #mojo
08:14 dod joined #mojo
08:20 Vandal31341 joined #mojo
08:37 nf joined #mojo
08:46 d4rkie joined #mojo
09:04 d4rkie joined #mojo
09:07 dustinm joined #mojo
09:09 misty_g3ar joined #mojo
09:30 fhelmber_ joined #mojo
09:30 kyshtynbai joined #mojo
09:35 polettix joined #mojo
09:38 nf joined #mojo
09:51 timhtheos joined #mojo
10:32 d4rkie joined #mojo
10:32 esh joined #mojo
10:35 sri so, this happened http://tools.ietf.org/html/rfc7540
10:39 nf joined #mojo
10:53 AirDisa joined #mojo
11:01 polettix joined #mojo
11:04 ashimema ooh.. have they finally settled on it now.
11:17 d4rkie joined #mojo
11:26 jberger I love it when they ram a standard through despite clear opposition
11:27 jberger http://en.m.wikipedia.org/wiki/Office_Open_XML
11:39 nf joined #mojo
11:56 punter joined #mojo
11:58 mattastrophe joined #mojo
12:02 d4rkie joined #mojo
12:25 Kripton joined #mojo
12:32 d4rkie joined #mojo
12:36 nf joined #mojo
12:43 zivester joined #mojo
12:45 nf_ joined #mojo
12:47 nf__ joined #mojo
12:48 howitdo joined #mojo
12:49 mattastrophe joined #mojo
12:57 ajr_ joined #mojo
13:00 kwa joined #mojo
13:15 AirDisa joined #mojo
13:46 LordVorp joined #mojo
13:52 nf joined #mojo
14:01 Adurah joined #mojo
14:03 tadegenban joined #mojo
14:17 LordVorp joined #mojo
14:20 ajr_ joined #mojo
14:38 sri thoughts? https://github.com/kraih/minion/pull/11
14:38 sri oh, jberger is too fast :o
14:39 jberger :D
14:39 kwa Sorry I messed up on the docs. Just checking out the enqueue method.
14:40 sri don't forget the backend base class
14:41 sri it also lists expected options
14:41 sri (for the other methods)
14:45 sri exposing it to the CLI should be as easy as adding ($options) to the ->retry call
14:45 sri in job.pm
14:45 kwa I'll have a look at it. Not sure how to make it match the enqueue method. Or do you just mean to match the docs only?
14:46 kwa Ahh, I understand what you mean.
14:46 sri docs
14:46 LordVorp joined #mojo
14:51 LordVorp joined #mojo
14:52 jberger https://www.lily.camera/
14:52 jberger woah ^^
15:01 kwa sri: made the tweaks to the pull request
15:03 marty joined #mojo
15:04 kwa hmm, failed pod, I'll look at that
15:10 kwa sorted
15:18 LordVorp joined #mojo
15:28 polettix joined #mojo
15:29 bjakubski joined #mojo
15:31 firnsy joined #mojo
15:31 lluad joined #mojo
15:39 LordVorp joined #mojo
15:40 neilhwatson joined #mojo
15:41 neilhwatson OT question, what powers the purl bot? I'm interested and using a bot in another channel.
15:43 pink_mist purl: source
15:43 purl well, source is Use It, Luke or see: yourself
15:43 pink_mist purl: yourself
15:43 purl I am a (modified) flooterbuck infobot, and my owner is hachi.  Download source at http://flooterbuck.sourceforge.net/ or edenc's bitch or espertinho or bugado or stupid. or the mongodb of irc bots or Nuclear Biological Chemical or a big metal dummy. or he mongodb of irc bots or a big fat liar
15:44 jberger neilhwatson: just pull in purl
15:44 LordVorp joined #mojo
15:58 Oleg joined #mojo
16:02 mattastrophe joined #mojo
16:02 mattastrophe joined #mojo
16:07 LordVorp joined #mojo
16:08 sri jberger: when do you want to restart jobs with a delay?
16:09 jberger when they failed because some data they need isn't there yet
16:11 kwa fyi, I use the delay aspect for a job queue I've written which sends out SMSes via a HTTP API. I increase the delay by the amount of attempts as I don't want to keep battering the API every second.
16:11 kwa I will then fail it after 100 attempts.
16:12 sri why did you do "$job->retry({delay => $options->{delay}})" instead of "$job->retry($options)"?
16:13 kwa Hmm. Because I'm a spoon.
16:14 sri :)
16:15 btyler anecdotally, my last job used backoff retry patterns really heavily with out resque implementation
16:15 btyler *with our
16:16 jberger http://user-cdn.spring.me/photos/20120601/n4fc8cd394f650.jpg
16:16 sri and merged
16:17 kwa Excellent, thanks. Was just about to push the update to fix the minion job retry options.
16:18 jberger hehe, there are some funny ones in this: https://www.google.com/search?q=there+is+no+spoon+meme&safe=off&source=lnms&tbm=isch&sa=X&ei=GBxWVeaXJYK5yQT2xILgCg&ved=0CAcQ_AUoAQ&biw=1440&bih=801
16:18 sri kwa++
16:21 LordVorp joined #mojo
16:21 * sri found an indentation error too :o
16:22 kwa lordy, I thought I perl tidied most my stuff :/
16:22 sri it was the comma you added to the sql
16:23 kwa ah, do you step the indendations in the columns?
16:25 kwa home time, later
16:31 LordVorp joined #mojo
16:37 sri i guess minion has to be released today
16:37 sri https://github.com/kraih/minion/commit/5e22e502957c3f47de8ed5617d398f5a9ea06b37#diff-c112bb3542e98308d12d5ecb10a67abcR2
16:37 sri date and verion just fit too well
16:37 sri +s
16:39 mattastrophe joined #mojo
16:39 jberger looks like it
16:39 purl No it doesn't, shut your hole!
16:39 * jberger throws purl down a well
16:39 purl seven days
16:53 mattastrophe joined #mojo
16:56 niczero joined #mojo
16:56 niczero A line of that minion docn doesn't read well
16:57 niczero I suggest either (a) Delay job for this many seconds (from now), or (b) Delay job until this many seconds from now
16:59 niczero ("this many seconds from now" is a point in time and you can't delay a job "for" a point in time)
17:11 mattastrophe joined #mojo
17:13 mattastrophe1 joined #mojo
17:18 mattastrophe joined #mojo
17:20 robins joined #mojo
17:21 asarch joined #mojo
17:22 mattastrophe joined #mojo
17:35 trone joined #mojo
17:53 berov joined #mojo
18:07 ajr_ joined #mojo
18:11 amon joined #mojo
18:38 mattastrophe joined #mojo
18:56 nf joined #mojo
19:28 hernan604 Hi, is there a way to add more request methods into Mojo::UA?
19:28 hernan604 i must use a method thats not included
19:29 genio What method are you required to use?
19:29 cfedde what method?
19:29 purl i guess method is fine
19:30 hernan604 propfind
19:30 purl hmmm... propfind is XML right?
19:30 hernan604 and maybe some others
19:32 cfedde it looks like build_tx will let you do that.
19:33 hernan604 so true
19:33 cfedde https://metacpan.org/source/SRI/Mojolicious-6.10/lib/Mojo/UserAgent.pm#L32
19:34 Grinnz_ yes
19:34 Grinnz_ build_tx followed by start is the manual way to do get() or post()
19:34 Grinnz_ https://metacpan.org/source/SRI/Mojolicious-6.10/lib/Mojo/UserAgent.pm#L36
19:35 Grinnz_ quite literally
19:35 cfedde it it would not be too hard to use that technique to subclass or just monkey patch your methods into the parent class for your code.
19:35 genio Can a Transactor do anything but the standard HTTP methods?  Since PROPFIND is an extended method... (from my brief skimming)
19:36 Grinnz_ genio: it can send whatever name you want, but the "custom stuff" like it does for POST or PUT might not be applied
19:38 disputin joined #mojo
19:57 nf joined #mojo
20:11 polettix joined #mojo
20:32 basic6 joined #mojo
20:57 nf joined #mojo
21:08 ssm joined #mojo
21:16 frudas joined #mojo
21:17 frudas hello
21:18 frudas i have this mojo lite mounted with mount
21:18 frudas my $route_generar_reporte = plugin Mount => {'/generar_reporte' => 'Apps/reportes/relax_reporte.pl'};
21:18 frudas the route load /generar_reporte load
21:19 frudas but the routes that are inside not
21:19 mattastrophe joined #mojo
21:19 frudas thankx for the help
21:20 frudas i probe perl app.pl routes
21:20 frudas and i cant see the routes from  => 'Apps/reportes/relax_reporte.pl
21:20 frudas 9.6
21:21 frudas im using this plugin http://mojolicio.us/perldoc/Mojolicious/Plugin/Mount
21:23 frudas any clue? :)
21:23 frudas thankx
21:37 misty_g3ar joined #mojo
21:52 * sri pokes cpan_mojo
21:52 punter joined #mojo
21:58 nf joined #mojo
22:11 mattastrophe joined #mojo
22:28 jb360 joined #mojo
22:42 D4RK-PH0ENiX joined #mojo
22:58 d4rkie joined #mojo
22:59 nf joined #mojo
23:03 D4RK-PH0ENiX joined #mojo
23:14 misty_g3ar joined #mojo
23:40 erik joined #mojo
23:42 erik joined #mojo
23:50 mattastrophe joined #mojo
23:55 kaare joined #mojo

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