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

IRC log for #mojo, 2015-03-25

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

All times shown according to UTC.

Time Nick Message
00:00 Zoffix $50 credit for what?
00:01 sri aaah, it's explained in the actual article how wordpress does it ;p
00:02 sri yoy sign up for it on wordpress.org and someone manually invites your email address
00:02 Grinnz heh
00:02 pink_mist oh joy
00:03 sri hahaha, and there are apps to work around the invite process through the slack api https://github.com/rauchg/slackin
00:04 Grinnz they do say they plan to support real public rooms in the future though
00:04 sri if they play their cards right, they're going to be big
00:06 Grinnz at work, i have a git hook script that sends commits to the slack API, and we have a hook for pivotal (our issue tracker) that was set up in the web interface
00:06 Grinnz i'm sure there's something for github as well
00:07 sri i saw github support in the integration menu
00:07 buu Great, yet another centralized owner of all of our communications.
00:07 buu I never get tired of those.
00:09 sri well, if you can't fix irc...
00:09 tianon joined #mojo
00:09 buu Seems fine to me =[
00:09 sri i hate every irc client i've used so far
00:09 Grinnz well you're not the target audience for slack :P
00:09 Grinnz at least... not yet
00:09 buu I love irssi with a burning passion.
00:10 Grinnz i like hexchat, weechat is ok for a cli client
00:10 Grinnz i didn't like irssi
00:10 Grinnz and i hate most other clients
00:10 buu But something I've noticed with public channels with large scale web based integration is that its real hard to build a community
00:10 sri irssi on android is no fun at all
00:11 buu People join, ask a question, wait a minute, then quit
00:11 Grinnz people do that anyway
00:11 Grinnz it's just most of them can't find IRC to begin with
00:11 * buu looks for the last quit in this channel
00:11 Grinnz especially anything not on freenode :P
00:11 buu Sure but the slightly more difficult process encourages people to stick around
00:11 sri tianon always quitting
00:11 Grinnz lol
00:12 buu Lets ostracize him.
00:12 sri that help vampire!
00:12 Grinnz buu, i don't see it that way
00:12 Zoffix I like xchat for irc client
00:12 asarch joined #mojo
00:13 Grinnz the reason most people don't stick around is because they're using these crappy webchats, instead of a real client
00:13 Grinnz slack's "webchat" is more like gmail, in that it seems more like something you can leave open
00:13 Zoffix True.
00:13 buu How is that different from webchats?
00:13 Zoffix Er... true about "crappy webchats"
00:13 sri you know, when i've been offline for a bit and need to check the channel backlog... i actually go to http://irclog.perlgeek.de/mojo/today
00:13 Grinnz it's like a whole application
00:13 sri :S
00:13 Zoffix Slack would get burred in my multitude of browser windows and tabs.
00:14 * Grinnz only has one persistent tab, gmail
00:14 sri i hate irssi navigation that much
00:14 Zoffix sri, you're a strange, strange person :)
00:14 buu /lastlog ?
00:14 * purl shows buu her poo
00:14 Grinnz O_O
00:14 Grinnz wtf, purl
00:14 purl wish i knew, grinnz
00:14 riche wtf
00:14 sri O_O
00:15 buu I still feel that having a bunch of white men on irc consistently refer to the purl robot as a 'she' is really goddamn creepy
00:15 buu or icky or something
00:16 Zoffix lol
00:16 Grinnz it was like that when i got here
00:16 Grinnz :P
00:17 Grinnz my friend tried to add natural language processing to his bot a while back... not an easy thing
00:17 Grinnz tons of edge cases
00:18 sri seriously http://www.digitalnewsasia.com/sites/default/files/images/12470747_s.jpg
00:18 buu Your dog has a macbook?
00:18 * Grinnz doesnt see the relevance in that image
00:18 avenj Grinnz: no white men here, only dogs with macbooks
00:19 sri indubitably
00:19 buu whatever
00:19 purl hmmm... whatever is left over I just deal with myself, or something
00:20 Grinnz HTTP WHATEVER
00:21 Grinnz i wonder if the http protocol would look more civilized if you lowercased everything
00:21 buu haha
00:21 buu Replace the colons with please
00:22 Zoffix :D
00:23 buu please privmsg #zoffix :hi
00:24 Zoffix :S
00:37 sri and removed from Mojo::Pg https://github.com/kraih/mojo-pg/commit/5aa941743183842f3a7109e7795bcd951a3e18d7
00:45 absolut_todd joined #mojo
00:46 ioann joined #mojo
00:47 kaare joined #mojo
00:52 asarch joined #mojo
01:01 sri on the plus side, this change would allow Mojo::Pg to use prepare_cached
01:01 sri which is slightly faster than the custom sth cache
01:02 sri and uses a lot less code
01:04 sri guess i should just call this Mojo::Pg 2.0 :)
01:04 Grinnz heh
01:06 HtbaaPi joined #mojo
01:07 sri a lot simpler https://github.com/kraih/mojo-pg/commit/42e329ef37fe117d43c1c0929a027fb1498e8d03
01:11 sri oh, and i almost missed this quote from crab
01:11 sri http://irclog.perlgeek.de/mojo/2015-03-24#i_10329834
01:12 sri "crab: «There are still some valid reasons for it (e.g. pgbouncer), but certainly it is not a setting most people should adjust until they find a strong and specific reason to.» -- GSM"
01:12 sri so pg_server_prepare=1 is the recommended default
01:12 sri which matches my benchmarks \o/
01:30 disputin joined #mojo
01:37 uma_mahesh joined #mojo
01:53 zivester joined #mojo
01:54 tianon joined #mojo
01:54 tianon sri: yeah, sorry :(  my irssi is acting up and kicking me off all my server connections on a very regular basis, which is very very frustrating
01:54 sri thanks for ruining the joke ;p
01:59 sri oh my, x-files is coming back to tv :o
02:01 sri and i guess this is the dark side of Go https://github.com/smotes/purse
02:06 klapperl joined #mojo
02:07 preaction i thought Go was the dark side of Go :p
02:09 nicomen marcusr: one hour of downtime for weather because (now()-1 hour...now()) + 4 days (forecast span) doesn't exist (DST switch March 29th 02 -> 03)
02:10 hshong joined #mojo
02:10 Zoffix 29th?
02:10 purl 29th is, like, a scary birthday. worse than 30
02:11 Zoffix purl, um... thanks... It's coming up for me in a week :(
02:11 purl bitte Zoffix
02:17 nicomen Zoffix: ?
02:17 sri "This is definitely right." *falls off chair laughing* https://twitter.com/bascule/status/580543091645530112
02:18 Zoffix nicomen, notting... it's just DST happened $here like a week or two ago :)
02:18 tianon joined #mojo
02:19 Zoffix ehehe :)
02:29 nicomen last Sunday in March has been the rule here since 96, if you are in the US, you mvoed it three  weeks back in 2012 AFAIK?
02:44 woz joined #mojo
02:47 uma_mahesh joined #mojo
03:07 noganex_ joined #mojo
03:10 Grinnz something like that
03:10 purl i think something like that is totally possible
03:12 ioann joined #mojo
03:32 bpmedley joined #mojo
03:35 HtbaaPi joined #mojo
03:37 jberger so yeah seriously purl, wtf! :-p
03:38 jberger and I'm still not seeing what this new thing has that convos doesn't
03:42 sri dammit, of course prepare_cached has problems :S
03:43 sri "(in cleanup) DBD::Pg::st DESTROY failed: could not receive data from server: Bad file descriptor at ..."
03:43 tianon joined #mojo
03:44 sri it's kind of ridiculous... $worker->register->dequeue(0) causes the warning, but $worker->register; $worker->dequeue(0) does not -.-
03:44 sri which makes me believe there's a deeper problem
03:46 sri and now the Mojo::Pg tests get it randomly too :(
03:53 uma_mahesh joined #mojo
03:54 sri i used to like postgresql, but all these DBD::Pg problems recently are a bit much
03:54 sri it's not like i'm doing anything crazy
03:58 sri muahahahaha!
03:58 Grinnz sri, async database queries, you're insane!
03:58 sri it was perl
03:58 Grinnz oh?
03:58 sri it was perl all along!
03:58 sri OMG I FOUND IT!
03:59 Grinnz http://meowgifs.com/wp-content/uploads/2013/03/omg-it-was-you.gif
03:59 sri you've got to be kidding me!
03:59 sri ok... so the full error is "(in cleanup) DBD::Pg::st DESTROY failed: could not receive data from server: Bad file descriptor at ../mojo-pg/lib/Mojo/Pg.pm line 93, <DATA> line 440."
04:00 sri and the line in question is https://github.com/kraih/mojo-pg/blob/master/lib/Mojo/Pg.pm#L93
04:00 sri can you see the bug?
04:00 sri (it took me an hour to get it)
04:01 sri i just throw away the arrayref with the dbh and the handle
04:02 sri sometimes the handle gets destroyed before the dbh
04:02 sri and perl closes the fricking fd again
04:02 Grinnz ahhh
04:02 Grinnz wait what's the handle in this case?
04:02 genio I would not have seen that
04:02 sri which makes the sths that are cached inside the dbh very sad
04:02 sri ARGH!
04:03 sri "shift(@$queue)->[0] = undef while @$queue > $self->max_connections;"
04:03 sri that actually fixes it
04:03 Grinnz i just had an issue at work with DESTROY and cached sth... heh
04:04 sri http://0.media.collegehumor.cvcdn.com/82/61/f5657ea6e8a5225a9c0c692817d5bf5c-micdrop07.gif
04:05 Grinnz i think you might want to add a comment because that is a rather bewildering line with no context :P
04:05 sri it's not self explaining?
04:06 Grinnz if you're thinking about destructors maybe
04:07 Grinnz so that fixes all the problems you had with prepare_cached?
04:09 frederico joined #mojo
04:10 tianon joined #mojo
04:11 elik joined #mojo
04:15 Grinnz jberger, brand recognition, corporate marketing, probably venture capital :P
04:15 inokenty-w joined #mojo
04:20 sri think it does
04:46 Oleg joined #mojo
04:48 basic6 joined #mojo
04:55 zivester joined #mojo
05:04 dotandimet joined #mojo
05:07 good_news_everyon joined #mojo
05:07 good_news_everyon [mojo] kraih tagged v6.05 at 118c27b: http://git.io/jUQo
05:07 good_news_everyon left #mojo
05:08 good_news_everyon joined #mojo
05:08 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/jUQH
05:08 good_news_everyon mojo/master 346a331 Sebastian Riedel: bump version
05:08 good_news_everyon left #mojo
05:09 cpan_mojo Mojolicious 6.05 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-6.05
05:11 cpan_mojo Minion 1.13 by Sebastian Riedel - http://metacpan.org/release/SRI/Minion-1.13 (depends on Mojolicious)
05:11 asarch joined #mojo
05:23 cpan_mojo Mojo-Pg 2.0 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojo-Pg-2.0
05:27 sri fingers crossed
05:28 sri i still don't trust prepare_cached completely ;p
05:31 sri it's funny, that prepare_cached option for creating a new sth if the cached one is still active has this note (Added in 1.40) and i was wondering how bleeding edge that might be... 1.40 was released in 2004!
05:31 sri thanks for warning me DBI docs!
05:33 melo joined #mojo
05:42 ioann joined #mojo
05:59 uma_mahesh joined #mojo
06:01 kaare joined #mojo
06:06 absolut_todd joined #mojo
06:22 woz joined #mojo
06:24 tianon joined #mojo
06:36 Grinnz haha
06:38 marmez joined #mojo
07:03 memowe joined #mojo
07:13 jnbek joined #mojo
07:18 bramirez joined #mojo
07:19 sivoais joined #mojo
07:20 arpadszasz joined #mojo
07:34 dod joined #mojo
07:39 dod joined #mojo
07:43 bpmedley_ joined #mojo
07:44 tianon joined #mojo
07:46 Vandal joined #mojo
08:06 AndrewIsh joined #mojo
08:08 eseyman joined #mojo
08:10 tianon joined #mojo
08:29 trone joined #mojo
08:30 fhelmber_ joined #mojo
08:31 juikuen joined #mojo
08:31 marcusr nicomen: https://s-media-cache-ak0.pinimg.com/236x/a1/7e/08/a17e08968bcecb8c319ff8d94f4214ee.jpg
08:32 kwa joined #mojo
08:33 tianon joined #mojo
08:38 melo joined #mojo
08:42 melo1 joined #mojo
08:44 kwa left #mojo
08:55 bramirez joined #mojo
09:09 punter joined #mojo
09:10 arpadszasz joined #mojo
09:15 coolo hi guys. Is there a function to check if there is content in a content buffer?
09:15 * coolo doesn't see anything obvious
09:20 jabberwok hmm
09:22 coolo looking at the code I'd need to check $c->stash->{'mojo.content'}->{content}
09:22 jabberwok well yes but just calling  _content('name')  without any other args will return the current value without setting anything at all.
09:23 jabberwok so  $c->content('content') should return what you want?
09:24 coolo yeah, didn't think of it
09:24 jabberwok "Any Problem [Once Solved] Is Simple"
09:24 coolo jabberwok: in case you wonder: I want to get rid of the empty actions box on https://openqa.suse.de/tests/22614 in a clean way
09:24 coolo sorry, that's an internal host
09:25 coolo https://openqa.opensuse.org/tests/53461
09:26 jabberwok Ah. yes.
09:27 jabberwok my project right now is replacing all my wordpress sites. in the wp world those would be "widgets" − i am so glad to have quit the bad drug called php
09:29 woz joined #mojo
09:52 amon joined #mojo
09:55 reneeb joined #mojo
09:56 ZadYree joined #mojo
10:28 bramirez1 joined #mojo
10:32 ashimema_ joined #mojo
10:35 cpan_mojo Mojo-SMTP-Client 0.07 by Oleg G - http://metacpan.org/release/OLEG/Mojo-SMTP-Client-0.07
10:47 jabberwok coolo: http://blog.wlindley.com/2015/03/mojo-content-widget-boxes/
10:51 coolo jabberwok: exactly like that, thanks
10:51 jabberwok de nada, mon ami
10:54 coolo mixing spanish and french? :)
10:55 jabberwok Da. Perdono if i vermischten trop lingues.
10:58 coolo jabberwok: all fine as long as you don't mix emacs lisp into it
10:58 jabberwok (((( nooooo ))))
11:01 jabberwok lisp was the most frustrating language i ever used, until i tried ruby.
11:03 hummeleBop joined #mojo
11:08 waghso joined #mojo
11:17 punter joined #mojo
11:44 neilhwatson joined #mojo
11:47 mattastrophe joined #mojo
11:53 kopekru joined #mojo
12:07 Kripton joined #mojo
12:10 diegok joined #mojo
12:16 neilhwatson joined #mojo
12:23 neilhwatson joined #mojo
12:26 waghso left #mojo
12:29 batman nice trick: https://coderwall.com/p/6gibsg/bind-css-refresh-to-custom-key-shortcut-in-chrome
12:33 dayto joined #mojo
12:49 csson joined #mojo
12:57 Oleg joined #mojo
12:57 Oleg lol https://github.com/kraih/mojo/issues/772
13:14 ioann joined #mojo
13:19 zivester joined #mojo
13:28 genio The translation of that into English made no sense
13:29 Grinnz indeed...
13:29 purl indubitably
13:29 * genio pets purl
13:29 purl don't mess with me
13:30 genio She's feisty this morning
13:30 ribasushi genio: the first is very heavy slang the second is a rather obscure idiom
13:30 Grinnz "It already stands to ..." "And, you can scratch their hands on trees."
13:32 genio ribasushi: ah.  no wonder Google Translate has a problem with it.  You'd think they'd have a slang-ish translator for some things (and tell you it thinks it's slang)
13:32 Grinnz heh
13:32 ribasushi well, let me try to verbatim-ize the first one
13:33 ribasushi "Becausealready fuc..." <--- something like that
13:33 gryphon joined #mojo
13:33 ribasushi I doubt any translator will catch this :)
13:33 genio so, an expression of exasperation.  "come the fu... on already"
13:34 Grinnz bing translate wasnt too far off then, once i told it to use russian and not hungarian :P
13:34 ribasushi right, but as written with a typo at that, no doubt translators don't catch it
13:34 Grinnz er, ukrainian
13:35 ribasushi the second is more interesting - the verbatim translation is correct
13:35 ribasushi what it implies is... hm hm hm I can't think of an analogy off the top of my head
14:03 ioann joined #mojo
14:04 sri hmm, so there actually is a workaround for the file descriptor close problem
14:04 sri and batman knew about it but didn't say a word :(
14:07 Adura He was waiting on the bat signal.
14:15 sri https://github.com/kraih/mojo-pg/commit/68c9485e891a0e64a32fe605fd58ac049d18f68c
14:16 sri that seems to be the correct solution
14:16 sri i remember how we recently talked about that dup in Mojo::mysql
14:16 frederico joined #mojo
14:16 sri and i forgot to follow up
14:17 sri batman-- # not sharing
14:18 marcusr dududududududududu batcat
14:37 dayto How do I get name listing in param method on mojolicious 6.0?
14:37 Grinnz_ $c->req->params->names
14:37 Ptolemarch joined #mojo
14:40 dayto thank you ;)
14:50 jnbek joined #mojo
15:03 borick joined #mojo
15:05 borick i type out my question and mojo started working perfectly, it knows!!!
15:06 frederico joined #mojo
15:06 sri we know
15:07 jabberwok perceptrons!
15:07 borick i guess while I'm here.... anyone got hypnotoad working with the chat example for more than 1 worker? :D spent a good while on that and learned you can't serialize sockets :(
15:09 asarch joined #mojo
15:10 borick oh wait, nevermind, i remember i solved that too
15:10 borick bring the horse to water or soemthing
15:10 borick thanks
15:10 sri what example?
15:10 purl Example (noun): A thing characteristic of its kind or illustrating a general rule.
15:10 sri argh
15:20 arthas joined #mojo
15:39 cpan_mojo Mojo-Pg 2.01 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojo-Pg-2.01
15:49 frederico joined #mojo
16:04 Oleg joined #mojo
16:07 absolut__ joined #mojo
16:17 Zx3 joined #mojo
16:31 batman sri: What did i know?
16:31 * batman is on a plane
16:31 Grinnz_ the answer to life, the universe, and everything
16:31 purl somebody said the answer to life, the universe, and everything was 42 or craiglist
16:31 Grinnz_ rofl
16:33 batman About the open()..? I never understood how it could work in Mojo::Pg, but I also didn't understand how it could be an undiscovered bug.
16:33 * batman hope that's the thing
16:34 dayto joined #mojo
16:58 melo joined #mojo
17:03 frederico joined #mojo
17:06 melo1 joined #mojo
17:54 melo joined #mojo
17:56 hummeleBop joined #mojo
17:56 dod joined #mojo
18:06 dotandimet joined #mojo
18:23 Adura joined #mojo
18:24 mattastrophe_ joined #mojo
18:27 noganex joined #mojo
18:30 trone joined #mojo
18:49 disputin joined #mojo
19:04 drzz joined #mojo
19:06 sri guess i'll go with this talk then https://www.mojoconf.com/2015/presentations/more-than-you-ever-wanted-to-know-about-mojolicious-internals
19:09 drzz joined #mojo
19:11 genio There's a raptor in that there skyline!  A RAPTOR!
19:11 sri oh noes
19:23 Jonis joined #mojo
19:31 mgrimes joined #mojo
19:38 dotandimet joined #mojo
19:41 jabberwok excellent subject, do not ignore the man behind the curtain
19:41 dotandimet joined #mojo
19:44 ssm "what's in this?"  "you don't want to know"  "fair enough"…
20:30 berov joined #mojo
20:39 cpan_mojo Test-Mojo-Pg 0.2 by RICHE - http://metacpan.org/release/RICHE/Test-Mojo-Pg-0.2
20:49 riche joined #mojo
21:14 Grinnz_ hrm... Mojo::JSON is getting loaded sometime between when $morbo->run($app) is called and before that app file is actually loaded.. but i can't see any way that could happen
21:15 Grinnz_ i'm loading Mojo::JSON::MaybeXS in my morbo script as a workaround but i shouldnt need to..
21:17 sri perl -MMojo::JSON::MaybeXS `which morbo` myapp.pl
21:18 sri you do need to, i bet Mojo::JSON is loaded with Mojo::Server::Daemon or so, which loads the transaction and message clases, which import Mojo::JSON
21:18 Grinnz_ thats basically the same as what i'm doing now
21:18 Grinnz_ i don't see it loading anything like that in the server or daemon
21:18 sri you can change the functions in Mojo::JSON, but not the ones that have already been exported
21:18 Grinnz_ right
21:19 sri https://github.com/kraih/mojo/blob/master/lib/Mojo/Message.pm#L8
21:20 Grinnz_ all the server/daemon modules load are Mojo::Util, Loader, IOLoop, URL
21:24 Grinnz_ j isn't one of the functions that needs to be changed anyway :P
21:25 Grinnz_ dunno, will just leave it in the morbo script for now
21:49 tgt joined #mojo
21:50 reneeb_ joined #mojo
21:54 woz joined #mojo
22:30 frederico joined #mojo
22:35 Grinnz_ Can't create listen socket: Servname not supported for ai_socktype at /usr/local/perl/5.18.0/lib/site_perl/5.18.0/Mojo/IOLoop.pm line 129.
22:35 Grinnz_ ... what
22:35 purl Unimplemented. or see dotdotdot
22:35 Grinnz_ trying to run hypnotoad under this version of perl...
22:36 alnewkirk joined #mojo
22:37 Zoffix On mojolicio.us it says "... no requirements besides Perl 5.20.0 (versions as old as 5.10.1 can be used too, but may require additional CPAN modules to be installed) "
22:37 Zoffix Maybe you just need some module installed?
22:37 Grinnz_ it would be a dependency
22:37 Grinnz_ if it was needed
22:37 Zoffix Oh
22:38 sri i don't even understand the question
22:38 Grinnz_ i start hypnotoad, i get that error
22:38 sri no, i mean Zoffix
22:39 Grinnz_ that wasnt a question
22:39 sri it had a question mark
22:39 Grinnz_ lol
22:39 Zoffix :D
22:39 Grinnz_ that was a suggestion for me :P
22:39 sri oooh
22:40 sri for the record https://github.com/kraih/mojo/blob/master/Makefile.PL#L8
22:40 Zoffix cool
22:41 Grinnz_ running the application with the prefork command seems to work
22:42 Grinnz_ oh wtf, i think theres a typo in the hypnotoad config
22:42 * Grinnz_ runs git blame
22:43 Grinnz_ yep that was it
22:43 Grinnz_ lol
22:43 Grinnz_ unhelpful error message is unhelpful
22:47 howitdo joined #mojo
22:56 absolut_todd joined #mojo
23:17 Averna joined #mojo
23:36 frederico joined #mojo
23:43 tianon joined #mojo
23:44 absolut_todd joined #mojo

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