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

IRC log for #mojo, 2014-05-13

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

All times shown according to UTC.

Time Nick Message
00:21 cpan_mojo joined #mojo
00:24 shmuel joined #mojo
00:27 cpan_mojo Mojo-FriendFeed 0.04 by Joel Berger - http://metacpan.org/release/JBERGER/Mojo-FriendFeed-0.04 (depends on Mojolicious)
00:28 jberger hey hey!
00:28 jberger ^^'
00:30 jberger Its only problem is that the data for dependencies lags
00:31 jberger because its using the MetaCPAN to get them
00:32 jberger given this configuration file, a new dist, or a dist with a new dependency on Mojolicious, might not be sent to #mojo
00:32 jberger https://github.com/jberger/Mojo-FriendFeed/blob/master/ex/mojo.conf
00:33 jberger so maybe I ought to leave the dist check at qr/Mojo/ as a first cut
00:37 cpan_mojo joined #mojo
00:37 jberger and now its on my other box running happily away
00:38 Akron joined #mojo
00:39 jberger ente: there is a plugin for OAuth, you could use that and some OAuth service
00:41 Akron ente: No (as far as I know), as this normaly involves databases and most plugins are data store agnostic. However - you could look at Galileo or other Mojo apps (MojoForum?) and pick parts of it, in case they resolve the problem (don't know).
00:41 Akron ++ for 5.20 dealing. Or we agree on a Mojo app hackathon rather than a core hackathon!
00:43 jberger MojoForum doesn't do anything yet
00:46 jberger Galileo does have a real "add user" functionality, but because of the system I had in mind, it does not allow self-registration, and admin has to add all new users
00:47 jberger s/and/an/
00:48 inokenty joined #mojo
00:49 jberger back to cpan_mojo, metacpan api finally shows the new data about Mojo::FriendFeed, that would be too long to wait for an update right?
00:49 jberger something like 15mins!
00:49 jberger anyone have any thoughts?
00:54 dvinciguerra joined #mojo
00:54 jberger tempire: I love that perlr.com is back up!
00:55 Akron jberger: Entry for the Hackathon ... ?
00:57 Akron Apps are always good for marketing. ;)
00:57 jberger I would like to see some other ideas for real-time service modules, like Mojo::FriendFeed (which powers cpan_mojo)
00:58 jberger and yes, bundling them with an app is a good idea too, for that reason
00:59 jberger at one point I had a module for TrainingPeaks web-service
00:59 jberger it wasn't exactly real-time, but it was handy
01:00 good_news_everyon joined #mojo
01:00 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/hLz0aA
01:00 good_news_everyon mojo/master 8d278d5 Sebastian Riedel: use an array queue
01:00 good_news_everyon left #mojo
01:00 laouji joined #mojo
01:02 Akron joined #mojo
01:06 good_news_everyon joined #mojo
01:06 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/I1gszA
01:06 good_news_everyon mojo/master 00e767a Sebastian Riedel: simplify queue
01:06 good_news_everyon left #mojo
01:15 jb360 joined #mojo
01:16 klapperl joined #mojo
02:15 laouji joined #mojo
02:21 tempire perlr.com is nearly all javascript.
02:21 tempire and not anything cool like react
02:22 tempire but it does do virtual rendering
02:22 tempire which no one does, for some reason
02:26 tempire maybe I'll use perlr to learn about flux
02:39 laouji joined #mojo
02:47 tempire Regarding the hackathon, there's also the idea of beginning a rakudo port of mojolicious
02:47 tempire It also depends on where sri stands with promises.
02:47 tempire because if promises are coming, and ::Delay layer is absolutely necessary
02:48 * tempire pokes anyone who knows where he can find a concise summary of 5.20 things.
02:50 tempire oh!
02:50 tempire signatures!
02:50 purl hmmm... signatures is listed under Method on CPAN
02:51 tempire That's going to be hard to resist.
02:51 tempire Everyone needs to be moving to perlbrew now.
02:51 tempire All you slackers who think it's ok to run system perl
02:51 tempire signatures invalidate all your laziness arguments.
02:52 tempire or if not perlbrew, rolling your own RPMs
02:52 tempire SIGNATURES!
02:52 purl well, signatures is listed under Method on CPAN
02:52 tempire SIGNATURES!
02:52 purl well, signatures is listed under Method on CPAN
02:52 tempire ok, I'm done.
02:52 firnsy tempire: fedora is rolling 5.18.2 what's the latest?
02:53 tempire 5.20 is about to be released on May 20th
02:54 tempire I'm mostly referring to the centos people who are still running 5.10.1
02:54 tempire 'cause fedora will probably have an extra package with the latest fairly soon
02:54 tempire at least that's how it used to be.
02:55 firnsy ack, centos/rhel are painfully slow
02:55 tempire That's their main draw
02:55 tempire stability and all that.
02:56 jberger also hashy slices
02:56 tempire I missed that.
02:56 firnsy so RHEL7 which is close to release will be 5.16 ... ugghh
02:57 jberger also postfix dereference
03:02 btyler joined #mojo
03:05 laouji joined #mojo
03:06 basic6_ joined #mojo
03:08 laouji joined #mojo
03:30 laouji joined #mojo
03:31 laouji joined #mojo
03:57 sujithm joined #mojo
04:11 Negor joined #mojo
04:30 laouji joined #mojo
04:36 jhg joined #mojo
04:42 sujithm joined #mojo
04:44 sujithm joined #mojo
04:57 sujithm joined #mojo
05:02 sujithm joined #mojo
05:03 tempire ooh
05:03 tempire that hash slice thing is neat.
05:03 tempire had not seen it before
05:04 tempire the postfix stuff, I'm going to have to think about that.
05:04 sujithm joined #mojo
05:09 sujithm joined #mojo
05:23 laouji joined #mojo
05:25 Eke- joined #mojo
05:36 dod joined #mojo
05:42 sujithm joined #mojo
05:43 priodev joined #mojo
06:23 batman is there a way i can tap into mojolicious and see the whole message sent to the client? something similar to MOJO_USERAGENT_DEBUG..?
06:24 batman i would very much like a hook, so i could dump it to file instead, but environment variable is better than nothing
06:38 dod joined #mojo
06:42 laouji joined #mojo
06:45 igorsutton joined #mojo
06:59 laouji joined #mojo
07:02 mire joined #mojo
07:02 dpetrov_ joined #mojo
07:03 denis_boyun joined #mojo
07:05 hrupp joined #mojo
07:06 eseyman joined #mojo
07:16 met joined #mojo
07:19 Vandal joined #mojo
07:28 hummeleBop joined #mojo
07:34 trone joined #mojo
07:37 romel joined #mojo
07:55 fhelmber_ joined #mojo
07:58 sugar_ joined #mojo
08:00 edestler joined #mojo
08:06 ente jberger: I meant a plugin for this that leaves the way database access happens to the user
08:06 ente jberger: some sort of skeleton code that you can change according to your needs
08:07 ente I'm looking at a twitter-clone that uses mojolicious at the moment but it doesn't use the authentication module
08:07 ente so I'm trying to figure that out for myself
08:13 sujithm joined #mojo
08:14 ente flask has plugins for this stuff
08:16 ver joined #mojo
08:27 basiliscos joined #mojo
08:31 Jonneh joined #mojo
08:48 sri tempire: oh, did you miss when i evaluated promises and ended up deciding against using them in mojolicious?
08:49 sri ente: so make plugins ;)
08:50 ente sri: I'm not sure I'm the right person to make plugins :)
08:50 sugar__ joined #mojo
08:51 sri tempire: specifically i've evaluated a more perl6-ish approach, with promises and supplies, the problem here is as usual leaks, while promises can be fixed with inside-out storage, supplies in perl5 just don't work, and promises without supplies kinda suck api wise (would just be a huge mess of promises and callbacks)
08:51 sri ente: you are
08:57 sugar joined #mojo
08:59 cpan_mojo Mojolicious-Plugin-Crypto 0.10 by Marco Romano - http://metacpan.org/release/NEMUX/Mojolicious-Plugin-Crypto-0.10
09:01 wolf_ joined #mojo
09:08 ente sri: well I'm not sure how to do it
09:08 sri hmm... those little ++ faces are kinda cute, but also distracting https://metacpan.org/release/Mojolicious
09:10 ente what are the different namespaces about, btw? Mojo and MojoX and Mojolicious?
09:30 sri tempire: good example for the "mess" is Mojo::IOLoop->timer() and Mojo::IOLoop->recurring(), only timer could return a promise
09:39 Vandal joined #mojo
09:40 levabalkin joined #mojo
09:43 denis_boyun joined #mojo
09:59 meshl joined #mojo
10:09 sujithm joined #mojo
10:09 d4rkie joined #mojo
10:27 d4rkie joined #mojo
10:33 sri wow, quite a bit of details in the new nsa documents http://glenngreenwald.net/pdf/NoPlaceToHide-Documents-Compressed.pdf
10:35 suy joined #mojo
10:40 basiliscos Hello. Is it possible to pack mojo app with PAR::packer into single executable? I have tried, but it complains, that "can't open file "Mojo/entities.txt" when I run ./a.out. Any ideas/ alternatives? Thanks!
10:42 BinGOs you'll probably have to ask pp to add that file too. using the -a switch
10:58 asarch joined #mojo
11:03 cpan_mojo Farabi 0.45 by Ahmad M. Zawawi - http://metacpan.org/release/AZAWAWI/Farabi-0.45 (depends on Mojolicious)
11:15 sugar_ joined #mojo
11:19 basiliscos BinGOs: Thanks. I have tried to pack Mojo via the following command: http://bpaste.net/show/273283/ , but it can't find Mojo/entities.txt anyway :( . If I place  into the current working directory ./Mojo/entities.txt (with Mojolicious/Commands.pm), then it works.
11:20 sri if you get it working make sure to add something to the wiki
11:21 basiliscos sure, but it almost works.
11:25 sujithm joined #mojo
11:26 sri i remember problems with activestates perlapp... which i believe resulted in perlapp getting special mojolicious support https://bugs.activestate.com/show_bug.cgi?id=98361
11:27 sri there's more special files though, such as test certificates and bundled templates/static files
11:30 basiliscos I have found rather good blog about that https://blag.nullteilerfrei.de/2013/05/17/building-perl-stand-alone-applications-with-a-gui-using-mojolicious-and-par-packer/ , and trying to adopting it.
11:30 sri i was just thinking about moving all those files into a single location in the mojolicious distribution... but that would break everything that has special support for what we do now :O
11:30 Vandal joined #mojo
11:31 sri guess in this case trying to make it easier would only have the opposite effect
11:38 neilhwatson joined #mojo
12:03 zivester joined #mojo
12:22 dexteruk joined #mojo
12:27 Vandal joined #mojo
12:34 sujithm_ joined #mojo
13:03 michael hi, is there a way to state that a plugin needs something implemented? (like 'requires' in Moose::Role) or should I just add the check to register() ?
13:06 Adura basiliscos, I had luck with, the folowing, I had to create the directory/files though: pp -x -a "Mojo/entities.txt" -a "script" -a "Mojolicious/Commands.pm" myapp2.pl
13:06 Adura Mind the 2 in myapp2.pl.
13:07 basiliscos Adura: I know that
13:07 basiliscos but when you delete Mojo and Mojoclicious dirs, a.out stops working
13:07 Adura Oh, drat.
13:07 basiliscos I just managed that, and I'll write my recipete on perlmonks
13:08 sri please put it on the wiki
13:08 sri nobody reads perlmonks anymore
13:08 basiliscos If you are impatient, you here is the code: http://bpaste.net/show/273481/.
13:09 basiliscos You should put the BEGIN{} before "use Mojolicious".
13:09 basiliscos sri: OK, I'll put to wiki too.
13:10 Adura Not going to work with Windows, it looks.
13:10 basiliscos the corresponding command line: http://bpaste.net/show/273488/
13:11 BinGOs s!nobody reads!sri doesn't read!
13:12 basiliscos yes, On windows, it seems that you need to copy that directories (actually with entities.txt and Commands.pm) into $PAR_TEMP
13:14 Coke left #mojo
13:21 abhishekisnot joined #mojo
13:23 zackiv31 joined #mojo
13:24 gryphon joined #mojo
13:30 jberger_ joined #mojo
13:32 jberger_ Does FatPacker handle bundled files better than pp?
13:32 dod joined #mojo
13:32 nic Does the Mojo::JSON change mean it's now immune to https://rt.cpan.org/Public/Bug/Display.html?id=86592 ?
13:34 sri nic: yes
13:34 nic \o/
13:36 sri i think we now have the best possible number/string heuristics possible in perl
13:38 sri we now handle both extremes very well..."my $foo = 23; $foo =~ /\d/;" and "my $foo = "bar"; $bar == 23;"
13:39 sri perl -MJSON::XS -E 'my $foo = 23; $foo =~ /^\d+$/; say encode_json [$foo]'
13:39 sri better than JSON::XS and JSON::PP
13:40 sri or rather, better than any serializer i know of atm
13:41 sri perl -MMojo::JSON -MJSON::XS -E 'my $foo = 23; $foo =~ /^\d+$/; say encode_json [$foo]; say Mojo::JSON::encode_json [$foo]'
13:41 dod joined #mojo
13:41 sri (with mojolicious 5.0)
13:41 nic It is indeed awesome; can't wait
13:43 sugar__ joined #mojo
13:45 basiliscos sri: At which wiki page do you suggest to add my PAR-related instructions? https://github.com/kraih/mojo/wiki/Portable-web-application ?
13:46 btyler joined #mojo
13:53 disputin joined #mojo
13:59 Adura Yeah, on Windows File::Copy is sufficient, needed to mkdir 'script'; though.
14:04 gtodd wow ... there's going to be a Hackathon happening @MojoConf?  A little suite of useful  HTML5/Mojo example apps for "the enterprise" would be neat :-)
14:06 gtodd not sure what those would be ... but ... :)
14:11 sh4 joined #mojo
14:45 Adura joined #mojo
15:02 igorsutton joined #mojo
15:14 disputin joined #mojo
15:16 rem_lex|pivo joined #mojo
15:24 dod joined #mojo
15:25 nicomen gtodd: yup
15:26 nicomen gtodd: feel free to suggest something
15:30 n00dle joined #mojo
15:42 btyler joined #mojo
15:55 sujithm joined #mojo
16:03 dod joined #mojo
16:03 denis_boyun joined #mojo
16:29 rem_lex|pivo joined #mojo
16:34 alnewkirk joined #mojo
16:48 tianon joined #mojo
17:03 aggrolite joined #mojo
17:25 basiliscos joined #mojo
17:52 dexteruk joined #mojo
18:13 fhelmber_ joined #mojo
18:14 marty joined #mojo
18:22 beyondcreed joined #mojo
18:23 mire joined #mojo
19:07 sujithm_ joined #mojo
19:11 sri https://github.com/kraih/mojo/issues/621 # in case someone here is bored
19:13 igorsutton joined #mojo
19:30 punter joined #mojo
19:32 good_news_everyon joined #mojo
19:32 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/BCzegg
19:32 good_news_everyon mojo/master acee2b3 Sebastian Riedel: fixed warnings in Mojo::IOLoop::Delay (closes #621)
19:32 good_news_everyon left #mojo
19:32 sri well, you had your chance ;p
19:41 sri what's odd is that the warning only appears in perl 5.10 but is still documented as of 5.18.2
19:42 sri no wait, the warning appears until 5.16
19:47 abra joined #mojo
20:14 aggrolite joined #mojo
20:26 dvinciguerra joined #mojo
20:34 igorsutton_ joined #mojo
20:35 bjoernfan http://www.blackforestmag.com/2014/04/24/norwegian-sheep-born-with-corpsepaint/ sorry for off topic, just want to let people know where they are going :)
20:44 dotandimet joined #mojo
20:45 berov joined #mojo
20:47 dotandimet I opened facebook to look for Game of Thrones spoiler discussion, and it told me it was sri's birthday. Is that the 13th or the 14th? Must review the log to see if this was mentioned.
20:48 dotandimet Happy birthday, sri!
20:48 sri thanks :D
20:49 sri 13th
20:49 dotandimet Thank YOU sir, for making Perl and the Web fun :)
20:49 genio Happy birthday!  Do you need a cane yet?
20:51 sri GET OFF MY LAWN
20:52 * genio shakes his fist.  "DAMN KIDS"
20:52 cpan_mojo WWW-BetterServers-API 0.09 by Scott Wiersdorf - http://metacpan.org/release/SCOTTW/WWW-BetterServers-API-0.09 (depends on Mojolicious)
20:52 stephan48 happy birthday sri :)
20:53 meshl joined #mojo
20:59 gryphon joined #mojo
21:18 meshl joined #mojo
21:18 LordV joined #mojo
21:36 Adura joined #mojo
21:45 trippd6 joined #mojo
21:46 trippd6 I have a module that is part of a bigger Mojolicious application that implements several APIs (REST/SOAP). I want to build tests and mock out the server responses. What is the best way to do that?
21:47 trippd6 I'm using Mojo::UserAgent to make the requests to the remote servers
21:47 trippd6 I want to mock the responses from the remote servers
21:55 jhg_ joined #mojo
21:56 trippd6 n/m, I appeared to have figured it out
21:56 trippd6 #!perl
21:56 trippd6 use warnings;
21:56 trippd6 use strict;
21:56 trippd6 use Test::More;
21:56 trippd6 use Test::Mojo;
21:56 purl rumour has it use strict; is your friend
21:57 trippd6 sorry :(
21:59 denis_boyun joined #mojo
22:09 denis_boyun joined #mojo
22:14 fhelmber_ joined #mojo
22:48 sugar joined #mojo
22:52 d4rkie joined #mojo
23:04 sugar joined #mojo
23:05 denis_boyun joined #mojo
23:13 zivester joined #mojo
23:14 Akron joined #mojo
23:16 Akron joined #mojo
23:18 Akron Congrats, sri! (Unfortunately I'm a biit late.)
23:22 cpan_mojo Mango 0.39 by Sebastian Riedel - http://metacpan.org/release/SRI/Mango-0.39 (depends on Mojolicious)
23:25 good_news_everyon joined #mojo
23:25 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/V9QG6Q
23:25 good_news_everyon mojo/master b1423f2 Sebastian Riedel: no need to copy value for number detection
23:25 good_news_everyon left #mojo
23:26 sri Akron: \o/
23:29 aggrolite left #mojo
23:30 sri there is no need to copy the value since we already check for IOK/NOK
23:34 jberger__ joined #mojo
23:40 jberger__ Hey happy birthday sri!
23:40 sri \o\
23:40 sri /o/
23:40 jberger__ Celebrate with subroutine signatures
23:41 * firnsy waves at the birthday train
23:41 sri the perfect present :)
23:42 jberger__ sub ($bday=return "he's a jolly good fellow") {}
23:43 * jberger is over here now

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