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

IRC log for #mojo, 2014-08-29

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

All times shown according to UTC.

Time Nick Message
00:09 Averna joined #mojo
00:16 d4rkie joined #mojo
00:47 woz joined #mojo
01:28 klapperl_ joined #mojo
01:48 woz joined #mojo
02:35 noganex joined #mojo
02:42 preaction joined #mojo
02:51 woz joined #mojo
03:01 sujithm joined #mojo
03:46 * sri wonders if a header helper would be nice that gets request headers and sets response headers... $c->header('X-Foo' => 'abc')->render(...);
03:50 sri there are a few more convenience helpers we could have
03:50 sri $c->status(308)->redirect_to(...);
03:52 woz joined #mojo
03:59 mr-foobar joined #mojo
04:12 irq joined #mojo
04:39 jmmills joined #mojo
04:42 saki joined #mojo
04:53 woz joined #mojo
05:33 basiliscos joined #mojo
05:43 sujithm joined #mojo
05:55 woz joined #mojo
06:06 sh4 joined #mojo
06:23 kedare joined #mojo
06:32 batman sri: i think that could be a good idea... wonder if it could be considered "slow" though
06:42 KCL joined #mojo
06:46 marcus sri: those sound useful to me.
06:56 spidamoo joined #mojo
06:56 spidamoo hi
06:58 spidamoo in http://mojolicio.us/perldoc/Mojolicious/Guides/Routing placeholders regexps are like qr/\d+/
06:58 spidamoo but it does not work in my app
06:58 spidamoo however /\d+/ works
06:59 spidamoo but generates warnings like Use of uninitialized value $_ in pattern match (m//)
06:59 woz joined #mojo
07:01 spidamoo futhermore, if i use 2 of such placeholders in a route it does not match either
07:03 dod joined #mojo
07:05 preaction joined #mojo
07:11 rawler joined #mojo
07:19 chankey joined #mojo
07:19 spidamoo turns out get() accepts arguments in different format than route()
07:20 Claudio joined #mojo
07:27 trone joined #mojo
07:32 woz joined #mojo
07:54 Vandal joined #mojo
08:01 basiliscos joined #mojo
08:02 edestler joined #mojo
08:23 fhelmber_ joined #mojo
08:25 HtbaaPi hmm that mail subject encoding issue with M:P:Mail isn't caused by MIME::Lite but by the plugin using MIME::EncWords::encode_mimeword
09:00 arthas joined #mojo
09:08 odc joined #mojo
09:28 neyasov joined #mojo
09:34 Dandre joined #mojo
09:37 dp_ joined #mojo
09:46 ver joined #mojo
09:59 dod joined #mojo
10:09 dod joined #mojo
10:19 Kripton joined #mojo
10:36 HtbaaPi solution: local *MIME::EncWords::encode_mimeword = sub { shift };
11:11 GabrielVieira joined #mojo
11:11 neilhwatson joined #mojo
11:11 neyasov joined #mojo
11:26 oetiker joined #mojo
11:38 GabrielVieira joined #mojo
11:42 neyasov joined #mojo
11:49 jberger spidamoo: using a regexp workout the qr means it is evaluated immediately against $_,  the  return is the number of matches, which is zero
11:50 jberger HtbaaPi: nice
11:59 neyasov joined #mojo
12:09 basiliscos joined #mojo
12:30 ryozi joined #mojo
12:49 marcus sri: refresh convos :)
12:50 HtbaaPi jberger: I still think that faxservice should upgrade their e-mail parsing routines but with this I have a quick local fix that's not interupting with the rest of my (or other's) code
13:06 GabrielVieira joined #mojo
13:08 sri marcus: oh, that looks nice
13:10 marcus wow, so shitty internets.
13:11 batman marcus++
13:34 rwf Is there a way to tell what is stopping Mojo::IOLoop from watching a "read" event?  Could Statistics::R which uses IPC::Run mess with the event loop?
13:35 basiliscos joined #mojo
13:43 marcus batman: playing with a light green highlight color for mentions - https://www.evernote.com/shard/s22/sh/b4799c5a-a5d7-47f2-a2f1-d6de904efe1d/7ec5a3dce5b509bd9c3f96c5a5ad56a0/deep/0/Nordaaker-demo----convos-on-perlorg---oh-hai!.png
13:44 batman i don't want too many colors
13:44 marcus it's matching the logo :p
13:44 batman then kill all the red stuff
13:45 marcus I'm not sure that's a good idea either.
13:46 marcus I'll keep playing around a bit.
13:46 marcus batman: btw what did you think about sri's suggestion to replace the foghorn with http://fortawesome.github.io/Font-Awesome/icon/bell/ ?
13:47 batman i agree
13:47 batman i've started on Mojolicious::Plugin::FontAwesome
13:47 batman not sure if i need to complete it, but the font-awesome we use is not complete
13:47 batman it only contains a minimum of the icons that we need
13:47 GabrielVieira joined #mojo
13:51 marcus hard core :)
13:52 marcus so it only contains drop-down bullhorn and cog?
13:52 batman yeah :(
13:52 batman or... a couple more
13:52 batman it sucks. sorry about that
13:52 batman the reason i'm not just downloading a new fontawesome is that the syntax is new.
13:52 batman could you make an issue to me?
13:53 batman i don't think it's too much work
13:53 marcus will do
13:57 sri marcus: i like the green, and agree with batman's not too many colors
13:57 marcus sri: but do you think the green would work for the notifications highlight too?
13:57 sri perhaps a calming blue would be a good idea too :)
13:57 batman i think it will especially work for people with badge anxiety ;)
13:58 batman marcus: this discussion will without a doubt distract me from the new connection manager task :(
13:58 batman it's just how i'm wired
13:58 sri any color should do for notifications too... textual used green badges to notify about open queries
13:59 marcus Well, I like using colors based on the logo. :)
13:59 batman if any change: +1 on logo color
14:01 marcus batman: then we can use lighten and darken everywhere \o/
14:02 batman marcus: i'm on it. my branch need testing and tweaking though :)
14:03 marcus 00451F is the logo color btw
14:03 _eugen joined #mojo
14:04 disputin1 joined #mojo
14:11 sri batman: btw. the difference between $c->status(308)->redirect_to("/foo") and $c->res->code(308); $c->redirect_to("/foo") is 10 rps, with 913 vs 923 rps
14:12 batman that's not much :)
14:12 marcus that doesn't seem significant :)
14:12 batman +2 then
14:12 batman ;)
14:20 batman marcus: https://github.com/Nordaaker/convos/pull/163 (i'm sorry in advance)
14:21 sri the difference between $c->header('X-Foo' => 'Bar')->render(text => "works!") and $c->res->headers->header('X-Foo' => 'Bar'); $c->render(text => 'works!') is 22 rps, 1053 vs 1031
14:24 sri for the curious... the difference drops down to 10 rps with $c->helpers->header('X-Foo' => 'Bar')->render(text => "works!")
14:39 sri hmm... not so sure about $c->header, it requires quite a bit more code and doesn't always look good
14:39 sri you'll have to decide between $c->res->headers->content_type(...) and $c->header('Content-Type' => ...)
14:44 basiliscos joined #mojo
14:49 denis_boyun joined #mojo
14:59 fhelmbe__ joined #mojo
15:04 d4rkie joined #mojo
15:08 * tempire squeals
15:20 d4rkie joined #mojo
15:25 cpan_mojo Mojolicious-Plugin-FontAwesome4 4.1000 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-FontAwesome4-4.1000
15:46 sri maybe i should just not add status and header helpers
15:47 sri the only really good use case i can some up with is $c->status(308)->redirect_to(...)
15:47 batman sri: reload to get new icons in convos :)
15:47 sri $c->header is a bit meh
15:47 sri \o/
15:48 batman marcus: how do you like bell-o compared to just bell? (i've rebased demo.convos.by with the pull request)
15:48 sri batman++
15:48 sri bell is much nicer
15:48 batman i don't have bell. bell is filled. i got bell-o:
15:48 batman fortawesome.github.io/Font-Awesome/icon/bell-o vs fortawesome.github.io/Font-Awesome/icon/bell
15:48 batman uhm.. with http:// infront :P
15:48 sri right, not sure if bell or bell-o is better
15:49 sri i like this one though
15:49 sri very unobtrusive
15:49 batman i think bell is too much...
15:49 batman can you do inspect and change the classname to just "bell" to see?
15:49 sri gotta try it on the phone
15:50 batman the bars are an icon as well now
15:50 batman **is
15:50 sri looks great on android chrome
15:50 batman of course. anything else would be a complete failure
15:50 batman :D
15:51 sri seriously, this looks awesome now
15:51 batman sweet!
15:52 batman i really like that we have a more flat design
15:52 sri me too
15:52 sri everything else now is really just polishing, i don't think there are any real design flaws
15:53 sri maybe a gradient here or there :)
15:53 batman i'm curious about how the dotted line and red backgrounds go from side to side, while the input field and the rest stops 20px from the side.
15:53 batman not sure if marcus suggested this, but maybe we should have 4px padding even on a wide screen...
15:53 marcus O-bell looks great
15:53 batman \o/
15:54 batman can i merge?
15:54 sri you could be all fancy and switch from bell-o to bell when there are new notifications ;p
15:54 * batman waits
15:56 sri someone say my name, i want to see how it looks when there are notifications
15:56 sri SAY MY NAME
15:56 batman sri!
15:57 sri you're goddamn right!
15:57 batman :D
15:59 batman i wonder if the bell should change color to red if there is a notification
15:59 * batman stops
16:00 sri hehe, yea it looks really nice now... don't go too far
16:01 sri btw. the gray color and 99+ limit when reloading totally fixed my badge anxiety
16:02 batman cool
16:02 D4RK-PH0ENiX joined #mojo
16:02 rwf Is it not recommended to use modules which rely on pipes when also using Mojo::IOLoop::Server and Mojo::IOLoop::Client?
16:13 good_news_everyon joined #mojo
16:13 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/7BuSWA
16:13 good_news_everyon mojo/master 138de81 Sebastian Riedel: better description for title helper
16:13 good_news_everyon left #mojo
16:13 sri if anyone has any good use cases for status and header helpers please speak up
16:24 basiliscos joined #mojo
16:30 neyasov joined #mojo
16:32 sri allright, no helpers for you! ;p
16:35 denis_boyun_ joined #mojo
16:38 batman I think you got me on the arguments :/
16:48 marcus I'm going outside to play.
16:48 abhishekisnot joined #mojo
16:49 dod joined #mojo
16:54 bjoernfan Think this would be appreciated here -> http://www.cupcakeipsum.com/
17:01 good_news_everyon joined #mojo
17:01 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Um5qFQ
17:01 good_news_everyon mojo/master ca4efaf Sebastian Riedel: link to functions in tutorial
17:01 good_news_everyon left #mojo
17:03 sri bjoernfan: lol
17:09 sri haha, latest post to the list is a good example for how not to ask for help
17:16 dvinciguerra joined #mojo
17:22 preaction joined #mojo
17:26 good_news_everyon joined #mojo
17:26 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/4NbfkA
17:26 good_news_everyon mojo/master c30b8ee Sebastian Riedel: be more specific in start_app description
17:26 good_news_everyon left #mojo
17:26 batman bjoernfan: ???? awesome! :)
17:42 batman How bad is this idea: plugin("whatever") downloads the plugin from CPAN if it doesn't already exist.
17:52 preaction joined #mojo
18:01 GabrielVieira joined #mojo
18:20 rwf joined #mojo
18:24 neilhwatson joined #mojo
18:36 basiliscos joined #mojo
18:36 denis_boyun joined #mojo
18:42 KCL_ joined #mojo
18:58 disputin joined #mojo
19:02 marcus pretty bad. :)
19:02 marcus and I think it exists as an acme module
19:03 sri i'd say very bad
19:04 Eke- joined #mojo
19:05 mst lib::xi is nice.
19:05 mst cloudpan is hilarious.
19:26 basiliscos joined #mojo
19:44 cfedde we don't need no stinking install!
19:59 sri lol https://twitter.com/HNStatus/status/503258107879751681
20:02 jnbek lol, "snap your toes then"
20:04 sri <3 tweet and gist embedding in convos
20:36 bobkare joined #mojo
20:38 jzawodn yay, Mojo::IOLoop based sphinx query server handles 350 req/sec with lots of headroom using async MySQL interface
20:40 sri \o/
20:44 * sri wonders if redirect_to should be a helper instead of a controller method
20:44 sri it's not really an essential building block
20:45 sri i guess repond_to falls into the same category
21:00 woz joined #mojo
21:04 sri any thoughts on turning respond_to and redirect_to into helpers?
21:05 sri (goal would be to remove non-essentials from Mojolicious::Controller)
21:07 stephan48 do they actually need to be in M::C? if not... and they work the same afterwards... sounds good
21:08 sri no they do not, and work exactly the same afterwards
21:08 sri which is why i'm asking now
21:09 tempire I'm ok with it.
21:09 tempire I never use redirect_to anyway
21:12 jberger_ Would that slow redirect_to down (AUTOLOAD)?
21:12 jberger_ Also when would you ever use it but in a controller?
21:13 jberger_ rwf: depends on how they are used
21:13 sri yes, it would slow it down slightly
21:13 jberger_ So what is the upside?
21:14 sri cleaner controller base class
21:15 jberger_ That doesn't sound worth it to me then
21:17 * sri shrugs
21:19 good_news_everyon joined #mojo
21:19 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/06b6efea29333cc47f437340ef5ca13809f68f48
21:19 good_news_everyon mojo/master 06b6efe Sebastian Riedel: better description for helpers
21:19 good_news_everyon left #mojo
21:20 GabrielVieira joined #mojo
21:29 sri if i added those two today, they would be helpers
21:30 sri batman: HALP, convos just went all 404!
21:31 sri seems to be fine again now... but i'm scared :c
21:34 basiliscos joined #mojo
21:35 woz joined #mojo
21:48 davido__ joined #mojo
21:49 good_news_everyon joined #mojo
21:49 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Z-Yiqw
21:49 good_news_everyon mojo/master ea35fb6 Sebastian Riedel: mention that flash and redirect_to are often used together
21:49 good_news_everyon left #mojo
21:52 good_news_everyon joined #mojo
21:52 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/YGuBog
21:52 good_news_everyon mojo/master dbb78b7 Sebastian Riedel: quote status code
21:52 good_news_everyon left #mojo
21:52 GabrielVieira joined #mojo
21:52 good_news_everyon joined #mojo
21:52 good_news_everyon [mojo] kraih tagged v5.34 at 897581f: http://git.io/hDbM9g
21:52 good_news_everyon left #mojo
21:53 good_news_everyon joined #mojo
21:53 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/-vqpbg
21:53 good_news_everyon mojo/master f40dd96 Sebastian Riedel: bump version
21:53 good_news_everyon left #mojo
21:53 cpan_mojo Mojolicious 5.34 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-5.34
22:06 bobkare joined #mojo
22:11 woz joined #mojo
22:13 wt joined #mojo
22:19 bobkare joined #mojo
22:19 Eke- joined #mojo
22:23 firnsy_ joined #mojo
22:23 dotan1 joined #mojo
22:24 ralesk_ joined #mojo
22:25 da5id_ joined #mojo
22:25 mikegrb_ joined #mojo
22:27 hahainternet joined #mojo
22:27 priodev joined #mojo
22:41 good_news_everyon joined #mojo
22:41 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/qPlifw
22:41 good_news_everyon mojo/master 3392798 Sebastian Riedel: much more detailed descriptions for content generators
22:41 good_news_everyon left #mojo
22:41 sri i guess this was long overdue
22:42 woz joined #mojo
22:42 sri MENTION ALL THE THINGS
22:42 sri http://mojolicio.us/perldoc/Mojo/UserAgent/Transactor#tx
22:54 good_news_everyon joined #mojo
22:54 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vf0f5Q
22:54 good_news_everyon mojo/master d69aa1f Sebastian Riedel: better description for file uploads
22:54 good_news_everyon left #mojo
22:57 good_news_everyon joined #mojo
22:57 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/fYpFyw
22:57 good_news_everyon mojo/master 32aed5e Sebastian Riedel: better description for file value
22:57 good_news_everyon left #mojo
22:59 sri phew
23:06 sri batman, marcus: this style translucent menu bar might also be an option for convos http://www.telerik.com/fiddler
23:14 GabrielVieira joined #mojo
23:14 jberger oooh, I like that
23:15 * jberger can't wait until these convos improvements hit cpan
23:21 sri jberger: btw. re the slides you linked to on twitter, for raw rps Starlet might be a very good choice
23:21 sri for my profiling app i get almost 2700 rps compared to hypnotoad with 2100
23:30 jberger maybe I should make a second app that uses a non-mojo server
23:30 sri that might be a very good idea
23:30 jberger I hope that hypnotoad will beat pure psgi when it comes to the db access tests
23:31 sri unlikely, they test with low concurrency and mongodb is not great at concurrency yet anyway
23:31 jberger what is the difference between starlet and starman
23:31 sri non-blocking mongodb might be a lot worse for that benchmark
23:32 jberger :(
23:32 jberger I could hack together a quick nonblocking pg one too maybe :/
23:32 sri mongodb 2.8 will be the big concurrency release
23:32 jberger I forget if they have a pg server available
23:33 jberger any idea when that is coming?
23:33 jberger I had to ask nicely to get 2.6 into the fwbm suite
23:33 sri if you want to make two versions, make one for good style and one for performance without compromises :)
23:34 jberger yeah
23:34 sri i suspect in a few months
23:34 jberger I like mine for style: https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Perl/mojolicious/app.pl
23:34 jberger for the most part that is
23:35 jberger I didn't use steps, there was a marked slowdown
23:35 sri it's pretty clean, a bad sign for benchmark apps ;p
23:36 jberger the plack guys clearly have had access to comparable hardware: https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Perl/plack/setup.py#L13
23:36 sri i think to look good you don't even need more than json, it's what everyone looks at first *eg*
23:36 jberger they have some very specific tuning
23:37 jberger I did use JSON::XS as a tip of the hat to the profiling
23:37 jberger everyone else did, I didn't want us falling off the map on that account
23:37 sri right, that's good
23:38 sri remember, the dancer folks cheat too, by not using the terribly slow Dancer2
23:39 jberger hahahaha
23:39 purl LOLCON 4 reached.
23:39 jberger I did think it interesting that there is a dancer app and not a dancer 2
23:39 jberger but actually I doubt it was there's, just like the mojo one wasn't ours
23:40 jberger in fact they were darn near the same app
23:40 jberger for all the frameworks
23:40 jberger someone did a quick and dirty and ported it to each
23:43 sri haha, then someone should update that app to dancer2 xD
23:43 woz joined #mojo
23:44 sri *evil laughter intensifies*
23:44 jberger gah! s/there/their/ # I did it again, what is up with me lately
23:44 jberger sri++ \m/
23:44 sri http://hollywoodhatesme.files.wordpress.com/2011/05/mr-burns-evil-laugh.jpg
23:44 jberger **maniacal laugh .... MANIACAL LAUGH**
23:46 jberger http://cheesewearingtheology.com/wp-content/uploads/2012/09/Muppets-Maniacal-Laugh.jpg
23:52 jberger I don't know if I could do IRC without inline previews anymore
23:52 jberger convos++

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