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

IRC log for #mojo, 2014-10-16

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

All times shown according to UTC.

Time Nick Message
00:04 jberger convos++
00:04 jberger swipe typing --
00:04 jberger the latter I blame on my phone
00:13 human39 joined #mojo
00:17 n0body_ joined #mojo
00:33 laiki joined #mojo
00:34 sri i guess tomorrow is os x update day
00:34 d4rkie joined #mojo
00:42 laiki joined #mojo
00:45 laiki joined #mojo
01:07 disputin joined #mojo
01:13 Mso150 joined #mojo
01:23 klapperl_ joined #mojo
01:33 zivester joined #mojo
01:36 tempire hopefully
01:36 purl hopefully is probably lightweight.
01:36 tempire I really want all the syncing features of yosemite
01:37 sri btw. this is what i was laughing about yesterday http://boingboing.net/2014/10/15/eliza-vs-gamergate.html
01:37 sri saw it in action and was literally rolling on the floor laughing
01:38 sri "It's difficult to decide who's failed the Turing test here."
01:38 preaction hmm... i wonder if one could seed a hailo bot with #gamergate and #notyourshield and come up with something...
01:47 Mso150 joined #mojo
01:47 davido___ joined #mojo
02:03 * tempire <3 auto-layout
02:21 r0b3rt joined #mojo
02:33 Adura joined #mojo
02:42 woz joined #mojo
02:46 noganex joined #mojo
03:01 davido___ joined #mojo
03:10 sujithm joined #mojo
03:21 punter joined #mojo
03:31 basic6 joined #mojo
03:44 woz joined #mojo
03:50 KCL joined #mojo
03:52 disputin joined #mojo
03:53 irq joined #mojo
04:03 jwang joined #mojo
04:43 takkyuuplayer joined #mojo
05:26 jamesaxl joined #mojo
05:30 jamesaxl joined #mojo
05:44 jamesaxl joined #mojo
06:01 tianon hah, https://twitter.com/bowlerhatman1/status/522508328618823680
06:02 tianon "i am not down with twitter speek"
06:13 franzkafka joined #mojo
06:13 basiliscos joined #mojo
06:19 Vandal joined #mojo
06:24 dod joined #mojo
06:24 oerk joined #mojo
06:27 preaction joined #mojo
06:41 woz joined #mojo
07:08 oerk joined #mojo
07:08 * oerk
07:09 oerk left #mojo
07:12 rawler joined #mojo
07:13 basiliscos joined #mojo
07:21 irq joined #mojo
07:22 basiliscos joined #mojo
07:25 Adura joined #mojo
07:28 trone joined #mojo
07:32 dp_ joined #mojo
07:33 basiliscos joined #mojo
07:37 franzkafka Hey
07:38 franzkafka Datatables sends params like columns[$i][data], where $i is a number.
07:38 franzkafka How would you go about getting the values of all the columns[$i][data] params?
07:39 franzkafka Not knowing how many columns there will be
07:40 franzkafka In other words, is there an easy way to find out the last $i value for columns[$i] ?
07:41 franzkafka I was thinking: my $i = 0; while ( defined $self->param("columns[$i][data]") ) { do stuff; $i++ }
07:41 franzkafka But that's kind of a lame solution, and columns[0][data] can be null :)
07:43 basiliscos joined #mojo
07:46 franzkafka I was thinking something along the lines of ->every_param('columns[\d][data]
07:46 franzkafka woops, hit enter, but you get the idea
07:47 wtfmarcus joined #mojo
07:49 Mso150 joined #mojo
08:11 preaction joined #mojo
08:37 basiliscos joined #mojo
08:49 basiliscos joined #mojo
09:07 basiliscos joined #mojo
09:24 bzero joined #mojo
09:24 basiliscos joined #mojo
09:29 basiliscos joined #mojo
09:38 fhelmber_ joined #mojo
09:39 jont joined #mojo
09:40 jont does anyone know of a way I can keep my dbix class DB connections from going idle in a mojo app?
09:41 jont i have an app that is infrequently accessed, and the time between a worker process being hit can easily be several hours
09:42 jont I can see in a mysql processlist that once the idle time for a DB connection goes over about 7200 seconds if someone hits that worker process it will be stuck and eventually time out
09:43 nicomen autoreconnect parameter?
09:44 nicomen http://search.cpan.org/~karasik/DBIx-AutoReconnect-0.01/AutoReconnect.pm ?
09:45 jont I’ve got that on but it times out anyway
09:45 jont I suspect its the network that is timing out idle connections
09:45 jont without giving the proper signal to the application
09:46 jont so as far as the app is concerned the query just takes forever
09:57 basiliscos joined #mojo
09:59 basiliscos joined #mojo
10:03 Averna joined #mojo
10:15 basiliscos joined #mojo
10:21 basiliscos joined #mojo
10:29 denis_boyun joined #mojo
10:45 basiliscos joined #mojo
11:09 franzkafka Is it possible to grab all params that match a patter? For example, every_param('columns[.][name]');
11:38 jberger franzkafka: no mojolicious does not provide anything like that
11:39 moritz and even if it did, it wouldn't be more efficient than going through all params one at a time and regexing over them
11:39 moritz I mean, building and index would be total overkill for such a feature that you don't use in every application and every request
11:40 franzkafka I guess the stupid thing is that this jquery plugin I am working with uses array params that PHP handles somehow
11:40 franzkafka (I have never worked with PHP in my life, so I'm not really sure._
11:42 moritz can't you teach the jquery plugin to json-encode the whole thing instead?
11:42 franzkafka moritz, funny you should mention. I spent a few hours looking into it, couldn't find a way to do it, so now I am trying to add the functionality to it.
11:42 franzkafka I really hate DataTables
11:43 franzkafka I wish there was a better alternative.
11:50 franzkafka Actually, that's interesting. Now that I think of it, it would be awesome if I could have a select list where a selection sends a JSON object to the backend. So, for example, select 'United States' and rather than a single param (value) being passed, an entire JSON object gets passed (population, capital, language, etc).
11:50 franzkafka I'm going to look into this.
12:05 neilhwatson joined #mojo
12:16 marty joined #mojo
12:48 basiliscos joined #mojo
12:53 marty joined #mojo
12:54 asarch joined #mojo
12:59 ignacio_ joined #mojo
13:03 arthas joined #mojo
13:05 d4rkie joined #mojo
13:12 tbushell_ joined #mojo
13:13 tbushell joined #mojo
13:14 tbushell_ joined #mojo
13:14 tbushell_ joined #mojo
13:15 tbushell joined #mojo
13:18 tbushell_ joined #mojo
13:29 sri haha, i proposed support for that kinda params foo[] a few weeks ago, but there was no interest
13:37 jb360 joined #mojo
13:46 lipizzan joined #mojo
13:52 ignacio_ joined #mojo
13:53 cpan_mojo Mojolicious-Plugin-NYTProf 0.12 by Lee Johnson - http://metacpan.org/release/LEEJO/Mojolicious-Plugin-NYTProf-0.12
14:02 sh4 joined #mojo
14:08 jb360 joined #mojo
14:09 Ptolemarch joined #mojo
14:13 callumgare joined #mojo
14:35 ignacio_ joined #mojo
14:39 sh4|2 joined #mojo
14:51 ryozi joined #mojo
14:53 laiki win 2
15:03 abhishekisnot joined #mojo
15:12 ignacio_ joined #mojo
15:30 Ptolemarch joined #mojo
15:42 irq joined #mojo
15:47 sri oh, node.js is getting forked... that's gonna be interesting
15:48 aramisf joined #mojo
15:50 KCL_ joined #mojo
15:54 mst sri: oh?
15:55 sri https://news.ycombinator.com/item?id=8464462
15:56 sri apparently it wasn't supposed to go public yet, and joyent is now fighting for the trademark behind the scenes
16:00 Adura node.js and node.js+? hah.
16:14 Kripton joined #mojo
16:18 Ptolemarch joined #mojo
16:23 dod joined #mojo
16:27 rawler joined #mojo
16:36 marty joined #mojo
16:41 rawler joined #mojo
16:42 Mso150 joined #mojo
16:44 jont Lee: i should have checked for your module, as I did the very same thing 2 days ago, one cool feature is to trigger the profile with a HTTP header
16:49 jamesaxl joined #mojo
16:54 Ptolemarch joined #mojo
16:56 marty joined #mojo
17:55 asarch joined #mojo
17:59 irq joined #mojo
18:01 Ptolemarch joined #mojo
18:10 fhelmber_ joined #mojo
18:13 Mikey_ joined #mojo
18:29 Ptolemarch joined #mojo
18:45 basiliscos joined #mojo
19:05 sri yay http://arstechnica.com/apple/2014/10/os-x-10-10/
19:06 Mso150 joined #mojo
19:07 ashimema joined #mojo
19:20 tbushell left #mojo
19:34 noganex_ joined #mojo
19:44 lipizzan joined #mojo
19:47 tempire oh!
19:47 tempire I completely forgot about the keynote
19:48 stephanj ooops
20:00 Ptolemarch joined #mojo
20:10 * batman will check out new convos layout now...
20:11 batman marcus, sri: feedback wanted :)
20:12 batman refresh to see changes
20:13 sri batman++
20:14 Ptolemarch joined #mojo
20:17 batman \o/
20:17 batman convos - now with css animations!
20:17 batman ;)
20:26 irq joined #mojo
20:31 ignacio_ joined #mojo
20:32 jzawodn_ hm... does morbo play well with nytprof?
20:32 Nei mojo needs ~20MB ram can I reduce that somehow?
20:33 mst don't load all of it?
20:38 denis_boyun joined #mojo
20:40 Nei I'm not clear on how that would be done
20:40 Nei this is just use Mojolicious::Lite
20:41 mst if perl -MMojolicious::Lite -e 'sleep 86400'
20:41 mst is using 20Mb of RAM
20:41 mst then there's probably not a lot you can do to reduce that
20:41 mst compiling an unthreaded 32bit perl might help
20:42 Nei other than switch to something else more light weight
20:42 sri that uses 27.2mb here, now i'm jealous!
20:42 Nei I suspect it loads a lot of useless stuff just to be ready for it
20:44 mst RSS 24564 here
20:45 mst hrm
20:45 mst perl -MWeb::Simple -MPlack::Handler::CGI -e 'sleep 86400'
20:45 mst is RSS 6280
20:45 Nei that would be much more acceptable
20:45 mst that actually seems low to me though, I wonder if it's delay loading stuff
20:46 Nei I guess I'll have to try some other frameworks
20:46 sri perl -MMojo::Server::CGI -e 'sleep 86400'
20:46 sri 1.4mb ;p
20:47 mst right, so, it's definitely demand loading some stuff
20:47 mst so I wouldn't assume that's going to be a final number
20:48 Nei I guess it would be one of the more light ones though
20:49 sri (i'm not seriously playing this game... just posting stuff for laughs)
20:49 mst OTOH Mojolicious::Lite seems to be loading Mojo::DOM, Mojo::JSON etc.
20:50 mst so if you're using more than zero of those, by the time you've loaded equivalents into anything else
20:50 mst I wouldn't be surprised if the size is similar
20:50 mst sri: right, I'm curious, not serious :)
20:51 sri i also didn't disable loading optional stuff like openssl
20:52 sri OMG MONGODB https://twitter.com/parhamr/status/522831317285613570
20:56 genio ok, so... Paris isn't my favorite of places.  It's not bad, it's just crazy.  Strasbourg is very nice so far
20:56 sri make sure to eat lots of baguette and croissants though!
20:56 bpmedley joined #mojo
20:56 genio I'm not looking forward to going home
20:56 genio It's more German food here in Strasbourg
20:57 * sri starts drooling thinking about french croissants
20:57 genio I did have some good croissants this morning before we got in the car and drove to Strasbourg
21:04 sri so, i guess yosemite is stuck in app review? :)
21:05 sri and just as i say that mavericks vanishes from the app store, suspicious!
21:06 genio there be spies among us
21:07 sri and available with error now :o
21:08 genio same here
21:16 * sri starts #YosemiteGate
21:23 sri maybe they forgot to include the U2 album
21:28 jzawodn_ has anyone benchmarked Mojo::JSON vs. JSON::XS for encoding larger responses?  wondering if it's worth going down this rabit hole that nytprof is pointing me at
21:29 sri it is *a lot* faster as in 10-20 times in some cases
21:30 jzawodn_ ok, thanks.  I'll jump in then
21:31 sri it's basically JSON::PP < Mojo::JSON <<<<<<<<<<<< JSON::XS
21:32 * jzawodn_ just found the old mailing list discussion of Mojo::JSON::XS (and lack thereof)
21:32 * jzawodn_ wonders "how hard can it be?"
21:32 sri literally like 10 lines of code max
21:32 jzawodn_ yeah, seems like a no-brainer
21:32 jzawodn_ ok, I will see about making it so
21:34 sri hmm, the module that currently uses the namespace does not look good at all :(
21:35 sri purl: seen ysyrota
21:35 purl ysyrota was last seen on #ru.pm 2 years, 279 days, 1 hours, 30 minutes and 5 seconds ago, saying: а что рекламируют?  [Jan 11 20:05:13 2012]
21:35 sri hmm
21:35 neyasov joined #mojo
21:37 genio sri: I'm downloading
21:37 sri me too!
21:38 sri looks like bono finally finished repackaging the image
21:38 genio aww, man.  Slow European connections!
21:39 * genio is realling missing his 60 down, 6 up right now
21:40 * sri has 55 down, 11 up
21:41 genio fiiiiine. s/European/French/
21:41 sri from what i read on twitter most of the us has shitty internet
21:42 genio 160 MB of 5.16 GB
21:42 sri http://www.funnyordie.com/videos/c38fb80a0d/comcast-doesn-t-give-a-f-ck
21:43 * jnbek has 1024 up 1024 down; is in the US
21:43 jnbek yay Google Fiber :D
21:43 sri -.-
21:44 * genio kicks jnbek in the kneecaps
21:44 * jnbek crumbles to the ground
21:45 marty joined #mojo
21:46 genio That's what you get for being all Google Fiber-y
21:46 sri definitely had it coming
21:50 genio This is going to be a long night... 543 MB of 5.16 GB
21:52 sri hmm... apple sim
21:53 sri and they didn't even mention it at the event
21:55 sri odd marcus is not here... he's usually all over new apple releases :o
21:56 Ptolemarch joined #mojo
22:02 genio awww man.  Netflix doesnt have anyhing over here
22:03 sri yea :/
22:04 sri we need to use chrome extensions like Hola to use netflix from other regions
22:06 jzawodn_ jnbek: Kansas?
22:06 purl Kansas is http://www.state.ks.us or a state that doesn't believe that evolution is a scientific fact or flat as a board or still around, doing concerts.
22:09 jnbek nope, I'm in Provo, UT
22:10 jnbek ...and no, I don't have 7 wives... :-P
22:10 jnbek one is quite enough
22:13 Ptolemarch joined #mojo
22:31 ilbot2 joined #mojo
22:31 Topic for #mojo is now ???? hear me roar | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
22:39 woz joined #mojo
22:43 jnbek jzawodn_: yea, out of all the cities in Central Utah, Provo was the only one to get it right....
22:43 jnbek probably the ONLY thing Provo has ever got right...
22:43 jnbek but at least it was a good one :)
22:43 jzawodn_ hah, true
22:44 bobkare joined #mojo
23:01 disputin joined #mojo
23:10 jzawodn_ yay, monkey-patching in JSON::XS is full of win.
23:11 sri now you just need to find a decent name for the module that's still available :S
23:12 sri and perhaps use Cpanel::JSON::XS instead
23:13 jzawodn_ yeah, I'll have to try it out
23:14 jzawodn_ for what I needed, simply replacing Mojo::JSON::encode was sufficent to speed it all up.  so your ~10 line estimate was pretty good :-)
23:16 jzawodn_ I know... Craigslist::Mojo::JSON::Faster
23:17 jzawodn_ (not really)
23:17 sri :D
23:17 jzawodn_ naming things is hard
23:18 sri just the two true/false constants make it a little more complicated... otherwise it's all just Mojo::Util::monkey_patch(...)
23:19 jzawodn_ oh, I hadn't noticed monkey_patch()
23:19 jzawodn_ I really should read more of the mojo modoule code
23:19 sri it does the sub_name stuff for debugging, so it's pretty convenient
23:20 jzawodn_ handy indeed
23:20 * sri rebuilds perl for yosemite
23:21 sri everything looks strange now :S
23:21 * jzawodn_ lives near Yosemite
23:21 jnbek very nice country through there
23:21 sri judging by the desktop wallpapers it's quite beautiful
23:21 jzawodn_ definitely
23:22 jnbek when I lived in Berkeley, we'd head out that way every late fall
23:22 jzawodn_ we have deer come right up to our house: https://dl.dropboxusercontent.com/u/6763272/2014-10-09%2015.09.20.jpg
23:22 jzawodn_ (to sniff our youngest cat)
23:23 jnbek that's awesome!
23:26 woz Yosemite already available in Germany Sri? Not showing up for me yet. Or are you a developer?
23:26 sri it is, just installed it
23:27 woz Maybe they pulled it :-)
23:30 woz Ah, it is available via the Apple website, just not visible in the App Store. Kicking off the install now.
23:30 woz Thank god for 150Mb broadband :-)
23:33 woz Wow, Apple's new CDN holding up well a gig in 1:11
23:34 sri new safari looks pretty amazing
23:36 sri at least until you have to use tabs :S
23:38 woz WHat's wrong with tabs?
23:39 woz I guess I;ll find out in a few mins - install is running now.
23:39 woz Restart time - back soon I hope!
23:55 ilbot2 joined #mojo
23:55 Topic for #mojo is now ???? hear me roar | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
23:57 d4rkie joined #mojo

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