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

IRC log for #mojo, 2014-03-19

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

All times shown according to UTC.

Time Nick Message
00:05 d4rkie joined #mojo
00:12 spoot joined #mojo
00:21 jack joined #mojo
01:05 hesperaux__ joined #mojo
01:07 laouji joined #mojo
01:23 jnbek joined #mojo
01:24 dvinciguerra joined #mojo
01:42 jberger "i did it with regular expression" -- tear
01:43 sri sometimes i hate open source, you've been helping someone for 3 years and all you get in return is angry tweets where they are calling you names... http://irclog.perlgeek.de/mojo/search/?nick=&q=freman
01:45 jberger the best thing you can do is keep your own civility
01:46 jberger That way if it comes to it, you have the high ground
01:47 jberger it is a bit of a low mood to leave here and spread things around Twitter
01:47 jberger s/mood/move/
01:48 jberger I would have hoped that that kind of conflict resolution had ended in junior high, but oh well
01:49 lucs sri: I think he felt that you called him a liar ("that's not true, you read half of it") and an idiot ("and made assumptions").
01:49 jberger lucs he did refer to the document that had his answer
01:51 lucs Maybe he missed it? I'd tend to ask "Didn't you see it in the doc (etc.)?" and I'd alsod ask myself _how come_ he missed it in the doc.
01:51 lucs Note that maybe he is an idiot, but that's usually unlikely
01:52 Adurah Maybe he wanted help instead of "you're doing doc reading wrong".
01:52 jberger I might have phrased my response differently, but sri did ask why he thought those were the arguments he needed
01:54 jberger generally we do have a lot of people who ask questions without having read the tutorial. so this is unfortunately a legitimate question
01:56 rem_lex|pivo joined #mojo
01:56 jberger anyway I'm not interested in rehashing it any further. generally politeness is encouraged, but also we must encourage people to read the doc for the simple stuff our the signal to noise goes to nothing
01:56 jberger Indian river?!
01:56 jberger wtf is this swipe type doing
01:57 Adurah Jeopardy.
01:57 purl please frame your pitiful attempt at a guess in the form of a question.
01:57 jberger s/Indian River/encourage/
01:57 jberger ha
01:58 jberger that's insane
01:58 lucs Wow. That's quite a correction :)
01:58 jberger hahahahaha
01:58 purl LOLCON 5 reached.
01:58 jberger my browser was trying to translate from Norwegian
01:58 jberger after reading oslo.pm
01:59 jberger note to self, don't use Google translate with convos
02:00 jnbek lol
02:00 jnbek yea, you end up with some weird o_O's doing it
02:00 jnbek sometimes, you have to
02:01 jberger well dont do it and change to an English language channel
02:01 jnbek agreed
02:13 sri and of course people here look for what i did wrong after this... https://twitter.com/Fremean/status/445732103141871616
02:13 marty joined #mojo
02:13 * sri feels defeated
02:19 * jberger gives sri an ol-attaboy
02:19 sri this has been a long time coming... i'm burned out
02:19 jberger really you are going to let some guy on the internet beat you down?
02:20 jberger z
02:20 jberger https://xkcd.com/386/
02:21 lucs A classic, but it applies :)
02:25 rem_lex| joined #mojo
02:34 mtths joined #mojo
02:36 disputin joined #mojo
02:40 snap_ joined #mojo
02:41 gnephiak joined #mojo
02:47 snap_ joined #mojo
02:48 klapperl joined #mojo
03:00 snap_ joined #mojo
03:04 sujithm_ joined #mojo
03:15 sujithm joined #mojo
03:30 hesperaux_ joined #mojo
03:39 Eke- joined #mojo
03:41 damaya Hm, interesting.
03:42 damaya I kinda think batman can be a bit abrasive at time. sri has not come off as such to me, but he does seem to have the ability to be abrasive as well. I know for a fact that I am abrasive.
03:42 damaya At least I know I can be.
03:43 damaya Who cares though? I don't understand the, "I'm not using X because Y is an asshole."
03:43 damaya Seriously, stop crying about it, use it if it is awesome, everyone has a bad day at times, and some people are just not good people people...
03:44 damaya I am one of those not good people people... Anyway, I think mojolicious needs a PR rep :)
03:44 damaya jberger is probably the nicest guy around, seems a good candidate.
03:45 damaya And sri, who gives a shit? You're making something awesome, and hopefully you'll attract new people to Perl just based on how great Mojolicious is... it just needs more attention, somehow.
03:45 damaya Hrm
03:45 damaya Anyway, later all, have a good night. I got some work to do.
04:03 howitdo joined #mojo
04:08 sh4 joined #mojo
04:26 firnsy mojo FTMFW!!!
04:26 firnsy i'd have sri's babies
05:19 sujithm joined #mojo
05:39 russum left #mojo
05:47 tempire arg
05:47 tempire Mojo::APNS dies with a segfault 11
06:04 laouji joined #mojo
06:14 sujithm joined #mojo
06:21 batman tempire: when? Why? Which OS?
06:22 batman damaya: I'm rarely try to be a dick. But my honesty often get misinterpreted.
06:22 d4rkie joined #mojo
06:23 batman s/'m//
06:24 batman I agree about what you say about jberger :)
06:25 tempire osx
06:27 tempire Though I'm not sure I have my device token correct.
06:29 tempire batman: https://gist.github.com/tempire/9636444
06:30 tempire looks like some sort of ssl error.
06:33 batman_ joined #mojo
06:33 elvis joined #mojo
06:43 batman_ oops! i switched off the wrong circuit was offline before tempire said "osx"
06:43 batman_ tempire: but segfault...? a wrong device token shouldn't cause that
06:43 tempire I wouldn't think so.
06:43 tempire It's strange.
06:44 snap_ joined #mojo
06:46 batman_ what about the key and cert?
06:48 batman_ looks like it fail to connect and not fail to send the message
06:49 tempire cert and key seems fine
06:49 tempire tested with "openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert push.crt -key push1.key"
06:50 batman_ could you do warn "connecting..."; $apns->_connect(gateway => sub { warn "CONNECTED!"; }); warn "starting ioloop"; $apns->ioloop->start;
06:51 batman_ ^ just to see if it segfault before any of those steps
06:52 tempire "starting ioloop", then segfault
06:52 tempire at same Net::SSLeay location
06:53 batman_ ah! crap. sorry. i didn't read the d:Trace output :(
06:53 batman_ have you tried upgrading Net::SSLeay and openssl libs?
06:54 batman_ which versions of Net::SSLeay and IO::Socket::SSL do you have?
06:54 tempire installed the latest of both. I'm forcing an install right now
06:54 tempire IO-Socket-SSL-1.970, Net-SSLeay-1.58
06:54 batman_ ok
06:55 batman_ i will check what i have..
06:56 dod joined #mojo
06:59 batman_ hm... libio-socket-ssl-perl 1.76-1ubuntu1, libnet-ssleay-perl 1.48-1
07:00 batman_ libssl-dev 1.0.1c-3ubuntu2.3
07:01 batman_ same with openssl and libssl ^
07:01 batman_ then i cannot acactly tell you to upgrade ;)
07:01 batman_ i'm guessing there's something fishy going on with the ssleay and openssl bindings, but it weird if the tests went through
07:02 batman_ and i'm sorry i can't help you, since it's not directly a mojo-apns issue, but please tell me afterwards, so i can document it
07:14 hummeleBop joined #mojo
07:14 Eke- joined #mojo
07:15 dod joined #mojo
07:15 Vandal joined #mojo
07:17 snap_ joined #mojo
07:31 tempire lulz
07:31 tempire I had the cert and key switched
07:31 tempire :/
07:46 batman_ oh! i've actually been there, done that :(
07:46 batman_ sorry for not remembering
07:50 dod joined #mojo
07:50 mishantil Ordering of chains can be annoying. Ever played with pound? Pound is picky...
07:56 eseyman joined #mojo
07:57 trone joined #mojo
08:00 sicklynicky joined #mojo
08:02 malikai oh what a glorious morning.. today i have no meeting scheduled at all!
08:02 * malikai rejoices
08:03 * malikai slacks off and codes what he wants
08:10 arthas joined #mojo
08:12 sujithm joined #mojo
08:12 rawler joined #mojo
08:19 basiliscos joined #mojo
08:23 ver joined #mojo
08:28 laouji joined #mojo
09:28 fhelmber_ joined #mojo
09:29 spoot joined #mojo
09:39 pierrick joined #mojo
09:43 sujithm joined #mojo
09:45 sujithm_ joined #mojo
09:46 cpan_mojo Mojolicious-Plugin-ServerStatus 0.01 by Fu Kai - http://metacpan.org/release/FUKAI/Mojolicious-Plugin-ServerStatus-0.01
09:47 sujithm joined #mojo
09:48 sujithm joined #mojo
09:55 Dandre joined #mojo
09:58 dpetrov_ joined #mojo
10:00 spoot joined #mojo
10:01 cpan_mojo Mojolicious-Plugin-ServerStatus 0.02 by Fu Kai - http://metacpan.org/release/FUKAI/Mojolicious-Plugin-ServerStatus-0.02
10:08 hesperaux_ joined #mojo
10:20 dvinciguerra joined #mojo
10:26 spoot_ joined #mojo
10:32 D4RK-PH0ENiX joined #mojo
10:37 meshl joined #mojo
10:41 laouji_ joined #mojo
10:43 Jonneh joined #mojo
10:44 odc mm interesting plugin
10:46 * jberger blushes and blushes some more
10:52 jberger I really do like having cpan_mojo running, I never would have seen that plugin otherwise
10:57 trone joined #mojo
11:12 nicomen joined #mojo
11:17 spoot joined #mojo
11:25 denis_boyun joined #mojo
11:29 mattastrophe joined #mojo
11:36 snap_ joined #mojo
11:37 neilhwatson joined #mojo
11:40 fhelmbe__ joined #mojo
11:54 mire_ joined #mojo
11:59 snap_ joined #mojo
11:59 stephan48 who created cpan_mojo?
12:15 dvinciguerra joined #mojo
12:23 Jonneh joined #mojo
12:34 fhelmber_ joined #mojo
12:42 d4rkie joined #mojo
12:48 dod joined #mojo
12:49 nic yep, I could shove purl where the bits don't shine, but cpan_mojo is proving v useful
12:51 Bravo13 joined #mojo
12:52 jberger_ joined #mojo
12:52 spoot joined #mojo
12:53 jberger_ stephan48: it's my bot, I'm not being especially humble :-P
12:53 Negor|2 joined #mojo
12:53 stephan48 jberger++
12:54 jberger_ The bot is included as an example in my Mojo::FriendFeed
12:54 jberger_ https://github.com/jberger/Mojo-FriendFeed/blob/master/ex/cpan.pl
12:55 jberger_ Miyagawa++ runs a feed of CPAN submissions
12:56 jberger_ My module reads it and uses batman++s Mojo::IRC to post it here
12:57 nic jberger_: How about extending the bot to also report on modules Mojo uses (eg Ev and the SSL ones)?
12:59 jberger_ The bot just uses a regex to filter, they could just be added to that
12:59 jberger_ No real extension needed
13:00 nic that's what I'm saying
13:00 nic DO EEEEET
13:07 D4RK-PH0ENiX joined #mojo
13:08 spoot joined #mojo
13:10 jberger_ Remind me tonight, I forgot to set up noip on my home computer
13:10 jberger_ Oops
13:11 jberger_ DO EEEET NAAAAOW
13:13 cpan_mojo Mojo-APNS 0.0404 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojo-APNS-0.0404
13:14 batman_ tempire: ^ thanks :)
13:16 nic jberger_: IMO it would be slightly more convenient if the url =~ s{release}{changes/release}
13:16 batman_ crap. typo :( don't wanna make a new release because of that i think...
13:19 jberger_ nic: that might be true for modules that I/we are already familiar with, but I like going to the release page for modules that are new or that I haven't seen before
13:19 jberger_ And in practice, those are the ones I click on more often
13:19 nic yeah, it would only save one click anyway
13:20 jberger_ The release page does show the most recent changes bullet
13:21 jberger_ (Which is why there was that push for a standardized changes format a few months back)
13:32 spoot joined #mojo
13:42 mire joined #mojo
13:43 spoot joined #mojo
13:49 sujithm joined #mojo
13:58 btyler joined #mojo
14:01 nic hence the "one click" comment ;)
14:14 neilhwatson joined #mojo
14:15 malikai stupid question i guess, but why all the futurama references?
14:15 Akron joined #mojo
14:15 malikai what's so cool about that show?
14:20 genio it was a good show.  it got canceled too early (we liked it, damnit!) and then it got brought back to life after way too long
14:21 neilhwatson joined #mojo
14:23 malikai i dig it.. i never really watched it or much of anything else for that matter
14:24 malikai i have a bad opinion of TV since my wife exclusively watches shit shows and therefore forces me to endure shit shows from time to time
14:25 malikai if i could, i would make all TVs go away.. so don't ever vote for me
14:31 hesco joined #mojo
14:39 gryphon joined #mojo
14:49 spoot_ joined #mojo
14:54 spoot__ joined #mojo
14:59 * nic casts a postal vote
15:00 nic A good rule of thumb is to never vote for someone who asks you to vote for them
15:00 * nic realises he's fallen into a trap
15:00 genio heh
15:01 moritz "people have accusted of blatant electioneering. What do you say to that?" -- "vote for me!"
15:05 davido_ Hm, another good rule is to never vote for someone who doesn't ask you to vote for him; people who can't get to the point don't deserve the vote.
15:05 * nic nods
15:06 nic And waterboarding them or making them use XML until they relent and agree to take office probably isn't a fruitful way to proceed
15:06 davido_ Nothing fruitful ever comes from XML.
15:10 malikai fuck.. give the waterboard please
15:10 asarch joined #mojo
15:12 * marty floats through the channel sprinkling magic ponycorn dust
15:12 * nic wakes up and has forgotten everything
15:13 * malikai doesn't get high on magic ponycorn dust anymore
15:13 nic I've written a module which is very useful for some people and perhaps should be on CPAN
15:13 nic if it wasn't for one major flaw...
15:13 nic it relies on a site-specific configuration file
15:14 malikai i've got a bunch of the same
15:14 nic Currently I have the path to that hardcoded into the module itself, but that won't swing in public
15:14 davido_ Can you generalize the config file, and decommission parts of the module that cannot be specialized without a more complete config?
15:15 malikai or sobmodule the crap out of it
15:15 nic no, reading the values is central to its functionality
15:15 malikai s/sob/sub/
15:15 nic eg the name of the db table you want to log to
15:15 nic I don't really want that in a plugin cos each instance should be able to rely on its functionality
15:16 nic on linux I currently have it in /srv/feed/cfg/defaults-1.0.conf
15:16 nic and i'm thinking that could move to /etc/mysql, or maybe that's even worse
15:16 davido_ Make it so that it can pass tests by using SQLite.
15:17 nic its v MySQL-specific
15:17 nic heh, I meant /etc/perl, not /etc/mysql
15:17 sh4 joined #mojo
15:18 nic For module A::B::C I guess I would need to move defaults-1.0.conf to /etc/perl/A/B/C/defaults-1.0.pl
15:19 nic one option is to leave it on github and just allude to it in related modules on cpan
15:20 cpan_mojo Mojolicious-Plugin-Airbrake 0.01 by JONTAYLOR - http://metacpan.org/release/JONTAYLOR/Mojolicious-Plugin-Airbrake-0.01
15:22 jrbeilke joined #mojo
15:22 zz_Foxcool joined #mojo
15:24 dvinciguerra joined #mojo
15:25 d4rkie joined #mojo
15:26 Negor joined #mojo
15:28 sujithm joined #mojo
15:34 HtbaaPi using the json method in Mojo::Message warns for using a large body. I've run into that limitation now (file uploads). Is there another method or module that can handle large JSON data?
15:34 jberger_ nic: include a default config and copy it to the user's home dir on first use
15:35 jberger_ I do that for zoidberg
15:40 nic interesting, I'll take a look at zoidberg later on
15:40 russum joined #mojo
15:42 nic jberger_: How does the module then load the config file?
15:43 jberger_ Well it is not mojo based, so it just reads it
15:43 jberger_ For mojo based I would use the built in config plugin
15:43 jberger_ Galileo does this but it generates one on the fly
15:45 nic I mean, how does the module know where to read it from?
15:45 nic Does it only work if the config is the home dir of the user running the module?
15:46 jberger_ In that case it does, but as it's a user space app it makes sense
15:47 jberger_ Have you used the built-in config plugin?
15:47 nic I'm thinking of making the config executable; then the user can take care of picking it up... "perl -I/srv/feed/cfg"
15:48 jberger_ Eeeeeee
15:48 moritz what could possibly go wrong.
15:48 nic nah, that wouldn't work cos the user couldn't then have versioning on configs
15:49 jberger_ In that case have an env variable which you can set to the path of the civic file
15:49 jberger_ *config
15:49 nic I hate env vars
15:50 nic ok for debugging, but not for normal running
15:50 nic mysteriously things work differently and it turns out the env vars are slightly wrong
15:50 * nic has scary flashbacks to the Nineties
15:51 jberger_ Then it is a command line switch
15:51 jberger_ That's about all you have left
15:51 nic I'll look up whether there's a portable equivalent of /etc/perl
15:51 tianon joined #mojo
15:52 jberger_ Ha!
15:52 nic oh damn, that's the executable route again, isn't it
15:53 jberger_ Look at Galileo.pm lines 24-34
15:53 spoot joined #mojo
15:53 moritz are command line options out of style?
15:53 nic I don't think I can make commandline work in this scenario
15:54 nic perl -MMy::Data::Feed -EMy::Data::Feed::perform
15:54 nic but it's the parent class of My::Data::Feed that loads the config file
15:54 moritz of course you can, if you really want to
15:55 jberger_ https://github.com/jberger/Galileo/blob/master/lib/Galileo.pm
15:55 moritz have sub perform read @ARGV, for example
15:55 jberger_ Getopt::Long. Done
15:56 jberger_ nic: what kind of app is this?
15:56 moritz ... which reads @ARGV, right
15:56 nic jberger_: Data warehousing
15:56 purl i heard Data warehousing was fun with oracle.
15:56 nic purl: They lied
15:56 purl nic: excuse me?
15:56 jberger_ Is it a mojolicious app, a mojolicious command?
15:56 nic purl: You're excused
15:56 purl nic: sorry...
15:57 * jberger_ shoves purl down the stairs
15:57 jberger_ Hmm that one used to work
15:57 nic jberger_: This part of it isn't a web app (but all of it relies on bits of Mojo)
15:57 jberger_ Could it be a command?
15:58 nic ooh, moritz (and jberger_) I think you've hit on a way
15:58 nic i abs must keep 'perform' beautifully clean and readable
15:59 nic but every instance of perform includes " ..->configure->..."
15:59 nic so the configure method could pick commandline options
16:00 jberger_ nic: are you aware of the Mojolicious::Commsnd system?
16:00 nic I is aware
16:00 jberger_ Ok
16:01 jberger_ Then yeah a method as you describe seems sane
16:01 nic thanking you both
16:01 HtbaaPi to answer my earlier question: JSON::SL is very capable of processing large JSON data
16:02 nic good to know
16:12 jberger_ This seems like an interesting thing: firepad.io
16:14 nic oooh, I was looking at a proprietary version of that the other day; downloadable from github is much more exciting
16:14 jberger_ Blast, it still uses their backend
16:15 jberger_ I want something that you store
16:16 spoot_ joined #mojo
16:17 spoot joined #mojo
16:19 rawler joined #mojo
16:34 ua_ joined #mojo
16:45 mire joined #mojo
16:53 beyondcreed joined #mojo
17:16 tianon joined #mojo
17:25 denisboyun joined #mojo
18:00 abra joined #mojo
18:18 Adura joined #mojo
18:20 Eke- joined #mojo
18:30 spoot_ joined #mojo
18:33 damaya joined #mojo
18:34 damaya Good morning everyone.
18:44 hesco joined #mojo
18:58 disputin joined #mojo
18:58 gryphon joined #mojo
19:35 mire joined #mojo
20:00 damaya Is there a better way to do this: http://paste.scsys.co.uk/328338?hl=on&submit=Format+it!
20:00 damaya Or is that acceptable?
20:02 moritz damaya: there are ->any routes
20:03 damaya Hm, each one does something different.
20:04 damaya So, for example, let's say a post to file, it will create a file in the database given X params
20:04 damaya A get will get the file and display it.
20:48 irctc806 joined #mojo
21:11 meshl joined #mojo
21:16 maxhq joined #mojo
21:20 maxhq joined #mojo
21:44 sujithm joined #mojo
21:58 mattastrophe joined #mojo
22:00 Adura joined #mojo
22:01 mudler joined #mojo
22:01 meshl joined #mojo
22:16 spoot joined #mojo
22:56 zivester joined #mojo
22:59 mire joined #mojo
23:16 jberger__ joined #mojo
23:21 davido_ joined #mojo
23:38 mire_ joined #mojo
23:45 spoot joined #mojo

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