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

IRC log for #mojo, 2014-09-15

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

All times shown according to UTC.

Time Nick Message
00:21 neyasov_ joined #mojo
00:39 woz joined #mojo
00:40 neyasov_ joined #mojo
00:48 D4RK-PH0ENiX joined #mojo
01:17 bodgix left #mojo
01:20 Snelius joined #mojo
01:23 Averna joined #mojo
01:39 woz joined #mojo
01:41 neyasov_ joined #mojo
01:46 jberger Anyone know what this is : https://github.com/kraih/mojo/pull/675
01:48 sri looks like an accident
01:50 d4rkie joined #mojo
02:03 sri every now and then someone asks for a mojolicious flow chart, i wonder what that actually means
02:05 sri request -> router -> action -> renderer/non-blocking+renderer -> response
02:05 sri something as trivial as this?
02:05 jberger probably?
02:06 hahainternet sri: you'd possibly want a little side cycle with bridges etc
02:07 sri that gets rather hard to draw... considering non-blocking bridges
02:08 sri would you want hooks too? then it kinda gets crazy big...
02:08 d4rkie joined #mojo
02:15 sri i wouldn't mind including a little ascii diagram, but i have no clue what it should look like
02:18 sri if anyone has an idea, proposals welcome
02:27 miked joined #mojo
02:34 Snelius joined #mojo
02:39 woz joined #mojo
02:42 neyasov_ joined #mojo
02:48 noganex_ joined #mojo
02:51 sri wow https://github.com/voltrb/volt
02:51 sri ruby on the client and server side Oo
02:59 Adura joined #mojo
02:59 jberger anyone want to play esoteric Perl trivia with me? http://www.reddit.com/r/perl/comments/2gee3p/perl_comparison_table_things_of_interest/
03:11 basic6_ joined #mojo
03:39 woz joined #mojo
03:43 neyasov_ joined #mojo
03:50 doublelel joined #mojo
04:05 forke joined #mojo
04:09 jberger yikes, did you know you could do this???? https://github.com/ingydotnet/boolean-pm/blob/master/lib/boolean.pm#L68-L78
04:10 jberger there has to be an Acme:: module for flipping the true and false values, right?? if not, dibs!
04:14 sivoais wow... ... ... :-D
04:23 irq joined #mojo
04:26 jberger hahaha, writing this module is really hard!
04:38 jberger writing a test script causes perl to hang!
04:39 woz joined #mojo
04:43 jberger perl -Ilib -MAcme::OppositeDay -e 'print "a"eq"b" ? "yes" : "no"' # yes
04:43 jberger perl -Ilib -MAcme::OppositeDay -e 'print "a"eq"a" ? "yes" : "no"' # no
04:43 jberger but I can't write a test script!
04:44 neyasov_ joined #mojo
04:44 tempire huh
04:44 tempire volt looks interesting
04:51 batman jberger: https://github.com/Nordaaker/convos/issues/24
04:55 jberger :/
04:59 jberger its hard to even know if this module is working or not!
04:59 forke joined #mojo
05:08 sri ok, i tried to add something to the growing guide... but i think i failed https://gist.github.com/anonymous/3a51432be7b7440c33fd
05:10 sri it explains what happens in this section basically http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#Foundation
05:11 sri (or was supposed to)
05:17 sri i think it's the right place for a section like this, but you really need some beginners to tell you what information to include
05:17 sri (the place being between Foundation and Model)
05:37 doublelel joined #mojo
05:39 woz joined #mojo
05:45 neyasov_ joined #mojo
05:54 batman There's a plugin for this?? https://metacpan.org/pod/Dancer::Plugin::Controller
05:54 batman I'm so happy marcus got me using mojolicious :)
05:58 batman sri: what about "2. Try to find a route matching the requirements..." Instead of "Try to find a destination with the router"
05:59 batman The reason for my change would be that the word "route" is used more frequent than "destination" I think...
06:02 batman Also, do you want to mention that "hooks" might change the request and response, or is it too much in this section?
06:04 sujithm joined #mojo
06:08 dod joined #mojo
06:21 mr-foobar joined #mojo
06:27 mtths joined #mojo
06:29 avkhozov joined #mojo
06:35 dp_ joined #mojo
06:39 woz joined #mojo
06:42 KCL joined #mojo
06:45 neyasov_ joined #mojo
06:46 forke joined #mojo
06:51 jamesaxl joined #mojo
06:55 Eitz joined #mojo
07:00 _eugen joined #mojo
07:03 sujithm joined #mojo
07:08 denis_boyun joined #mojo
07:11 Vandal joined #mojo
07:19 basiliscos joined #mojo
07:19 Lee joined #mojo
07:25 woz joined #mojo
07:39 Lee joined #mojo
07:45 sujithm joined #mojo
07:46 neyasov_ joined #mojo
07:54 fhelmber_ joined #mojo
07:55 irq joined #mojo
07:57 ryozi joined #mojo
08:11 neyasov_ joined #mojo
08:12 edestler joined #mojo
08:16 ura joined #mojo
08:18 Lee joined #mojo
08:19 kedare joined #mojo
08:21 doublelel joined #mojo
08:38 aleksey joined #mojo
08:48 sugar joined #mojo
09:05 sujithm joined #mojo
09:06 marcus http://www.theexcomedy.com/wp-content/uploads/2014/08/imXBRRpDnnpUt.gif
09:08 woz joined #mojo
09:11 lb sri: $v->required('ip')->trim->is_valid_ip->make_ip_uniform; # ISAGN
09:12 trone joined #mojo
09:12 lb s/uniform/normalized/ or whatevs
09:17 neyasov___ joined #mojo
09:19 basiliscos joined #mojo
09:40 d4rkie joined #mojo
09:47 neyasov____ joined #mojo
09:53 ver joined #mojo
09:55 d4rkie joined #mojo
10:18 Dandre joined #mojo
10:51 denis_boyun joined #mojo
11:16 espent joined #mojo
11:18 espent joined #mojo
11:39 sri batman: i'm not happy with the whole section, switching a few words won't change that
11:39 sri if there are no beginners helping it's pointless anyway
11:40 batman i think it gives "A birds-eye view" though... i would say it's better to iterate on this, rather than not having it at all.
11:41 batman this = "A birds-eye view" section
11:41 batman but i'm not going to go all crazy to make this happen ;)
11:41 sri for those that missed it again... https://gist.github.com/anonymous/3a51432be7b7440c33fd
11:42 sri right after this section http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#Foundation
11:54 Akron joined #mojo
12:15 _eugen joined #mojo
12:26 sujithm joined #mojo
12:31 neilhwatson joined #mojo
12:51 ignacio_ joined #mojo
12:59 cpan_mojo Mojolicious-Plugin-Notifications 0.5 by Nils Diewald - http://metacpan.org/release/AKRON/Mojolicious-Plugin-Notifications-0.5
13:06 sri i guess that's a no for the birds-eye view of mojolicious ;p
13:08 sri that's the thing, if those currently learning don't get involved, we won't be getting better learning material
13:13 bowtie joined #mojo
13:16 fhelmbe__ joined #mojo
13:34 sujithm joined #mojo
13:38 fhelmber_ joined #mojo
13:39 firnsy joined #mojo
13:49 Jonneh joined #mojo
13:50 Dandre joined #mojo
14:03 firnsy joined #mojo
14:09 sh4 joined #mojo
14:13 cpan_mojo WWW-Crawler-Mojo 0.05 by Sugama Keita - http://metacpan.org/release/JAMADAM/WWW-Crawler-Mojo-0.05
14:26 firnsy joined #mojo
14:31 neyasov____ joined #mojo
14:39 fhelmber_ joined #mojo
14:57 davido_ It seems like any solution to this question that continues down the same road it's currently on will be putting a bandaid on a mortal wound.
14:57 davido_ http://stackoverflow.com/q/25842133/716443
14:59 cfedde "I'm not sure what I want but I'm pretty sure your system does not provide it."
15:04 odc heh
15:04 sri eeep
15:04 sri tell him to use git commit hooks :D
15:05 davido_ lol, perfect. haha
15:12 dexteruk joined #mojo
15:15 KCL demagogue
15:16 KCL sorry, accident
15:17 davido_ time to change the password. ;)
15:25 dexteruk joined #mojo
15:26 firnsy joined #mojo
15:26 mr-foobar joined #mojo
15:30 sri it would appear i'm not quite over the flow chart thing... https://gist.github.com/anonymous/a94a6a38f0e860c61da8
15:31 nicomen I really liked the "flowchart" mode_perl 2 provided in their docs
15:31 sri link?
15:32 nicomen http://modperlbook.org/html/1-4-Apache-1-3-Request-Processing-Phases.html
15:32 nicomen actually that one is old
15:33 sri and how would that look like for mojolicious?
15:35 nicomen totally different I know, but the phases you describe in the list could probablbe be shown graphical in some waqy
15:35 zackiv31 joined #mojo
15:35 nicomen here is another: http://perl.apache.org/docs/2.0/user/handlers/http.html and another: http://perl.apache.org/docs/2.0/user/handlers/server.html
15:36 sri what would a graphical representation gain us?
15:36 sri the real question is actually if those are even the right steps to show
15:37 nicomen grasping things faster, but at least, I think, personally I have missed a bit of a code flow, so the list you just added with the class::function of where it happens might be enough
15:37 batman marcus: can we use this in convos: http://dlvr.it/6w2DvR ?
15:37 nicomen true
15:37 nicomen but I think a grpahical view on how the reactor runs in the background, and how dispatching goes thru the various phases would give instant illumination to many new users
15:38 nicomen ie. gain less stupid questions ;-P
15:38 sri nicomen: please elaborate with some mockups, i have no idea how one would include the reactor
15:39 nicomen I've been trying to think of something useful, but failed, so just wanted to throw out my thought
15:39 nicomen s
15:40 marcus and start over? ;)
15:44 nicomen haha yes
15:45 neyasov____ joined #mojo
15:55 irq joined #mojo
15:58 good_news_everyon joined #mojo
15:58 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/W3y4iQ
15:58 good_news_everyon mojo/master 9958dec Sebastian Riedel: added birds-eye view section to growing guide
15:58 good_news_everyon left #mojo
16:00 marcus batman: I'm not sure I fully understand it. It looks very magical :)
16:00 marcus I trust you tho.
16:00 sri ¯\_(ツ)_/¯
16:01 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#A-birds-eye-view
16:02 mikegrb but what type of bird?
16:03 sri crab is the bird expert
16:14 good_news_everyon joined #mojo
16:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/VEO-UA
16:14 good_news_everyon mojo/master 65f83b5 Sebastian Riedel: mention the event loop
16:14 good_news_everyon left #mojo
16:14 sri nicomen: sounds better? http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#A-birds-eye-view
16:15 sri i think it's not a bad place for establishing the right terminology
16:17 sri of course it could also cause confusion
16:18 sri ANYONE STILL LEARNING!!! read that section and tell me if it works
16:22 sri *crickets*
16:30 mikegrb I'm forcing a friend to read it
16:30 mikegrb he's taking a bit more force than I expected :p
16:37 sri use more force
16:38 basiliscos joined #mojo
16:43 mikegrb [12:41:53] <~ eric> it sounds like how HTTP works and internets and programming.. this is supposed to be confusing to some people?
16:43 mikegrb so I guess that's an A+
16:44 sri :)
17:02 doublelel joined #mojo
17:03 batman marcus: just pushing the css limits and having some fun, since we don't support old browsers anyway :)
17:05 batman marcus: flex-box is pretty magical though :)
17:05 disputin joined #mojo
17:10 mishantil Anyone here have experience using MojoX::Log::Log4perl ?
17:10 mishantil Any reason not to go with it?
17:11 denis_boyun joined #mojo
17:13 batman what does it solve?
17:13 denis_boyun_ joined #mojo
17:15 denis_boyun__ joined #mojo
17:16 denis_boyun___ joined #mojo
17:16 mishantil batman: Plugging into Log4Perl, so that messages logged with mojo's info(), fatal() etc goes through log4perl.
17:17 mishantil batman: specifically if one want emails on every error/fatal, then using log4perl is fantastic.
17:17 batman ok
17:22 r0b3rt joined #mojo
17:32 risugg log4perl also shows you the file and line number where a log message is printed, which is super helpful
17:35 disco I was wondering. What IDE are you using to develop Mojolicious apps ? Until now I'm using VIM, but I would like to be able to edit several files at a time, etc. Any advice ?
17:36 neilhwatson You can edit many files at once using vim.
17:37 disco yes, indeed, with :vsp, or with several terminals ;)
17:37 disco and are you using a mojo vba (for syntax highlight) ?
17:38 batman disco: i'm using tabs in vim
17:38 neilhwatson Or just switch buffers if you don't care to see multiples at the same time.
17:38 batman disco: https://gist.github.com/jhthorsen/db217fc3b097ad1a07db
17:39 disco indeed, thanks for ideas.
17:40 * sri still uses Atom
17:41 batman i think these are the most useful plugins i have: https://github.com/ervandew/supertab https://github.com/terryma/vim-multiple-cursors https://github.com/kien/ctrlp.vim
17:41 batman disco: ^
17:41 disco batman: having a look
17:41 sri https://atom.io/
17:42 batman but the first mindblowing experience was probably having tabs, hehe
17:42 mishantil disco: emacs here. It is super-sweet, and does not get in my way like every other IDE I've ever used.
17:44 disco mishantil: I gave a try to emacs 15 years ago (to edit latex files) and that wasn't my cup of tea, but of course it is great.
17:44 disco thanks all for sharing.
17:46 mishantil disco: Yeah, emacs has got an _interesting_ learning curve, but I have found it to be a very valuable investment in time.
17:56 lipizzan joined #mojo
17:56 disco sri: Atom seems not available for linux.
17:57 disco hmm actually it is ;)
17:57 disco you can build for it ,)
17:58 sugar joined #mojo
17:58 batman disco: there's also a ppa if you're using ubuntu (or debian..?)
18:03 ignacio_ joined #mojo
18:04 berov joined #mojo
18:05 disco batman: I'm using debian.
18:05 disco batman: but I will stay with Vim ;)
18:05 batman hehe
18:05 disco batman: exploring your tips ;)
18:05 batman did you try the tabs?
18:05 disco I'm new with vim plugins.
18:06 disco batman: I tried supertab, but this is for completion
18:06 batman disco: sorry, i didn't mean to respond to your inital needs. i just blurted out the top most awesome features i use all the time.
18:09 disco batman: no problem, I thought you were talking about "tabs" like in a browser (to have several files/windows opened at the same time) ;)
18:09 batman yeah, that's the gist i posted
18:12 marcus I dropped supertab. Much prefer YouCompleteMe
18:15 batman yeah, that's true. i forgot to ask you about that :(
18:20 btyler joined #mojo
18:20 batman marcus: i want to delete Loopback support for Convos.
18:25 denis_boyun joined #mojo
18:28 Akron joined #mojo
18:31 disco batman: I tried to access it again but it was too late apparently ;)
18:32 batman oh. let me see :/
18:32 batman disco: https://gist.github.com/224b91d14970d197c619
18:37 dod joined #mojo
18:42 KCL_ joined #mojo
18:45 cpan_mojo Mojolicious-Plugin-BootstrapHelpers 0.0170 by CSSON - http://metacpan.org/release/CSSON/Mojolicious-Plugin-BootstrapHelpers-0.0170
18:51 dexteruk_ joined #mojo
18:51 disco batman: thanks
18:53 disco batman: the idea is to open the file with vi and type: :source % ? I don't have the habit of this.
18:53 batman you press ",e"
18:54 disco I put your fil in ~/.vim/ ?
18:54 disco file^
18:54 batman and then you press CTRL+k and CTRL+j to switch between tabs
18:54 dp_ joined #mojo
18:54 batman you put it at the end of ~/.vimrc
18:54 batman (to make it simple)
18:54 disco oh, that simple ;)
18:55 batman do you know what "map" means?
18:55 disco batman: I guessed
18:56 batman right, so then you understand that you have three new shortcuts..?
18:56 disco batman: it works ! thanks a lor !
18:56 disco lot
18:56 batman you're welcome :)
18:56 disco batman: yes, everything's clear now ;)
18:56 * mishantil facepalms
18:56 purl facepalms are certainly another important measure
18:58 mishantil We programmers just love creating problems for ourselves, don't we?
19:01 dexteruk joined #mojo
19:18 jnbek joined #mojo
19:23 jamesaxl joined #mojo
19:28 mattp_ joined #mojo
19:37 sri argh, can't get rid of the feeling that this might be too trivial to mention http://mojolicio.us/perldoc/Mojolicious/Guides/Growing#A-birds-eye-view
19:41 mattp_ joined #mojo
19:41 mishantil sri: IMO an explaination of something an expert (you) think is trivial is not a bad thing.
19:42 neilhwatson ++
19:43 mishantil Also, that explaination is pretty decent. Gives a condensed and to-the-point reference for any who might be unsure of the request handling.
19:45 neilhwatson When explaining a project, that you know and love, to someone who doesn't few details are too trivial.
20:15 tempire joined #mojo
20:22 denis_boyun_ joined #mojo
20:25 sri i wouldn't go that far... too many details can also be distracting from the point you're trying to make
20:26 good_news_everyon joined #mojo
20:26 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/su1g8A
20:26 good_news_everyon mojo/master ab00033 Sebastian Riedel: show expected directory structures in growing guide
20:26 good_news_everyon left #mojo
20:26 sri ok, some more tweaks
20:27 sri more pointing at other guides and directory strucutres
20:29 good_news_everyon joined #mojo
20:29 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/qANBOQ
20:29 good_news_everyon mojo/master 0a27784 Sebastian Riedel: fixed typo in growing guide
20:29 good_news_everyon left #mojo
20:35 dp_ joined #mojo
20:56 neilhwatson joined #mojo
21:01 neilhwatson joined #mojo
21:08 jamesaxl joined #mojo
21:12 jamesaxl joined #mojo
21:25 D4RK-PH0ENiX joined #mojo
21:38 disputin joined #mojo
23:07 disputin joined #mojo
23:29 d4rkie joined #mojo
23:38 axlrose joined #mojo
23:49 d4rkie joined #mojo
23:56 davido_ joined #mojo

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