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

IRC log for #mojo, 2015-03-07

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

All times shown according to UTC.

Time Nick Message
00:24 mattastrophe joined #mojo
00:37 juikuen joined #mojo
00:43 polettix joined #mojo
01:00 jontaylor joined #mojo
02:21 asarch joined #mojo
02:28 klapperl joined #mojo
02:32 kaare joined #mojo
03:07 marmez joined #mojo
03:21 mattastrophe joined #mojo
03:28 vasu_desk joined #mojo
03:29 noganex joined #mojo
03:34 kaare joined #mojo
03:37 Flying_Squirrel joined #mojo
03:52 vasu_desk joined #mojo
03:55 disputin joined #mojo
03:57 disputin joined #mojo
03:57 disputin joined #mojo
03:59 purl joined #mojo
04:32 disputin joined #mojo
04:54 disputin joined #mojo
05:09 Adurah joined #mojo
05:40 disputin joined #mojo
05:50 melo joined #mojo
05:50 bc547 joined #mojo
05:55 davido__ joined #mojo
05:57 Oleg joined #mojo
06:01 davido__ joined #mojo
06:19 robins joined #mojo
06:26 cpan_mojo WWW-Lipsum 1.001010 by Zoffix Znet - http://metacpan.org/release/ZOFFIX/WWW-Lipsum-1.001010 (depends on Mojolicious)
06:39 disputin joined #mojo
06:40 marmez left #mojo
06:40 irq joined #mojo
06:56 robinsmidsrod joined #mojo
07:21 dotandimet joined #mojo
07:58 Jonis joined #mojo
07:58 batman bpmedley: Doesn't your paste dump $tx and not $c?
08:02 Jonis up at 9 on a saturday, how dull
08:04 batman That has become my life it seems.
08:05 batman I kind of like it. Except when I have been up all night.
08:05 batman (Yes, I wake up 9 regardless)
08:18 dotandimet joined #mojo
08:24 Vandal joined #mojo
08:36 ryozi joined #mojo
08:47 chansen joined #mojo
08:58 polettix joined #mojo
09:10 batman bpmedley: ah! saw your explanation now :)
09:10 batman bpmedley++
09:10 bpmedley Thx
09:14 purl joined #mojo
09:23 trone joined #mojo
09:28 berov joined #mojo
09:54 melo joined #mojo
10:21 harryl left #mojo
10:27 alnewkirk joined #mojo
10:28 csson joined #mojo
10:49 Jonis is it possible using link_to and adding an anchor at the end of the url?
10:50 Jonis using link_to 'title' => 'module' => { id => 'placeholderparam' }
10:51 bpmedley Jonis: Would something like this work?  <%= link_to url_for->query(foo => 'bar')->to_abs => begin %>Retry<% end %>   (I didn’t test for anchors)
10:55 Jonis anchors seem to be the difficult thing to add
10:56 Jonis but anchors are also all client side unfortunately
10:56 purl okay, Jonis.
11:00 Jonis well
11:00 Jonis i'm a moron
11:01 bpmedley Doesn’t just adding a # to the end work?
11:01 Jonis it totally should
11:02 Jonis I've been looking at the wrong bloody link for about half an hour
11:02 Jonis kept hovering over the link and wondering why nothing ever changed
11:02 Jonis time for a drink, I think
11:05 dotandimet joined #mojo
11:06 cpan_mojo Mojolicious-Command-generate-lexicon 0.993 by Sergey Zasenko - http://metacpan.org/release/UNDEF/Mojolicious-Command-generate-lexicon-0.993
11:11 hummeleBop joined #mojo
11:58 romel hi guys. is it possible to obtain json object (not array) using Mojo::JSON ?
11:59 romel please disregard this question :)
11:59 romel the original perl structure was an array
12:25 sh4 joined #mojo
12:26 AndrewIsh joined #mojo
12:28 reneeb joined #mojo
12:30 martin joined #mojo
12:33 amon joined #mojo
12:37 asarch joined #mojo
12:43 jberger batman: oh yeah, well I wake up at 6:30 regardless
12:48 riche only 6.30?  wow
12:48 riche you must live in the city
12:49 pink_mist yeah, I live out in the countryside, and I normally wake up around 9:30
12:49 riche lol
12:49 riche if i need to get into the city, it's 4.30a
12:49 jberger suburbs, no just body clock
12:50 riche jberger: gotcha
12:50 jberger I get the rare 8 every now and again
12:51 dotandimet joined #mojo
12:58 reneeb joined #mojo
13:07 Oleg joined #mojo
13:09 Flying_Squirrel joined #mojo
13:12 martin anyone out there doing session via tokens as opposed to using cookies..  i've got a token based authenticaton model working here.. but it's feeling like everything in mojo is designed to use traditional cookies instead
13:13 martin for instance.. i'm currently unable to get allot of the goodness that would come from using Plugging::Authentication or Plugin::Authorization as they both rely on mojo session which relies on hmac cookies
13:18 batman jberger: early bird! :)
13:18 batman just finished my show, so now i'm ready to hack again
13:19 batman did some hacking earlier on https://github.com/jhthorsen/mojo-connect/blob/master/lib/Mojolicious/Plugin/Connect.pm
13:23 tencendur joined #mojo
13:38 zivester joined #mojo
13:56 theo joined #mojo
13:56 theo Hi.
13:57 jberger theo: o/
13:57 theo :)
13:59 theo I'm reading the documentation about the templates, and I'm confused. I see that "<%= ... %>" is defined as "Perl expression, replaced with result", but later I see "<%= ... %>", but also "<%= =%>" and "<% =%>". Is that equivalent?
14:00 pink_mist "<%= ... %>" is equivalent to "<%= ... %>", yes
14:00 pink_mist but the others are a bit different
14:00 pink_mist it should be explained further on
14:01 jberger = on the close tag does some whitespace trimming
14:01 theo Ah I see. Thanks.
14:05 jberger np
14:08 theo Ok I have my first template mojo page working. \o/
14:10 jberger theo++
14:11 theo :)
14:30 mattastrophe joined #mojo
14:30 stephan hey.
14:35 Jonis is there a simple way to localize a mojo-app?
14:40 ispyhumanfly joined #mojo
14:45 ispyhumanfly joined #mojo
14:57 stephan mojo rocks.
14:57 purl stephan rocks!
14:57 stephan purl :)
14:57 purl stephan: Unbalanced parentheses (too many ')')
14:58 jberger hahaha
14:58 jberger botsnack
14:58 purl thanks jberger :)
15:11 ispyhumanfly joined #mojo
15:16 ispyhumanfly joined #mojo
15:25 mattastrophe joined #mojo
15:43 meshl joined #mojo
15:56 bpmedley Jonis: I wonder if you could dyanmically change your template path based off of accept_language header.
15:56 riche joined #mojo
16:31 ispyhumanfly joined #mojo
16:41 disputin joined #mojo
17:06 Oleg joined #mojo
17:11 ispyhumanfly joined #mojo
17:19 Oleg joined #mojo
17:28 asarch joined #mojo
17:51 jberger joined #mojo
17:51 batman hehe... if you do that, make sure you don't accept "X-Template-Path: /etc" :)
17:55 mattastrophe joined #mojo
18:07 good_news_everyon joined #mojo
18:07 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/pLqi
18:07 good_news_everyon mojo/master 9fa8e0a Sebastian Riedel: an explicit waitpid call should work on Windows too
18:07 good_news_everyon left #mojo
18:17 bpmedley Minion on github now supports multiple jobs per worker.. :)
18:18 ispyhumanfly joined #mojo
18:23 jberger bpmedley: cool!
18:23 bpmedley sri cleaned up my code and added some stuff
18:24 jberger bpmedley: sri is taking a little break
18:24 bpmedley Understood
18:24 jberger hopefully he's reading the log though
18:33 bpmedley https://www.youtube.com/watch?v=1oFF26GyoJk  <— jberger, have you seen this.. ;)
18:33 jberger bpmedley: ha, no not yet
18:34 jberger kinda seems out of place me talking about being on the core team
18:34 jberger was because of the introduction
18:34 jberger JT made a bit of deal of it
18:37 bpmedley I have yet to view the entire video; which part are we talking about?
19:06 jberger right at the beginning
19:07 bpmedley Oh, all you’re saying is that it’s awkard for you to say you’re on the core team in the presentation?
19:07 jberger feels like I'm showing off, or at least that is how it sounds there
19:07 bpmedley If so, I think it’s full disclosure; not awkward.
19:08 bpmedley Have you given many public speeches?
19:09 jberger why do you ask? :p
19:10 bpmedley You could be finding your rhythim?   I used to record myself on the phone so I could critique it later.  Took me a while to find that rhythm.
19:10 bpmedley Public speaking is hard, thank you for spreading more Mojo.. :)
19:10 jberger I've given plenty actually, it was just a different introduction than I'm usually given
19:11 jberger I don't like to crow, I'd much rather a simple introduction
19:11 jberger jt didn't know that
19:15 bpmedley Are we talking about seconds 0:19 - 0:36 of a 45 minute talk?
19:17 jberger probably ;p
19:17 bpmedley https://www.youtube.com/watch?v=AwZaqZaRe78
19:19 jberger ha I love that bit
19:21 jberger I think my favorite start to a talk was my YAPC::NA 2012 XS introduction talk
19:22 jberger in which I told anyone that had ever successfully done any XS to leave and go see something else :-)
19:22 bpmedley :)
19:23 jberger https://www.youtube.com/watch?v=EPZHXVZwsY4
19:27 bpmedley Cool stuff, I just recently convinced myself I could do some XS
19:28 preaction but why not FFI::Platypus?
19:47 jberger preaction: you know that! FFI::Platypus didn't exist then!
19:49 riche joined #mojo
19:50 stephan to what should i set my "secret passphrase"?  i don't get it.
19:51 jberger $app->secrets(['SomETHing NO one ElSeKnows']);
19:51 bpmedley stephan: Would it be an issue if the user could change the cookie in their browser?
19:52 jberger stephan: in fact: http://mojolicio.us/perldoc/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean
19:52 stephan jberger: ty i read it, and i read the logs of mojo channel online. this helped me
19:52 stephan bpmedley: yes.
19:53 bpmedley So, where you asing why the “secrets”, or where you asking about a recommendation for setting the data in a secret?
19:54 stephan the latter bpmedley i just chose a long random password for now
19:54 bpmedley Ok, sorry for my confusion.  As an aside, I think “secrets” accepts multiple values so you can easily expire an old secret.
19:57 uma joined #mojo
19:58 uma hello
19:58 purl hola, uma.
19:59 bpmedley Morning
20:00 panzana` joined #mojo
20:00 tinita joined #mojo
20:00 augensalat joined #mojo
20:00 stryx` joined #mojo
20:00 oliver joined #mojo
20:00 cfedde joined #mojo
20:00 jzawodn joined #mojo
20:00 jbob joined #mojo
20:00 Snelius joined #mojo
20:00 mrEriksson joined #mojo
20:00 sivoais joined #mojo
20:00 zivester joined #mojo
20:00 bobkare joined #mojo
20:00 jmmills joined #mojo
20:00 genio joined #mojo
20:00 cosimo joined #mojo
20:00 lupi joined #mojo
20:00 bjakubski joined #mojo
20:00 csson joined #mojo
20:00 skaji joined #mojo
20:01 Foxcool joined #mojo
20:01 charsbar joined #mojo
20:01 mtths joined #mojo
20:01 noganex joined #mojo
20:01 da5id joined #mojo
20:01 KindOne joined #mojo
20:01 uma Hey, any body can confirm me if Mojolicious can be used for Rich Web applications?
20:01 uma I am skeptical to choose between perl based or python based frameworks for web application building
20:01 throughnothing joined #mojo
20:01 mattp joined #mojo
20:01 preaction joined #mojo
20:01 elik joined #mojo
20:01 absolut_todd joined #mojo
20:01 d4rkie joined #mojo
20:01 Rallias joined #mojo
20:01 wingfold joined #mojo
20:01 Adurah joined #mojo
20:01 ssm joined #mojo
20:01 meshl joined #mojo
20:01 davido__ joined #mojo
20:01 purl joined #mojo
20:01 bpmedley uma: Mojolicious supports several real-time web feature such as websockets
20:01 dotan joined #mojo
20:01 diegok joined #mojo
20:02 uma i have a collection of perl scripts for which i am attempting to create webinterface
20:02 tomboh joined #mojo
20:02 bpmedley What are the main points that make you skeptical?
20:02 yusukebe joined #mojo
20:03 jberger uma: I can't think of anything that a python framework can do that Mojolicious cannot
20:03 doby joined #mojo
20:03 jberger plus as bpmedley said, there are some very handy features built in which most frameworks of any language don't have, like websockets
20:04 xtetsuji_ joined #mojo
20:04 chansen joined #mojo
20:04 bpmedley uma: Mojolicious also has an integrated job queing system - for long running programs.
20:05 ispyhumanfly joined #mojo
20:05 bpmedley If you’d like, I bet we can get you going on getting one of the scripts online in under an hour.  The script could be called via Minion (the job queue) and launched via a web interface.
20:06 legz joined #mojo
20:06 hahainternet joined #mojo
20:07 mikegrb joined #mojo
20:07 uma joined #mojo
20:07 jberger in a related story, bpmedley has some free time today :-)
20:08 jberger just teasing of course
20:08 bpmedley Of ‘course.. :)
20:10 uma hello
20:10 bpmedley uma: Morning, again?
20:11 mishantil uma: I think you will find that Mojolicious has a much richer featureset and a _much_ cleaner implementation than the competitors.
20:11 bpmedley It’s also fun to use
20:12 mishantil uma: Also, I personally find that Mojolicious, unlike other frameworks I have used, does not get in my way.
20:13 uma most of the web applications i am aware in my fields are usually coded in python
20:13 uma web application frameworks on perl seems very less popular, hence doubting a bit
20:13 bpmedley uma: What language(s) do you know really well?
20:13 mishantil bpmedley: Yes indeed. I love the whole "Shit. How do I do this sanely? Oh wait, a clean one-liner."-experience
20:14 uma if this has all the capabilities as others in python, i would love it
20:14 bpmedley uma: Which pyhton framework are you considering?
20:14 mishantil uma: If you are comfortable with perl; go for mojolicious. If you are more comfortable with python than perl; still try mojolicious. :)
20:15 uma i knew perl well
20:15 bpmedley Also, it’s a full stack.  From asset to included web server.
20:16 bpmedley uma: I’d be happy to jump start some Mojo.  Perhaps an example Mojolicious::LIte app?
20:17 jberger I think uma was on the other side of the netsplit there
20:17 uma yea, Just finished Mojolicious::Lite Tutorial
20:17 uma it appears very comfortable
20:17 jberger I said before "I can't think of anything that a python framework can do that Mojolicious cannot"
20:17 jberger "there are some very handy features built in which most frameworks of any language don't have, like websockets"
20:18 jberger in case you missed it
20:18 bpmedley uma: You will love it.  I have never found something that doesn’t work.
20:18 uma awesome :)
20:19 bpmedley I can give you an example Lite app that uses minion to call some commands via a web interface.
20:19 uma are there any publicly available to check it?
20:21 uma i mean any webapps based on Mojo
20:22 bpmedley https://github.com/kraih/mojo/wiki/Projects-and-Companies-Using-Mojolicious
20:23 jberger the ones I know of are mostly database backed things, for a script wrapper, I'm not sure what to point you at
20:23 bpmedley http://after5detroit.com/ <— I think this used to be a Lite app, maybe still is.
20:24 bpmedley uma: Are you familiar with the concept of blocking as it relates to web apps?
20:24 bpmedley *non-blocking
20:26 uma i heard about "blocking" just today when i am reading through Mojolicoius:Lite tutorial
20:26 dotandimet joined #mojo
20:27 bpmedley Are you familiar with the fork ’n go method of apache?
20:27 uma yeah, i checked the projects using mojolicious, i think they give me confidence that it can work for my purpose
20:28 bpmedley uma: Cool, do you want an example minion lite app?  It’s already on github.
20:28 uma yes certainly
20:28 bpmedley https://github.com/brianmed/patches and https://github.com/brianmed/patches/blob/master/Patches.pl
20:29 uma https://github.com/kraih/minion ?
20:29 bpmedley Yip.. :)
20:32 uma yes, seems this fits perfect to me :D
20:32 uma Thanks medley
20:32 uma thats very helpful
20:32 bpmedley You are welcome.
20:33 uma whats your opinion on catalyst? it seems to be industry standard
20:33 bpmedley I’ve never used it.  I’ve always used an inhouse setup.
20:35 lb if anyone tells you one of the major frameworks are better than the others, they're lying - it comes down to personal preference, and project needs, so stay with what you're comfortable with or try them all out
20:37 lb disclaimer: I have written lots of mojo and catalyst code, but no dancer, so that one might actually be terrible
20:40 uma @lb do you have any github repo of mojo code?
20:41 riche more prevalent != inductry standard
20:41 riche *industry
20:42 riche after all, the DMTF set the industry standard with managing infrastructure via CIM, and all these continuous delivery frameworks don't follow that at all
20:43 riche and many times "industry standard" == "i can pay gartner the most"
20:43 lb uma: no apps, i write code for my clients
20:44 uma oh, ok
20:45 jamesw joined #mojo
20:48 uma @lb, can you recommend me any good resource/book to learn and develop applications in a professional manner
20:48 uma i have started perl 2 years back to automate my job needs
20:49 uma over a period i have automated in an organized way and came up with a console
20:49 lb no, i learned it the hard way
20:49 uma the code is not very high quality standard but improved over a period as i learned it
20:50 lb computer science + lots of years of doing it the wrong way will eventually make you do it the righter way ;)
20:50 uma i have no background of development, testing, deployment etc.etc.,
20:51 lb then read more books
20:51 uma the scripts work great on my machine and however it broke on last 6.20 version :(
20:52 riche uma: get brian d foy's three books and read them in order
20:52 lb what's 6.20
20:52 uma so is there a standardized way to do development
20:52 lb no
20:53 lb is there a standardized way to write a book?
20:53 jberger uma: closest thing is something close to TDD
20:53 lb software is as complex
20:53 jberger write tests first, then make sure your code passes the tests when you are done
20:53 riche jberger: that's an advanced capability
20:53 jberger extreme TDD is maybe a little too intense
20:53 lb and tdd is really something you need to grow to appreciate by doing it wrong
20:54 riche i think in his stage he just needs to tinker
20:54 lb there's no substitute for experience
20:54 lb (known)
20:54 riche lb: hiring someone with experience :)
20:55 lb oh, i definitely agree ;)
20:56 lb SPEND MORE MONEYS ON CONSULTANTS, OKTHXBYE
21:11 ispyhumanfly joined #mojo
21:30 frogonia joined #mojo
21:39 dotandimet joined #mojo
22:05 good_news_everyon joined #mojo
22:05 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/pt6z
22:05 good_news_everyon mojo/master 5da1865 Sebastian Riedel: Morbo can reuse more code from Mojo::Server::Daemon
22:05 good_news_everyon left #mojo
22:35 kaare joined #mojo
22:46 mib_zqt6ke joined #mojo
23:00 d4rkie joined #mojo
23:01 mattastrophe joined #mojo
23:17 bpmedley jberger: https://github.com/jberger/MojoliciousIntroduction/blob/master/ex/login.pl <— May i ask why you use a validate helper rather than under?
23:17 absolut_todd joined #mojo
23:18 jberger bpmedley: because the page has different behavior if it's logged in or not
23:19 jberger it's not really a protected page
23:19 jberger imagine like reddit, you see a page even if you aren't logged in
23:20 jberger if you aren't there is a login form, it you are it tells you hi (and maybe things like how many messages you have)
23:20 bpmedley I see.  Thx for the explanation.
23:22 jberger it makes for very interesting tests
23:22 jberger tests that definitely depend on the state of the ua
23:26 bpmedley If you wanted to, could you have an under condition call validate so that multiple routes would not have to repeat code?  For example, if there was a route called “/article”, with the helper would there be repeated code?
23:38 bpmedley The websocket example is super sweet.

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