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

IRC log for #mojo, 2015-04-16

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

All times shown according to UTC.

Time Nick Message
00:06 HtbaaPi joined #mojo
00:23 Grinnz OmarOthman, it may be easier just to pass the controller object itself
00:35 davido__ joined #mojo
00:42 mattastrophe joined #mojo
01:36 klapperl joined #mojo
02:10 noganex joined #mojo
02:44 btyler joined #mojo
02:47 ace joined #mojo
03:02 basic6_ joined #mojo
03:44 irq joined #mojo
04:03 _dave_ I'm assuming you guys don't like JSON::XS and prefer Mojo::JSON?
04:03 Zoffix I prefer JSON::Meth
04:03 _dave_ ... lol
04:04 Zoffix Meth for Method
04:04 * Zoffix regrets the name now...
04:04 _dave_ well it appears to be a pun referring to the speed of your module
04:04 Zoffix hah
04:05 _dave_ since I have both speed and correctness concerns, I'm immediately interested if you can beat JSON::XS
04:05 Zoffix Mine is using JSON::MaybeXS under the hood... so... maybe? :)
04:06 Zoffix Its main purpose is to provide magic like  [qw/foo bar baz/->$json
04:06 _dave_ is there Mojo support for it?
04:06 Zoffix I mean [qw/foo bar baz/]->$json
04:06 _dave_ that is cute :D
04:07 Grinnz _dave_, JSON::XS, Cpanel::JSON::XS and thus JSON::MaybeXS will all be around the same speed
04:07 Zoffix Umm... I'm gonna say no, since there's nothing Mojo in it, but I'm not sure what "Mojo support for it" means :)
04:07 Grinnz you can use Mojo::JSON::MaybeXS to replace Mojo::JSON methods with the XS ones
04:07 _dave_ Well, with Mojo's emphasis on non-blocking and hence "speed" ... it seems ominous that sri wrote his own module for JSON
04:08 Grinnz Mojo::JSON is pure perl, to avoid dependencies
04:08 _dave_ ah ha, that's why
04:08 _dave_ ok, thanks :)
04:25 btyler joined #mojo
04:34 Zoffix 0_o  blessed( $mojo_collection ) returns undef?
04:34 Zoffix What sorcery is that!?
04:36 sri Grinnz: it's not to avoid dependencies
04:36 Zoffix Oh, I just made a boo-boo and it's actually a single-element arrayref, but I missed the brackets in dumper's output
04:36 sri Mojo::JSON is just better than JSON::PP
04:45 _dave_ is it better than JSON::XS? I never use JSON:PP :)
04:45 _dave_ "better" is a vector valued reference though, I'm considering speed and correctness as elements
04:45 sri first of all, you don't use JSON::XS
04:46 sri you use the fork
04:46 Zoffix You're comparing XS module to Pure Perl for speed? :)
04:46 sri and second, what Zoffix said
04:46 _dave_ well, yes :)
04:46 Oleg joined #mojo
04:46 _dave_ only to be complete about my comparison, I probably know the answer
04:46 _dave_ and what fork?
04:46 purl fork you, pal!
04:47 _dave_ you don't eat purl
04:47 preaction purl: fork off!
04:47 purl fork you.
04:47 sri https://metacpan.org/pod/Cpanel::JSON::XS
04:47 _dave_ that is a fork? O.o
04:47 _dave_ omg
04:48 sri that one has actually picked up some Mojo::JSON semantics, so Mojo::JSON::MaybeXS should work very well
04:48 _dave_ well I need to load Cpanel::JSON::XS
04:48 Grinnz sri, right, i mean to avoid compiling xs
04:49 sri https://metacpan.org/pod/Cpanel::JSON::XS#cPanel-fork
04:53 inokenty-w joined #mojo
04:55 batman sri: I will release assetpack anyway... Can I get some feedback now?
04:55 batman Hehe
04:56 batman Good morning #mojo
04:56 Zoffix It's morning already?! :O
04:56 batman To
04:56 batman Me
04:56 batman It is: 0655
04:56 Zoffix Thu Apr 16 00:56:59 EDT 2015
04:57 Zoffix I have to wake up in 4.4 hours :(
04:57 batman Well... 4hours of sleep is enough to not get the brainwash effect, so your good :)
04:58 batman Crap. ETOOMANYTYPOS
04:58 Zoffix I also just drank 5 cups of coffee (drinking 6th)...
04:58 Zoffix In retrospect, that was probably a bad idea
04:58 batman Guess it's a bit too early for me :P
04:58 Zoffix :D
04:59 batman Zoffix: Sounds like you're addicted.
05:00 Zoffix batman, no, I actually came home from work and accidentally fell asleep at 5pm. Woke up at 10pm and knowing that I won't be able to fall asleep until morning, decided to go with my tried-and-true method of drinking a ton of coffee and the crashing :)
05:00 Zoffix It worked in the past, but not working now :)
05:00 Zoffix s/the crashing/then crashing/;
05:01 _dave_ caffeine stops working after a while :)
05:01 batman Oh. That's awful :(
05:01 _dave_ learned that in college lol
05:02 batman sri: I'm going to add support for replacing "tags" as well, before making a new release, so you have time to give feedback :)
05:04 Zoffix batman, I have a challenge for you: make AssetPack auto-generate sprites :) You give it a directory with separate images and it packs them up into a single file as well as generates CSS code for them :)
05:05 Zoffix Like this: https://draeton.github.io/stitches/  / https://github.com/draeton/stitches
05:05 sri or have a spdy/http2 reverse proxy
05:06 sri in whih case sprites make no sense anymore
05:06 Zoffix What does it do?
05:07 sri https://http2.golang.org/gophertiles
05:07 Zoffix "Unfortunately, you're not using HTTP/2 right now."  wah-wah-wah
05:07 sri chrome stable has it
05:07 Grinnz hah
05:08 sri upgrade your caveman browser!
05:08 Zoffix :D
05:08 Grinnz so http/2 is good for something after all
05:13 Zoffix Interesting. I guess in a decade, when 30% of our customers won't be using IE8, I'll be able to make use of that :P
05:14 batman Zoffix: I used to care, but now I don't. Sorry :/
05:14 batman But I will take a PR :)
05:14 Zoffix Nah, sri just made a point that implementing that is a waste of time :)
05:15 batman It doesn't sound hard though.
05:15 batman Well... I think 1.1 will stick around for quite some time.
05:15 Grinnz i wonder if the frontend guys at work know about that http/2 difference for images
05:15 Grinnz our page uses _a lot_ of images
05:16 Grinnz maybe it'll be another reason to get off this server running apache 2.2
05:17 Zoffix I'll think about making a PR... but I won't have any time in the next ~2 months...\
05:22 batman Zoffix: then it doesn't sound important enough
05:22 batman :)
05:22 batman sri: do you see pm?
05:36 batman I wonder if Perl have ever been used in this context: https://twitter.com/erratarob/status/588552078924054529 :)
05:38 Zoffix batman, I'm just working on a project to use at $work. End result of which will be us getting a Linode instead of shitty 1and1 shared hosting that still got perl 5.10 on it and I'd be maintaining 1 backend instead of 11 :) It took me 7 years to convince @management that we need a better server and 1 year to convince them to switch to this new 1-backend type system
05:38 Zoffix And part of my convincing was offering to code that system on my own time, and release it as open source. The company would have to pay only for converting the 11 sites to it :)
05:39 Zoffix And it's more important than sprites, but last time I used that Stitches sprite maker, I ended up regenerating and resaving sprite CSS/pic several times and I found it annoying, which is why I thought having it as an AssetPack thing would be nice :)
05:41 batman Zoffix: Nice work :)
05:42 batman So... If you give me some small examples and ideas on how to do it, I might
05:42 berov joined #mojo
05:42 batman I think I've even closed a GitHub issue about this...
05:43 batman The problem is that if I do it, I will end up with "what if...?" and spend way too much time on this :(
05:43 batman *Do it from scratch
05:45 batman Zoffix: just reopen this and add some ideas
05:45 batman https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/21
05:47 batman It would help to at least have someone to discuss this with...
05:48 sri http/1.1 will never go away
05:48 sri it's strictly required for the non-tls handshake
05:49 sri and what are the odds that everyone will be using https?
05:49 batman Zoffix: questions like "is it best to make a horizontal, vertical or tiled sprite? How much spacing between each tile? Which image library to use? What output format is the best default? ......
05:50 kaare_ joined #mojo
05:50 batman How about loading images over a ws instead? :)
05:50 Zoffix heh
05:51 sri then you don't get caching
05:51 batman J/k
05:51 sri well, http/2 looks much like ws on the wire... so...
05:51 sri bad joke!
05:51 purl rumour has it bad joke is why don't people eat clowns.......because they taste funny. or What's brown and sticky?  A Stick! or what do you do with a dog that has no legs? take him for a drag. or what is brown and sounds like a bell? Dung
05:52 Zoffix batman, how do I reopen it? I don't have a button
05:53 melo joined #mojo
05:55 batman Zoffix: give me five min and I'll do it...
05:55 batman On my way to work.
05:55 Zoffix No rush :) I'm going to bed anyway :)
06:04 batman Zoffix: is it you who already have commented here? https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/21
06:04 batman ah. right :)
06:04 batman forgot to look at the timestamp :)
06:11 bramirez joined #mojo
06:13 sri csi cyber is hilarious
06:14 batman sorry for the joke... i didn't actually think about the caching. i just imagined how awful the page would look on "inspect element" :)
06:26 melo1 joined #mojo
06:47 batman weee! https://metacpan.org/pod/distribution/Mojolicious-Plugin-AssetPack/lib/Mojolicious/Plugin/AssetPack/Manual/Reloader.pod :)
06:48 batman thanks sri. looking forward to feedback (from anyone) :)
07:15 trone joined #mojo
07:15 eseyman joined #mojo
07:16 genio joined #mojo
07:22 irq joined #mojo
07:24 devop joined #mojo
07:29 irq_ joined #mojo
07:49 genio joined #mojo
07:52 chorny joined #mojo
07:59 batman which plot library in javascript is cool these days?
07:59 batman i need something with mouse events, such as click and mouseover on datapoints
08:00 batman plot/chart/...
08:01 go|dfish D3.js?
08:03 batman i think it's a bit complicated. too much to set up imo :/
08:03 batman i'm considering morris.js or chart.js
08:08 genio joined #mojo
08:12 Vandal joined #mojo
08:19 bpmedley batman: Does the library have to be free?
08:20 batman in theory: no. but there seems to be a lot of good free alternatives, so....
08:20 batman i think i'm going for morris.js. looks very smooth http://jsbin.com/uqawig/441/embed?html,js,output
08:20 bpmedley Kendo UI is really good
08:24 batman bpmedley: kendo ui seems too much. thanks anyway
08:27 mattastrophe joined #mojo
08:46 OmarOthman joined #mojo
08:50 OmarOthman1 joined #mojo
09:11 btyler batman: NVD3 is a really nice wrapper around D3 for the standard set of graphs. hadn't encountered morris, that looks nice too
09:14 _dave_ joined #mojo
09:15 batman nvd3 looks neat :) thanks
09:15 hshong joined #mojo
09:37 OmarOthman joined #mojo
10:01 AndrewIsh joined #mojo
10:18 Shaeto joined #mojo
10:26 Shaeto1 joined #mojo
10:53 irq joined #mojo
11:09 neilhwatson joined #mojo
11:31 Shaeto1 left #mojo
11:39 irq_ joined #mojo
12:00 marcus nice, Mojolicious got a honorable mention in the February :login issue.
12:01 mattastrophe joined #mojo
12:10 batman marcus: have you also blocked pm from me..? :/
12:11 marcus batman: what?
12:12 marcus batman: not to my knowledge
12:12 amon joined #mojo
12:13 batman ok :)
12:13 batman marcus: what did they say in :login ?
12:14 marcus batman: that Mojo::UserAgent is very useful, and it showed some examples. It was an example about REST clients in perl.
12:14 batman cool :)
12:25 bramirez joined #mojo
12:58 trone joined #mojo
12:59 McA joined #mojo
13:06 asarch joined #mojo
13:06 genio link?
13:07 genio oh, nevermind.  it's behind a paywayll
13:07 genio wall, too
13:08 pink_mist larry paywall?
13:09 jabberwok hmm, who does pay Wall ?
13:23 jb360 joined #mojo
13:29 jberger https://www.usenix.org/publications/login/apr15/blank-edelman
13:29 jberger gah! I want to release my phantom module!
13:30 melo joined #mojo
13:30 jberger my competition gets mentioned in an abstract and I'm not just because mine "isn't released yet"!!!
13:34 vmbrasseur joined #mojo
13:40 vmb joined #mojo
13:54 melo joined #mojo
14:11 Ptolemarch joined #mojo
14:18 vmb joined #mojo
14:30 gryphon joined #mojo
14:35 jabberwok joined #mojo
14:36 PotatoGim^Home joined #mojo
14:42 Grinnz_ i know how you feel, i want to release my irc bot :P
14:43 Grinnz_ it's getting closer... but i still havent written any tests <_<
14:57 jabberwok i'm still a bit fuzzy on the concept of automated testing.  how do you test for "it doesn't look right" or "the focus starts in the wrong spot despite what the code says" or "i'm not seeing the right images from the live feed" ?
14:58 marty joined #mojo
14:59 jberger Grinnz_: my module is ready, I'm waiting for a dependency to be released
14:59 Grinnz_ heh
15:00 Grinnz_ jabberwok: it's a complicated thing sometimes.
15:00 Grinnz_ jabberwok: but if you can figure it out, it becomes much simpler after :)
15:01 batman jabberwok: don't start there. start with the simple stuff: does the thing i expect happen?
15:02 batman jabberwok: but... are you talking about in browser testing or "api" testing (Test::Mojo)?
15:26 jabberwok Grinnz_ , batman --  i suppose it's more a bottom-up thing that i just need to keep hacking until i grok it.  not unlike un-learning PHP.  i'm trying to remember to write down my "Aha!" moment as mojo gets easier.
15:29 batman jabberwok: have a look at http://mojolicio.us/perldoc/Test/Mojo#SYNOPSIS
15:30 batman it's very easy (once you try it out a bit) to write basic tests for you mojo app
15:30 batman with Test::Mojo you can test everything that has to do with websockets or http.
15:31 jberger (and maybe soon, your javascript :-) )
15:32 jabberwok *bow*   i find that having made hardcopy of the Mojo Guides, default helpers, et al, and scribbled questions and notes all over, it's starting to come together.  cheers
15:32 batman if you want to do gui testing... i think you need to wait for https://github.com/jberger/Test-Mojo-Phantom or https://github.com/jhthorsen/test-mojo-browser or use something that doesn't care about the programming language
15:32 batman but start with the simple stuff: Test::Mojo
15:33 jberger batman: I hadn't seen yours
15:33 sri damn, there's still more 5.10 users than 5.20 :O http://cpanmetadb.plackperl.org/versions/
15:33 batman jberger: sure you have.
15:33 sri i hope most of those are just perlbrew environments for testing...
15:33 jberger oh, hmmm perhaps
15:33 batman jberger: we went back and forth when you started on yours :)
15:33 jberger I remember now
15:33 jberger my mind is on $work
15:34 jberger sri :(
15:34 batman jberger: hehe :)
15:34 batman sri: wow. that's bad :/
15:34 jberger encouraging that 5.18 is doing that well though
15:34 batman sri: i'm waiting for my boss to verify the quote for https://github.com/kraih/mojo/wiki/User-quotes now...
15:35 batman can i just add it on top, or is there any rule?
15:35 sri batman: ?
15:35 batman sri: uhm... what was unclear?
15:35 batman *is
15:35 jabberwok last i checked, GoDaddy hosting still gave you 5.8.8 ... O.o
15:36 Zoffix Use Linode
15:36 Zoffix $10/month
15:36 batman sri: i've written a quote, but i'm not allowed to post it on the wiki before it's verified internally
15:36 sri i see
15:37 batman can i just add it once that is done or do you want to look at it first?
15:37 batman *when
15:37 sri i've never done that so far
15:37 batman $typo->typo->typo->typo->typo->typo('boom') # :(
15:38 Ptolemarch joined #mojo
15:38 batman ok. i had noe idea what the process was for adding a quote
15:38 batman *have
15:39 batman ok... i obviously need to get some food... (or am i just more conscious of my bad spelling now?:/)
15:39 sri actually, i wasn't really paying much attention to the quotes anymore, and considered it a failed experiment
15:39 sri many who promised just never delivered
15:39 batman yeah. i've had a ticket for that @work for several months :(
15:40 batman i'm adding mine anyway. hopefully on monday...
15:42 batman *bbl*
15:52 sh4 joined #mojo
16:01 jberger sri: we just got Mojo to production at $work
16:01 jberger I expect to be able to add a quote soon
16:01 jberger probably in the voice of a co-worker so that it doesn't just seem like those of us here
16:07 sh4 joined #mojo
16:08 sh4|2 joined #mojo
16:15 Oleg joined #mojo
16:29 batman hehe... same here. i'm trying to put my boss' name on the quote :)
16:39 Zoffix jberger, re cpan_mojo, what if you tail PAUSE deamon log? https://pause.perl.org/pause/authenquery?ACTION=tail_logfile  Watch for "Info: Verified S/SB/SBECK/Data-Checker-1.06.tar.gz" strings and announce them
16:39 Zoffix That's as fresh-off-the-tap as you can get
16:40 Zoffix Though, I guess you need to unpack stuff to see if it uses Mojo stuff, eh?
16:40 batman Zoffix: i'm on it :)
16:40 Zoffix OK :)
16:41 batman Zoffix: jberger already does that, but i was hoping i could make query that did it for me
16:41 batman but i fail to "sort" it correctly
16:43 jberger the friendfeed was originally intended to prevent lots of different users from having to do that and putting the load on pause
16:43 jberger miyagawa had one watcher and it published to friendfeed
16:43 jberger but now, RIP friendfeed
16:47 disputin joined #mojo
17:02 bwf joined #mojo
17:03 batman no idea why, but suddenly i made it work... https://gist.github.com/jhthorsen/ab6b34e708e5f625a227
17:06 Zoffix \o/
17:42 punter joined #mojo
17:42 Ptolemarch joined #mojo
17:42 jabberwok yes, by 'support' i just meant +1® (™ google.com).
18:16 batman jberger: got time to look at this? https://github.com/jhthorsen/App-cpan_new/blob/master/script/cpan-new
18:18 Grinnz_ batman: i'm not sure if it's important for your case, but irc_rpl_endofmotd is not always fired, some servers send err_nomotd instead
18:19 batman Grinnz_: thanks. i'm aware. just don't have time figure out the correct event now
18:19 * jberger looks
18:21 jberger asymmetry between check and message here: https://github.com/jhthorsen/App-cpan_new/blob/master/script/cpan-new#L18-L19
18:21 batman what do you mean?
18:22 Grinnz_ it's checking target but the warning is about the server
18:23 batman ah. right
18:26 jberger batman: yeah, what Grinnz_ said
18:26 irq joined #mojo
18:34 cpan_mojo joined #mojo
18:34 batman i guess we're live.
18:35 jb360 joined #mojo
18:36 Grinnz_ we'll do it live!
18:37 batman someone have to make a release to confirm :P
18:37 Grinnz_ test with its own release, like i did for my dzil plugin bundle :D
18:38 batman i'm _not_ releasing App::cpan_new to cpan
18:38 Grinnz_ heh
18:38 batman and it wont' show up, since it doesn't start with "Mojo"
18:38 batman https://github.com/jhthorsen/App-cpan_new#synopsis <-- i've started it like described in the last line in the SYNOPSIS
18:41 Grinnz_ hmm, i could do a new release of Mojo::Reactor::Epoll, i have a minor change i havent released yet :P
18:45 * Grinnz_ twiddles thumbs
18:45 OmarOthman left #mojo
18:47 Grinnz_ i don't think it worked
18:55 berov joined #mojo
19:01 memowe joined #mojo
19:08 batman Crap.
19:14 dotandimet joined #mojo
19:17 Oleg http://thecodinglove.com/post/64954988240/when-i-deploy-to-production-without-testing-my
19:36 cpan_mojo DBOOK released Mojo-Reactor-Epoll-0.004
19:37 Grinnz_ o.o
19:40 batman Grinnz_: is that right? :)
19:41 batman i could be delayed because of https://github.com/jhthorsen/App-cpan_new/blob/master/script/cpan-new#L50, but i'm not sure
19:42 vmbrasseur joined #mojo
19:43 Grinnz_ yes, thats correct, just quite late :P
19:43 Grinnz_ and no url!
19:43 jberger metacpan takes a while to index
19:43 jberger that's why I didn't wait for it to do my query
19:43 batman Grinnz_: pull requests are welcome :)
19:43 Grinnz_ ah, if its waiting for that yeah
19:44 batman does it matter if it's a bit late? i think it's better to have it late than never :)
19:44 Grinnz_ true... but that was almost an hour :P
19:44 batman the message is for everyone else, so the only one that knows it's late is the person who release it.
19:44 batman Grinnz_: maybe i need to set the time right on the server...
19:45 batman anyway. please contribute. i'll give you guys commit bit directly
19:45 Grinnz_ the metacpan index makes sense, my modules usually take that long to get indexed on mcpan
19:46 batman you guys have been added to the repo now.
19:46 batman fix the url, and i'll restart the bot :)
19:46 batman i have to do *other stuff*
19:47 Grinnz_ like beat up bad guys?
19:47 batman nah. i have to dress up as bruce wayne :(
19:49 vmb joined #mojo
19:58 * sri has started playing hearthstone :o
20:08 Mikey does that mean Mojolicious is canceled?
20:14 sri indeed
20:14 sri go home everyone!
20:15 Mikey It just recently came out on phones, I noticed yesterday, downloaded, and didn't fall asleep until 330AM when my battery died.  this was not a coincidence.
20:26 odin22 joined #mojo
20:45 Ptolemarch joined #mojo
21:20 jb360 joined #mojo
21:45 Grinnz_ if it wasn't for video games and netflix, my bot would be done already...
21:45 Grinnz_ :)
21:46 Zoffix Speaking of which....
21:46 Zoffix Time to play Warframe \o/
21:55 * jberger hasn't played any games in too long
21:55 * jberger should find a good one
21:55 jberger I saw this article: http://arstechnica.com/gaming/2015/04/review-elite-dangerous-is-the-best-damn-spaceship-game-ive-ever-played/
21:55 jberger I don't have an oculus rift though
21:57 jberger oh damn, I didn't see that its windows only, boooooo
21:57 * jberger plays https://archive.org/details/msdos_Oregon_Trail_The_1990
22:04 Grinnz_ elite: dangerous is a pretty awesome space sim, but "game" is a bit much at this point
22:05 Grinnz_ i could find more to do in Eve than in that game
22:05 Grinnz_ and i dont like most of the things you can do in Eve
22:06 Grinnz_ if you just want to fly to random real-ish places and maybe grind NPCs though it's great
22:20 sri hearthstone is really good on the phone
22:23 kaare joined #mojo
22:35 Ptolemarch joined #mojo
22:50 _dave_ hmm elite dangerous is on sale on steam
22:51 Grinnz_ oh?
22:51 _dave_ btw if anyone of the gamer types remembers master of orion 2, the game "stardrive2" is mostly a modern clone of it
22:54 _dave_ this is odd though, I have elite dangerous at $29.99 and it says 75% off O.o
22:55 Grinnz_ that math seems a bit off :P
22:55 _dave_ really? :)
22:57 _dave_ I just checked someone else's steam and it's not on sale ... so does this mean if I purchase this while I have this bug, I get the game for cheap?
23:08 jb360 joined #mojo
23:11 disputin joined #mojo

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