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

IRC log for #mojo, 2015-04-24

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

All times shown according to UTC.

Time Nick Message
00:02 preaction yeah, i want to develop games with Phaser.io and deploy them with electron. it seems nicer than node-webkit
00:43 mattastrophe joined #mojo
00:59 asarch joined #mojo
01:26 klapperl joined #mojo
02:09 absolut_todd joined #mojo
02:55 hshong joined #mojo
02:58 noganex_ joined #mojo
03:20 memowe joined #mojo
03:22 basic6 joined #mojo
03:26 irq joined #mojo
04:14 Zoffix If I'm using Default::TagHelper, such as <%= text_field 'lname' %>, is there an easy way for me to optionally fill its value?
04:15 Zoffix Basically, I'm happy with the way the fields get autofilled and all, which is helpful for form value errors, but I'm providing a 'remember values' feature where the user who revisits the page later on gets their last filled values filled in for them.
04:16 inokenty-w joined #mojo
04:17 Zoffix nm, figured it out: this works for me:    $c->param( city => 'foo' );
04:19 sri https://metacpan.org/source/SRI/Mojo-Pg-2.05/examples/blog/templates/posts/_form.html.ep#L4
04:19 sri that's actually part of the blog example
04:23 Zoffix I've actually got <%= text_field 'name' => id => 'c_name' %>
04:24 Zoffix oh
04:24 Zoffix <%= text_field 'name' => param('name') => id => 'c_name' %>  ne  <%= text_field 'name' => param 'name' => id => 'c_name' %>  :)
04:25 Zoffix eh, I'm too wasted to code
04:25 * Zoffix goes to bed
04:34 Adurah joined #mojo
04:36 dotan1 joined #mojo
04:38 LordVorp joined #mojo
04:39 elik joined #mojo
04:40 klapperl joined #mojo
04:40 jzawodn joined #mojo
04:41 Snelius joined #mojo
04:42 absolut_todd joined #mojo
04:43 jnbek joined #mojo
04:44 crab joined #mojo
04:45 bpmedley joined #mojo
04:45 vmbrasseur joined #mojo
04:46 fhelmberger joined #mojo
04:46 gabiruh joined #mojo
04:47 kaare joined #mojo
04:47 bc547_ joined #mojo
04:51 LordV joined #mojo
04:51 melo joined #mojo
04:51 oalders_ joined #mojo
04:51 Zx3_ joined #mojo
04:51 ralesk_ joined #mojo
04:51 Zoffix joined #mojo
04:51 jb360 joined #mojo
04:51 garu joined #mojo
04:51 sivoais_ joined #mojo
04:51 Andreas joined #mojo
04:51 phillipadsmith joined #mojo
04:51 upasana joined #mojo
04:51 hernan604 joined #mojo
04:51 abracadaniel joined #mojo
04:51 oetiker joined #mojo
04:51 sri joined #mojo
04:51 shadowpaste joined #mojo
04:51 memowe joined #mojo
04:51 doby joined #mojo
04:51 Rallias joined #mojo
04:52 stephan48 joined #mojo
04:52 mst joined #mojo
04:52 bjoernfan joined #mojo
04:52 moritz joined #mojo
04:52 dotan joined #mojo
04:52 wingfold joined #mojo
04:52 throughnothing joined #mojo
04:52 mishantil joined #mojo
04:52 bpmedley_ joined #mojo
04:52 claudio joined #mojo
04:52 tomboh joined #mojo
04:52 Grinnz_ joined #mojo
04:52 geheimnis` joined #mojo
04:52 Grinnz joined #mojo
04:52 stryx` joined #mojo
04:52 nicomen joined #mojo
04:52 ssm joined #mojo
04:52 davido_ joined #mojo
04:53 basic6 joined #mojo
04:53 bobkare joined #mojo
04:53 upasana_ joined #mojo
04:53 jbob joined #mojo
04:53 diginet_ joined #mojo
04:53 Jonis joined #mojo
04:53 lestrrat joined #mojo
04:53 inokenty-w joined #mojo
04:53 jberger joined #mojo
04:54 espen joined #mojo
04:55 mishanti1 joined #mojo
04:56 garu_ joined #mojo
04:56 bd joined #mojo
04:57 marcus sri: Sorry, this old man had already gone to bed. But I'm ready today.
05:48 sri marcus: !
05:48 Snelius komodo edit 9 is released !
06:16 bpmedley joined #mojo
06:29 bramirez joined #mojo
06:42 dod joined #mojo
06:48 dod joined #mojo
07:09 absolut_todd joined #mojo
07:09 bramirez joined #mojo
07:17 AndrewIsh joined #mojo
07:27 trone joined #mojo
07:34 batman Zoffix, sri: ok. thanks. then i won't spend any time on that :)
07:34 batman sri: why can't data urls be cached? i thought the whole css file was cached, regardless of what is inside.
07:35 batman sri: i want to clean up the Handler API before i remove EXPERIMENTAL. i'll let you know :)
07:43 Vandal joined #mojo
07:45 Lee https://github.com/kristiannissen/CGIRouter # facepalm
07:54 Snelius why not ?:)
07:54 marcus why not zoidberg?
07:54 purl (V) (;,,;) (V)
07:56 Snelius lol )
07:57 Lee because you get to keep both pieces: https://stackoverflow.com/questions/29831919/perl-cgi-on-iis-form-post-returns-404
07:57 Lee :)
07:57 Snelius hah)
07:59 irq joined #mojo
08:05 gatitskiy joined #mojo
08:10 absolut_todd joined #mojo
08:12 marcus iis is more of a cruel joke than a web server.
08:17 Snelius :)
08:40 irq_ joined #mojo
08:40 batman https://github.com/kristiannissen/CGIRouter/blob/master/tests/tests.pl # die ETOOMUCHBOILERPLATE;
08:57 bd don't you just love commit messages? summary: stuff
09:00 batman bd: :D
09:01 Lee bd: http://www.commitlogsfromlastnight.com/
09:02 bd Lee: that. is. awesome.
10:28 mattastrophe joined #mojo
10:48 neilhwatson joined #mojo
10:54 juikuen joined #mojo
10:55 absolut_todd joined #mojo
11:46 jberger "fuck this thing and fuck it again"
11:47 jberger awesome
11:55 batman is it possible to disable commands from a mojo script? like if i don't want to show "cgi       Start application with CGI" in the output
11:56 ToApolytoXaos joined #mojo
11:56 jberger batman: not easily
11:57 batman good. thought i had missed out on something :)
11:57 batman *hoped (?)
11:57 batman not sure what i was planning to write in that sentence... hehe
11:57 jberger actually, it's very easy, assuming you want to hide all of the default commands
11:58 jberger but that's not what you mean
11:59 batman remove the default command namespace?
11:59 jberger yeah
11:59 batman hm... maybe that is what i want...
12:00 batman i wonder if the "Tip:" in the default help message is helpful...
12:01 batman i'm redefining what toadfarm is
12:01 batman i think i'm spending way too much time on this, hehe
12:11 ajr_ joined #mojo
12:15 marcus is toadfarm now a farm for toads?
12:18 mattastrophe joined #mojo
12:18 bramirez joined #mojo
12:19 asarch joined #mojo
12:28 batman marcus: i think it has grown beyond that
12:28 batman "Add commands so toadfarm scripts can act as init scripts"
12:28 marcus omg, you're reimplemeting systemd. kill it with fire!
12:28 marcus :)
12:29 batman it's good old init.d style actually :)
12:39 batman marcus: https://github.com/jhthorsen/toadfarm/blob/master/lib/Toadfarm/Starter.pm#L15
12:43 batman got any input?
13:02 mattastrophe joined #mojo
13:03 marcus batman: looks pretty good.
13:04 batman \o/
13:04 batman how can i make it better?
13:04 marcus let it work for PSGI apps
13:06 batman so you want Toadfarm to also plackup (?) in addition to hypnotoad?
13:06 batman *aslo support
13:08 batman i actually have no idea how to do that. but if you tell me how it should work, i'll implement it. not details, just tell me how the DSL should look and an example psgi command
13:08 marcus I'm not sure it makes sense
13:08 batman i can't wrap my head around it :/
13:09 marcus The Hitch Hiker's Guide to the Galaxy also mentions alcohol. It says that the best drink in existence is the Pan Galactic Gargle Blaster.
13:09 marcus It says that the effect of drinking a Pan Galactic Gargle Blaster is like having your brains smashed out by a slice of lemon wrapped around a large gold brick.
13:10 batman is it related to psgi? :)
13:10 marcus I was just reminded of it by your comment about wrapping your head around it
13:11 marcus Actually, forget my idea, it was a bad one.
13:11 marcus have a drink instead
13:11 batman i will pass. still hung over :/
13:25 marcus :-o
13:40 gryphon joined #mojo
13:47 niczero joined #mojo
13:53 jberger batman: still?!
13:54 jberger marcus++ # correct quote
14:09 batman jberger: yeah. i've already said too much.
14:11 jberger :o
14:13 batman :)
14:14 batman i wonder how other people start their hypnotoad apps
14:29 wingfold joined #mojo
14:35 cpan_mojo Mojolicious-Plugin-XRD-0.14 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-XRD-0.14
14:35 cpan_mojo Mojolicious-Plugin-PubSubHubbub-0.14 by AKRON https://metacpan.org/release/AKRON/Mojolicious-Plugin-PubSubHubbub-0.14
14:55 jberger batman: for $work I just rolled a little rc.conf style script (I'm not sure what that is called, FreeBSD's mechanism)
14:56 absolut_todd joined #mojo
15:04 Lee same here, something in rc.local and a script to do hot deploys
15:26 dotandimet joined #mojo
15:27 absolut_todd joined #mojo
16:00 irq joined #mojo
16:10 mattastrophe joined #mojo
16:12 mattastrophe joined #mojo
16:13 batman ok. would the dsl i posted earlier be of interest?
16:14 batman do you think it adds anything to what you have now Lee / jberger?
16:16 amon joined #mojo
16:16 Grinnz_ batman: for our hypnotoad app i made a init script as well... it runs a custom hypnotoad script which is mostly the same as the built-in one, i could probably just use the built in one now...
16:17 batman ok.
16:17 Grinnz_ it's the standard pre-systemd "service hypnotoad start/stop/reload" type
16:18 Zoffix batman, just a side note: in the comment you posted to me on GitHub, you're including ' /js/materialize/jquery.hammer.js' three times . Thought I'd mention that if it's real code...
16:19 Zoffix Or rather one  /js/materialize/hammer.min.js and two  /js/materialize/jquery.hammer.js
16:19 batman Zoffix: haha! awesome :P
16:19 batman it's not code in production, but still...
16:20 batman fixed it now
16:22 mst Zoffix: and you have to minify it, because otherwise it's a very big hammer?
16:23 Zoffix :)
16:24 mattastrophe joined #mojo
16:29 mattastrophe joined #mojo
16:29 mattastrophe left #mojo
16:32 neilhwatson joined #mojo
16:35 marcus HAMMER TIME?
16:35 sri !
16:36 marcus sri: game on?
16:36 sri !
16:37 batman Zoffix: is this a valid thing to write? https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/50#issuecomment-95987155
16:37 sri marcus: you still a hunter? :)
16:37 marcus I have all the decks, but I'll vary
16:38 sri oh
16:39 Zoffix batman, the 'Patches Welcome' approach? :) It's always valid! :)
16:40 batman good.
16:40 batman didn't want to seem rude.
16:40 * batman tries to be a better person from time to time :)
16:40 Zoffix :)
16:44 sri marcus: i have a zoo deck too ;p
16:45 marcus sri: once more?
16:45 sri of course
16:45 marcus I'll do my mage deck
16:45 sri haha
16:45 marcus it's a little mech heavy =]
16:45 sri i mostly play mage, got 3 decks
16:47 Oleg joined #mojo
16:52 odin22 joined #mojo
16:53 marcus I deserve to lose this one. what a fuckup
16:57 marcus gg :)
16:57 sri gg
16:58 sri that one card is a liiiiittle overpowered though
16:58 marcus sylvan windrunner?
16:58 Grinnz_ batman: "patches welcome" stated bluntly could be rude, but the way you presented it is not at all.
16:58 sri nope, the grim patron
16:58 marcus oh, yeah
16:58 marcus that one is evil :)
16:59 batman Grinnz_: cool.
16:59 marcus I haven't seen it before actually
16:59 marcus I bet they will nerf it
16:59 sri dunno, it allows for cheap warrior decks
17:02 dotandimet joined #mojo
17:04 jberger batman: the dsl does look nice
17:04 jberger would it work on freebsd?
17:04 jberger also, how does toadfarm interact with nginx?
17:05 jberger I use nginx for ssl
17:05 batman jberger: it's just a wrapper between hypnotoad
17:05 batman *around
17:05 batman it's like writing your own application with Mojolicious::Plugin::Mount, but it takes care of the boring parts
17:06 batman jberger: not sure what freebsd uses for init, but it would work for anything that can takes a script and start/stop a process with "script start" and "script stop" :)
17:09 Zoffix "<batman> i wonder how other people start their hypnotoad apps"  I just ssh to my server, pull changes, and then type 'hypnotoad MyApp.pl' to hotdeploy
17:09 Zoffix works for far.
17:09 batman Zoffix: how about on boot?
17:09 Zoffix Oh. I've not thought of that :P
17:09 batman hehe
17:10 jberger worse than boot, unexpected reboot
17:10 batman what's the difference?
17:10 jberger you aren't expecting the latter
17:11 jberger you aren't watching
17:11 Grinnz_ rather than an intentional restart, where you can run hypnotoad after
17:11 Zoffix Yeah, it actually happened with linode not too long ago.
17:11 batman hm... right. i never trust myself to remember all these things, even if i manually boot a server
17:11 jberger linode at least sends an email that it happened, which is nice
17:11 Zoffix I did get an email that they were doing an emergency reboot at X o'clock, but I get so much email I could've easily missed it
17:11 batman also, have anyone experienced that the hypnotoad manager suddenly stops? i was wondering if i need a cronjob-like watcher to see if the process was still alive
17:12 batman i does sound very, very, very unlikely, but... :/
17:12 batman Zoffix: you might want to try out the new toadfarm then :)
17:12 batman i will release one later today
17:12 Zoffix k
17:13 Grinnz_ http://ur1.ca/k8lhs
17:13 Grinnz_ that's the usual init script setup i use on centos 6
17:14 gatitski_ joined #mojo
17:15 jberger batman: freebsd has this: https://www.freebsd.org/cgi/man.cgi?query=daemon&amp;sektion=8
17:15 Grinnz_ lol, i forgot to change the description on that one though
17:15 jberger which I was using on my minion setup before the new multiple jobs worker thingy
17:16 sri marcus: phew, that was tough
17:16 mst jberger: right, and then you end up needing other OSes and Daemon::Control becomes obviously superior
17:16 marcus sri: Yeah, long game.
17:18 jberger mst: as we have discussed before, I'm REALLY not a deployment person :-)
17:18 batman jberger: that doesn't say much about the "init" infrastructure..?
17:19 jberger batman: mst was right, the word is supervisor and there are almost certainly more portable ways of doing it, like the module he mentioned
17:19 batman jberger: if hypnotoad works on bsd, then toadfarm works as well.
17:19 lluad joined #mojo
17:20 mst Daemon::Control generates you a start/stop style script
17:20 jberger batman: my comment was in relation to "also, have anyone experienced that the hypnotoad manager suddenly stops? i was wondering if i need a cronjob-like watcher to see if the process was still alive"
17:20 mst yeah, if you're wanting to look for the manager disappearing
17:20 batman aha
17:20 mst then I would recommend runit or s6
17:21 Grinnz_ or if you're using systemd, that's one thing it does automatically :P
17:21 Zoffix Grinnz_, you're the author of cah cards thing?
17:21 Grinnz_ uhmm
17:22 Grinnz_ i'm the author of https://github.com/Grinnz/cah-cards
17:22 Grinnz_ and i know the guy that runs PYX that gave me that card dump
17:23 berov joined #mojo
17:30 sri marcus: i love freeze mage, but it's always a thin line :)
17:31 marcus sri: what an annoying deck :)
17:31 marcus sri: I got my flare one pull too late
17:31 sri yea
17:34 dod joined #mojo
17:43 trone joined #mojo
17:44 Guest63 joined #mojo
17:45 mattastrophe joined #mojo
17:46 mattastrophe joined #mojo
17:47 mattastrophe joined #mojo
18:04 disputin joined #mojo
18:19 absolut_todd joined #mojo
18:20 mattastrophe joined #mojo
18:27 absolut_todd joined #mojo
18:37 dod joined #mojo
18:51 KindOne joined #mojo
18:52 mattastrophe joined #mojo
19:42 absolut_todd joined #mojo
20:01 mattastrophe joined #mojo
20:13 wariat joined #mojo
20:29 absolut_todd joined #mojo
20:36 Bender joined #mojo
20:43 batman jberger, Zoffix, Grinnz_: https://metacpan.org/pod/Toadfarm and https://metacpan.org/pod/release/JHTHORSEN/Toadfarm-0.51/lib/Toadfarm/Manual/RunningToadfarm.pod#Init
20:44 Grinnz_ batman: nice.
20:44 batman thanks
20:45 jberger -dsl isn't very descriptive
20:45 jberger but other than that
20:45 jberger nice
20:45 batman jberger: i agree. not sure what to name it :/
20:45 batman i didn't want to export the functions by default
20:46 Grinnz_ yeah... i'm not sure if there is a name for that kind of script
20:46 Grinnz_ other than "init script" which doesn't cover your use cases
20:46 jberger -init
20:46 batman jberger: ok. it's settled unless someone else comes up with a better alternative :)
20:46 jberger I think dancer calls that -syntax
20:46 Grinnz_ then again, init scripts aren't only used for init either :)
20:46 batman Grinnz_: hehe
20:47 batman jberger: then i'm not using -syntax ;)
20:47 batman hehe
20:47 jberger Toadfarm::Lite
20:47 Grinnz_ hah
20:47 punter joined #mojo
20:48 batman jberger: yeah. it was called Toadfarm::Starter earlier
20:49 Grinnz_ systemd calls them "service units" or something, not much help either
20:49 Grinnz_ i think init is as good as any name
20:50 batman use Toadfarm -init; # what it means is "export the sugar"
20:50 batman doesn't have anything to do with the type of script
20:50 Grinnz_ ahh i dunno then :P
20:51 batman https://github.com/jhthorsen/toadfarm/commit/234662f3c24053a8b2befcae45bb4aa155b5e49d :)
20:58 melo joined #mojo
21:17 kwa joined #mojo
21:19 wariat hello! Can anyone please explein me why my $t = encode_json( $c->req->json ); gives me [error] Undefined subroutine &main::encode_json ? I've added use Mojo:JSON; why it's still undefined?
21:20 Grinnz_ wariat: it is not exported by default, try: use Mojo::JSON 'encode_json';
21:22 wariat Grinnz, ROFL on me … ok have to learn much more :D TY
21:34 mattastrophe joined #mojo
21:55 riche joined #mojo
21:58 riche Everyone: would be great for you to speak with your $work and/or clients about sponsorship @ Mojoconf 2015: https://www.mojoconf.com/2015/sponsoring
21:58 riche individual sponsorships are also available!
22:06 mattastrophe joined #mojo
22:17 jberger only because this just bit me, can I ask for a refresher on when you would ever want render_to_string to return undef silently?
22:18 jberger or maybe the better question is when would you want "include" to render nothing silently
22:18 jberger https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Controller.pm#L175
22:18 jberger I fat fingered an include today and lost quite a bit of time trying to track it down
22:18 jberger because what was being included was not very obvious
22:18 Grinnz_ yeah i would expect a missing include to yell loudly
22:19 jberger render_to_string maybe not
22:19 jberger but include could be sub { render_to_string || die }
22:19 jberger maybe, I haven't really thought it all through I suppose
22:30 berov joined #mojo
22:31 sri jberger: doesn't matter, breaking change, can't happen
22:31 vmbrasseur joined #mojo
22:31 sri every other week someone asks for the "maybe" variant of render_to_string
22:32 sri so, it is being used
22:32 sri you could put it on the 7.0 wishlist
22:32 sri but that's 2016
22:34 * sri has a feeling the 7.x dev cycle will be quite a bit longer than usual though
22:34 sri we are already a month behind the 6.x cycle
22:34 mattastrophe joined #mojo
22:34 jberger it's been rather slow lately indeed
22:34 vmb joined #mojo
22:35 Grinnz_ i guess that means mojo is done! :D
22:35 Grinnz_ > software > done
22:36 jberger let's release Mojolicious 2pi and call it closed
22:37 sri is really nobody else here playing hearthstone? Oo
22:37 sri back in the days half of #catalyst was playing world of warcraft :)
22:37 jberger TeX is asymptotically approaching e and metafont is asymptotically approaching pi
22:37 Grinnz_ some of my friends played it but nope
22:38 Grinnz_ WoW... i didnt touch that one :P
22:38 * jberger hasnt gamed much since civ 3
22:38 Grinnz_ well, i touched it for about as long as it took to get a mission skinning wolves
22:39 sri http://i0.kym-cdn.com/photos/images/original/000/913/898/d78.jpg
22:39 Grinnz_ hahah
22:39 jberger anyone up for a rousing game of starcraft
22:39 jberger hahaha
22:39 jberger haven't tried 5 yet
22:39 Grinnz_ i played civ V a bunch, you can waste away days straight in that game
22:40 Grinnz_ when i played it there were issues with memory usage or something, the big maps all crashed
22:40 Grinnz_ i think thats fixed now though
22:41 Grinnz_ i'm kind of sad starcraft ghost never came out
22:41 Grinnz_ i loooove the starcraft storyline, but i dont like RTS that much
22:41 Grinnz_ a FPS, that i could get behind
22:42 * sri played startcraft 2 a bit
22:42 sri s/t//
22:43 sri actually, i think i played all blizzard games :)
22:43 Grinnz_ ive played the crap out of diablo 2 and a decent amount of 3
22:43 Grinnz_ its much nicer now without the auction house and with better loot distribution
22:43 sri 3 was a bit of a disappointment
22:43 sri ah, have not tried the new expansion
22:44 Grinnz_ the skill "selections" are still not as interesting as the D2 skill trees imo, but it does add an element of flexibility i guess
22:50 mattastrophe joined #mojo
22:53 * Grinnz_ needs to remember to look into that user/group setting thing in apache and nginx this weekend
23:04 memowe joined #mojo
23:40 absolut_todd joined #mojo

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