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

IRC log for #mojo, 2015-01-17

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

All times shown according to UTC.

Time Nick Message
00:05 Grinnz_ o_0
00:15 akhasanov joined #mojo
00:18 * genio pushes purl down the stairs
00:18 * purl dodges and laughs as genio loses balance and crashes down the stairs.
00:19 genio grrr.  bounce happily you damn bot
00:26 sugar joined #mojo
01:01 * jberger pushes purl down a well
01:03 jberger aha
01:03 * jberger throws purl down a well
01:03 purl seven days
01:14 good_news_everyon joined #mojo
01:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/FhSDog
01:14 good_news_everyon mojo/master 4c7ce08 Sebastian Riedel: give beginners a little more time to get to know the stash
01:14 good_news_everyon left #mojo
01:15 * sri just stumbled over this http://blogs.perl.org/users/eskaaren/2015/01/mojolicious-and-special-variable-names.html
01:16 * sri notes that he does not appreciate blog posts with criticism that hasn't been brought up here (or any of our other support channels) first
01:17 sri (in general...this one seems just clumsy)
01:18 Grinnz strange... i guess some people's default method of communication is to blog
01:19 * sri hopes this sentence introduces reserved stash values gently enough https://github.com/kraih/mojo/commit/4c7ce08b0f445a5587a395f7dc94d57ff5740cc3#diff-e6315209d70edce7210fba0dd37b78d6R192
01:20 Grinnz definitely something that needs to be mentioned there IMO
01:20 jberger I saw it but didn't respond since the answer was already there
01:20 jberger I didn't want to give it credibility
01:21 jberger sri: are there still examples that don't use the template keyword?
01:22 sri not in the tutorial
01:22 sri it's introduced later in the rendering guide properly
01:22 Grinnz one of the first things i did was try to put the word "status" in the stash, so the earlier the better :P
01:23 jberger that sounds fine
01:23 Grinnz (mentioning reserved values that is)
01:24 Grinnz maybe even add a FAQ for it?
01:24 Grinnz not sure what the question would be though :P
01:25 sri i guess it might be worth specifically mentioning all reserved values used in the tutorial
01:25 sri which should be text, template, data, json and status
01:26 sri and which covers the dangerous ones
01:26 sri and format
01:28 sri or maybe too much too early
01:28 * sri shrugs
01:28 sri lets see how this goes
01:36 bobkare joined #mojo
02:13 disputin joined #mojo
02:13 disputin1 joined #mojo
02:17 disputin joined #mojo
02:17 disputin1 joined #mojo
02:29 klapperl_ joined #mojo
03:13 good_news_everyon joined #mojo
03:13 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/IW2vrA
03:13 good_news_everyon mojo/master 1e8bc13 Sebastian Riedel: more stash examples
03:13 good_news_everyon left #mojo
03:16 good_news_everyon joined #mojo
03:16 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/7AEtAg
03:16 good_news_everyon mojo/master 2976bac Sebastian Riedel: only use simple stash examples
03:16 good_news_everyon left #mojo
03:17 disputin joined #mojo
03:20 good_news_everyon joined #mojo
03:20 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/lyZ_jQ
03:20 good_news_everyon mojo/master 6b853af Sebastian Riedel: show how to assign multiple values at once
03:20 good_news_everyon left #mojo
03:23 noganex joined #mojo
03:38 akhasanov joined #mojo
04:20 good_news_everyon joined #mojo
04:20 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/ZNtyZQ
04:20 good_news_everyon mojo/master f82d416 Sebastian Riedel: test generator commands
04:20 good_news_everyon left #mojo
04:56 good_news_everyon joined #mojo
04:56 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/UQhY8Q
04:56 good_news_everyon mojo/master 959c02e Sebastian Riedel: test command lists
04:56 good_news_everyon left #mojo
04:58 Grinnz #testpocalypse
05:16 sri strange thing is the coverage just went down 2% Oo
05:16 sri and now back up to 91.5%
05:32 disputin joined #mojo
05:35 disputin joined #mojo
06:25 ilbot2 joined #mojo
06:25 Topic for #mojo is now ???? hear me roar | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
06:26 charsbar joined #mojo
06:26 bayashi joined #mojo
06:36 go|dfish joined #mojo
06:37 xevz joined #mojo
06:59 rem_lex joined #mojo
07:59 mattp joined #mojo
08:01 nicomen1 joined #mojo
08:02 Kharec joined #mojo
08:03 dotandimet joined #mojo
08:12 Vandal joined #mojo
08:15 irq joined #mojo
08:18 reneeb joined #mojo
08:32 dotandimet joined #mojo
08:38 reneeb joined #mojo
09:11 rem_lex joined #mojo
09:27 dotandimet joined #mojo
09:49 denis_boyun joined #mojo
10:24 ryozi joined #mojo
10:41 moritz joined #mojo
10:47 ilbot2 joined #mojo
10:47 Topic for #mojo is now ???? hear me roar | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
10:47 denis_boyun joined #mojo
10:56 dod joined #mojo
11:01 dod joined #mojo
11:07 dotandimet joined #mojo
11:21 basiliscos joined #mojo
12:50 dotandimet joined #mojo
13:21 disputin joined #mojo
13:37 sh4 joined #mojo
13:46 disputin joined #mojo
13:48 disputin joined #mojo
14:03 asarch joined #mojo
14:05 disputin joined #mojo
14:15 disputin joined #mojo
14:22 basiliscos joined #mojo
14:27 akhasanov joined #mojo
14:31 jberger on my android phone using convos the first one is completely unreadable
14:32 hahainternet oh neat, convos reminds me of one my friend wrote a while ago
14:37 jberger <3 convos
14:38 hahainternet <3 irssi :p
14:48 disputin joined #mojo
15:05 cpan_mojo AnyEvent-WebSocket-Client 0.29 by PLICEASE - http://metacpan.org/release/PLICEASE/AnyEvent-WebSocket-Client-0.29 (depends on Mojolicious)
15:21 amon joined #mojo
15:40 jberger strange, AnyEvent::WebSocket::Client doesn't seem to depend on Mojolicious
15:43 jberger ah interesting
15:43 jberger {"phase":"test","version":"3.0","relationship":"recommends","version_numified":3,"module":"Mojolicious"}
15:44 jberger so the bot should possibly be smarter, but then again it kinda interesting to see that Mojolicious can be used for websocket testing
15:44 jberger even in a non-mojo project
15:52 Nemix I am lost right now but let me give my latest thinking...I am using jquery mobile at it by default uses ajax to return pages that are referenced.  I know I can override that but it is the behavior I think I want.  On the mojo side, what is way to return an .ep template with ajax?  Yes, I may be offbase on a couple levels but trying to work through this
15:52 irq joined #mojo
15:53 batman Nemix: there's nothing different between ajax and a regular browser request
15:53 batman do you mean, that you just want to return the page, without the layout.?
15:54 Nemix so from the server side I just render like any other http request and the client side (using ajax) just deals with it?
15:54 jberger Nemix: yep
15:54 Nemix ok...thanks
15:54 batman Nemix: most probably.
15:54 Nemix ok
15:54 batman do you use a layout?
15:55 sh4 joined #mojo
15:56 Nemix batman:  I must admit I am hacking things together with very limited knowledge of the technology...need to verify whether I am or not...I have a bunch of div tags :)
15:57 batman % layout "default";
15:57 batman or $c->render("my_page", layout => "default");
15:57 Nemix I am not using layouts
15:58 batman ok.
15:58 sri even pjax is generally as easy as % layout 'default' unless $c->req->is_xhr;
15:58 batman Nemix: if you want to know more about layouts, you can look here: https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Rendering.pod#Layouts
15:58 Nemix thanks..will do
16:00 batman does anyone know if there's a max size for an evironment variable in the operating system?
16:00 jberger sri: oh that's a handy trick
16:00 batman not accurate, just curious if it's megabytes or bytes...
16:01 jberger batman: mojo has some size caps which can be set by env vars, but I don't know that the operating system has any
16:02 batman i mean, can i do $ENV{WHATEVER} = "x" x 100000000000; and then read $WHATEVER in sub process?
16:02 jberger oh I see, I have no idea
16:03 jberger you might try mmap
16:03 jberger seems a more sane way to do that
16:03 batman i guess i could google it, but i'm not sure how windows works at all :P
16:03 jberger mmap work on windows
16:03 batman ok
16:03 hahainternet batman: what's the ultimate goal here?
16:04 hahainternet i mean there's lots of mechanisms to share data between processes and threads
16:04 batman i'm using an environment variable to tell a node application which files to skip, and it gets pretty big. like
16:04 batman like "file/x:file/y:..."
16:04 hahainternet oh christ
16:04 hahainternet can't pipe it in i guess?
16:04 jberger batman: https://metacpan.org/pod/File::Map
16:05 batman nah. i'm piping other data in.
16:05 hahainternet batman: you can have many filehandles open
16:05 hahainternet pipes don't have to go to STDIN
16:05 batman i'll just try it out i think... it's not a _that_ big :)
16:05 hahainternet i know next to nothing about node anyhow
16:05 batman neither do i, haha
16:05 jberger oh its not to another perl process? I guess mmap should still work, but env var might be easier
16:05 ribasushi batman: winxp/2003 - 32k for the entire envvar set
16:05 hahainternet what does the node app do?
16:06 ribasushi batman: vista/2008 - unlimited-ish
16:06 batman ribasushi: thanks
16:06 batman hahainternet: it compiles code into javascript.
16:07 hahainternet batman: oh god sounds awful
16:07 hahainternet i feel for you
16:07 hahainternet thought you used emscripten for that, but i'm ignorant as hell
16:07 hahainternet the whole frontend world is nasty
16:07 batman hahainternet: it's actually awesome :)
16:08 hahainternet batman: i'll take your word for that
16:08 batman :)
16:10 hahainternet probably more fun than what i'm doing, searching for motherboards
16:10 hahainternet which is booooooooring
16:10 batman yeah. finding hardware sucks.
16:10 batman i used to know my way around, but now i don't know (almost) anything about hardware :(
16:11 hahainternet seems i'm that way too
16:12 berov joined #mojo
16:14 batman the best part of the code i'm writing now is that i'm writing the word "transformers" a lot ;)
16:15 hahainternet hard thing to abbreviate too
16:15 batman don't care much about abbreviations. that's why editors have autocomplete :)
16:34 * sri still wonders which MOJO_USERAGENT_DEBUG variant is better https://gist.github.com/anonymous/a930a1ad83bb41fb827b or https://gist.github.com/anonymous/736324e134b315fdca01
16:34 sri first is the current version, second is Mojo::Util::dumper
16:36 sri second has the advantage that binary data gets escaped and causes no problems
16:36 jberger I can understand that, but it makes it less readable for the common cases
16:37 jberger MOJO_USERAGENT_DEBUG=2 ? :-P
16:37 sri is gzip not the common case?
16:38 jberger the escaped line ending is really off putting
16:40 sri another example https://gist.github.com/anonymous/070181b27f3439ae26e1 vs. https://gist.github.com/anonymous/d24594830e71808dfe62
16:40 sri that's just the reddit frontpage
16:41 noganex_ joined #mojo
16:41 sri and yes, the original makes your terminal do weird shit
16:41 jberger well, that's bad too :-/
16:42 mst maybe we need an "encode control characters but leave everything else alone" type routine
16:43 jberger sri: can you get much information from the gzip encoded response? perhaps the get command should default to not having the accept header
16:45 sri i've specifically not used the get command
16:45 jberger oh true
16:45 sri also note that MOJO_DAEMON_DEBUG=1 is affected too
16:45 sri so if you're serving an image, same thing
16:45 jberger right, I suppose it would be too
16:46 jberger a possible solution is to pipe into a file or pager or something
16:46 jberger (I'm not sure about the pager)
16:47 sri no that's not a soluton
16:47 jberger come to think about it, I'm not sure about the file either once you would read it :/
16:47 jberger mst: is there such an escape function possible?
16:47 sri also WebSocket frames btw.
16:47 sri they result in garbage too
16:48 sri (i've fixed MOJO_WEBSOCKET_DEBUG=1 with Mojo::Util::dumper, and it's pretty nice now)
16:49 dod joined #mojo
16:50 jberger sri: that seems sane certainly
16:50 sri doesn't help MOJO_USERAGENT_DEBUG and MOJO_DAEMON_DEBUG at all though, since those just print the raw data that goes over the wire
16:53 reneeb joined #mojo
16:54 mst it seems to me that converting control characters into things like ^M might work?
16:55 mst I mean, the idea here is "don't fuck up the terminal, but preserve newlines and similar"
16:55 sri hahaha, this is Mojo::Util::dumper with \n converted back https://gist.github.com/anonymous/d457f524d6bc90512d09
16:56 mst that's really not that awful
16:56 ribasushi mst: or take this and season to taste: https://metacpan.org/source/RURBAN/Devel-PeekPoke-0.04/lib/Devel/PeekPoke.pm#L182
16:57 jberger sri: that doesn't look bad
16:57 batman +1
16:57 purl 1
16:57 jberger then again, I found the match for control chars
16:57 jberger \p{XPosixCntrl}
16:57 jberger s/\p{XPosixCntrl}/whatever/
16:58 rem_lex joined #mojo
17:00 sri anyone got a clever regex for handling \\n and \\\n?
17:03 sri in case anyone wants to play with other solutions, this was the proof of concept https://gist.github.com/anonymous/3f2310d7743c9f531596
17:05 cfedde https://www.youtube.com/watch?v=y0yjATpkDxM#t=41
17:08 jberger is it as simple as sub terminal_escape { $_[0] =~ s/(\p{XPosixCntrl})/\\$1/r }
17:08 jberger ?
17:08 batman has anyone seen this var {} construct in javascript? https://github.com/callemall/material-ui/blob/master/src/js/paper.jsx#L24
17:09 batman i don't get it :(
17:15 sri jberger: have you tried it?
17:15 purl You know, the workins of pants lend themselves to empirical research.
17:15 jberger no I haven't
17:16 dotandimet joined #mojo
17:16 jberger do you know a control character that is easy to notice that won't wreck my terminal
17:16 jberger ?
17:18 jberger aha \cG is bell
17:18 sri if no better solution is found i think i'll go with just using dumper(), that will at least force the issue
17:19 jberger sri: give me a couple minutes
17:19 sri NOOOO :)
17:20 jberger :-P
17:20 sri btw. you can't use s///r
17:23 pink_mist 0_o why not?
17:23 disputin joined #mojo
17:23 sri we have to support perl 5.10.1 :(
17:24 pink_mist ...oh
17:24 pink_mist :/
17:24 ioann joined #mojo
17:32 jberger http://pastie.org/9837084
17:32 jberger it uses s///r but the conversion is easy
17:37 sri jberger: have you actually tried it with real data?
17:39 jberger not yet
17:39 jberger you say that reddit gives trouble? I'll try that
17:39 sri https://gist.github.com/anonymous/85db7eb7518cada131b9
17:40 sri i'd say total failure
17:40 sri the patch i used https://gist.github.com/anonymous/328fa943206b0565d505
17:41 jberger drat, that character class seems too broad
17:44 jberger without unicode property junctions is there a good way to say a character that matches this regex but not that one
17:44 zackiv31 joined #mojo
17:45 pink_mist [\x{00}-\x{09}\x{0B}\x{0C}\x{0E}-\x{1F}\x{7F}] perhaps?
17:46 ioann is it possible to use Mojo for authorize and parse vk.com via my login+password? userAgent or cookies ... please give some sagestions
17:46 ioann what is the simplest way&
17:48 jberger ioann: can it just submit the login form?
17:49 jberger sri: http://pastie.org/9837103
17:49 jberger not that I love that
17:50 sugar joined #mojo
17:54 jberger well that one works due to globals :-/
17:55 jberger http://pastie.org/9837116
18:06 jberger sri: that looks a lot nicer on 5.20: http://pastie.org/9837133
18:10 jberger it seems I might even have one more set of ( ) in that last one than necessary
18:12 jberger oh and regex_sets is only 5.18
18:14 rem_lex joined #mojo
18:18 jberger http://pastie.org/9837149
18:33 sri seriously, there is no point proposing 5.18 only stuff
18:35 sri here's one that actually works
18:36 sri $str =~ s!(\p{XPosixCntrl})!$1 eq "\n" ? $1 : sprintf('\\x%02x', ord($1))!ge;
18:37 sri https://gist.github.com/anonymous/d99e0372328147f20daa
18:38 tempire <3 mojo
18:39 hahainternet have to say, that's a very nice regex all things considered
18:40 sri since jberger has not elaborated on why he doesn't use [:cntrl:] i assume that's a valid choice too
18:40 sri $str =~ s!([[:cntrl:]])!$1 eq "\n" ? $1 : sprintf('\\x%02x', ord($1))!ge;
18:48 jberger sri: probably just fine
18:48 jberger I tend to use the p classes generally these days
18:51 jberger and I was only showing the 5.18 style to show that what new features are like
18:53 mst sri: that looks like what I was vaguely imagining earlier
18:53 mst sri++
19:01 punter joined #mojo
19:13 vmvm joined #mojo
19:15 * sri waits for the github bot
19:16 Grinnz at least it's not freenode, it takes me minutes to connect there sometimes
19:16 vmvm_ joined #mojo
19:16 sri oh well... https://github.com/kraih/mojo/commit/8aa3f8a51d9c94a3f042a623b316472375aec638
19:16 sri ideas for improvements would be very welcome
19:16 Grinnz nice
19:16 sri i'm also not sure how portable the tests are
19:18 sri i've also left MOJO_WEBSOCKET_DEBUG with Mojo::Util::dumper
19:18 Grinnz $str =~ s/([[:cntrl:]])/$1
19:18 Grinnz am i missing something or is that missing the ending delimiter
19:19 sri the whole websocket frames will pass through MOJO_USERAGENT_DEBUG in binary form anyway, so you get more information with data in different forms
19:19 Grinnz oh, the whole line is the thing
19:19 Grinnz haha
19:24 good_news_everyon joined #mojo
19:24 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/VxSShQ
19:24 good_news_everyon mojo/master acf0baa Sebastian Riedel: more consistent regex formatting
19:24 good_news_everyon left #mojo
19:24 dotandimet joined #mojo
19:29 sri is [:cntrl:] always equal to [\x00-\x1F\x7F]?
19:31 sri if that's the case then this regex would of course be better
19:31 sri $str =~ s/([\x00-\x09\x0b-\x1f\x7f])/sprintf '\\x%02x', ord $1/ge;
19:31 mst I'm unsure as to why that's better?
19:32 sri faster
19:32 sri doesn't have to evaluate the right side as often
19:32 sri we mostly deal with HTTP traffic, so \x0a is seen *a lot*
19:33 mst ooo, I see
19:37 sri and to make it really pretty
19:37 sri $str =~ s/([\x00-\x09\x0b\x0c\x0e-\x1f\x7f])/sprintf '\\x%02x', ord $1/ge;
19:38 sri https://gist.github.com/anonymous/e8ac4927add35f46549f
19:38 sri of course the \x0d might be valuable for debugging
19:40 * sri shrugs
19:40 Grinnz those chinese symbols, lol
19:40 sri vs. currently https://gist.github.com/anonymous/d99e0372328147f20daa
19:41 * sri pokes marcus, batman, crab, tempire and jberger
19:51 good_news_everyon joined #mojo
19:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/qjDlAQ
19:51 good_news_everyon mojo/master 782728f Sebastian Riedel: use a more efficient regex
19:51 good_news_everyon left #mojo
20:00 sri jberger: re \p{XPosixCntrl}, i'm wondering what the difference to \p{Cntrl} is
20:00 sri does it include the unicode range U+0080—U+009F?
20:01 jberger you think I have any idea what I'm doing?
20:01 jberger you have a meme for that!
20:01 Grinnz lol
20:01 sri lol
20:02 jberger https://www.google.com/search?q=I+have+no+idea+what+I%27m+doing+meme&amp;safe=off&amp;es_sm=91&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ei=uL-6VIW_IYOcNoSXgPgG&amp;ved=0CAgQ_AUoAQ&amp;biw=1440&amp;bih=725#imgdii=_&amp;imgrc=GcbPXWzYjr81_M%253A%3Bt_fzGHJsx4jwCM%3Bhttp%253A%252F%252Fi2.kym-cdn.com%252Fphotos%252Fimages%252Foriginal%252F000%252F234%252F146%252Fbf8.jpg%3Bhttp%253A%252F%252Fknowyourmeme.com%252Fphotos%252F234146-i-have-no-idea-what-im-doing%3B363%3B480
20:02 sri purl: no, i have no idea what i'm doing is http://www.openbooktoronto.com/sites/default/files/obt/illustrations/I%20have%20no%20idea.jpg
20:02 purl i haven't a clue, sri
20:02 jberger balls, I hate google
20:02 sri proving the point! ;p
20:02 jberger http://i2.kym-cdn.com/photos/images/original/000/234/146/bf8.jpg
20:03 sri oh wait... we had this before... purl replaces "i" with "sri" -.-
20:03 Grinnz haha
20:03 jberger sri has no idea what sri's doing
20:03 Grinnz sri'm *
20:04 jberger sri has no idea what sri is doing
20:04 sri purl: sri have no idea what sri'm doing
20:04 purl bugger all, i dunno, sri
20:05 jberger sri has no idea what I'm doing
20:05 jberger thought I would try
20:05 sri purl: halp?
20:05 purl I CAN HAS SOMEBODY?
20:07 Grinnz what would be really helpful is something that takes a character class and outputs all the characters it matches (or all the ords, whatever)
20:09 pink_mist that's done in HOP
20:12 pink_mist (eh, not that that's a difficult thing to do really .... it's all the rest HOP does with it that makes it interesting :P)
20:13 pink_mist I need to get back to reading that
20:13 Grinnz well you can always bruteforce it, but is there a way to actually get perl to tell you it directly
20:13 jberger I know the answer to this, but I wonder if purl does
20:13 jberger HOP?
20:13 purl HOP is Higher-Order Perl, mjd's not-so-new book, which was published (note past tense) in March 2005 and available for download at http://perl.plover.com/hop/ or isbn:1558607013 or Hooked On Phonics or Hooked On Perl or House of Pancakes or harvester of paychecks or Hop On Pop or see also hoj for javascript or http://books.perl.org/book/230 or The Programmatic Programmer or not bad or on amb's list to read
20:13 Grinnz house of pancakes, brb
20:14 jberger mmmmmmm, yum
20:26 Grinnz perl -E 'my $re = qr/[:cntrl:]/; my $str = join "", map { chr } 0..hex "0x1f8ff"; my @matches = map { ord } $str =~ /$re/g; say join ",", @matches'
20:26 Grinnz easy enough :P
20:31 Grinnz hmm.. seems to be missing some though
20:31 Grinnz oh duh, [[:cntrl:]] *
20:34 Grinnz perl -E 'my $re = qr/[[:cntrl:]]/; my $str = join "", map { chr } 0..hex "0x1f8ff"; my @matches = map { sprintf "%x", ord } $str =~ /$re/g; say join ",", @matches'
20:34 Grinnz [:cntrl:] also seems to include \x80-\x9f
20:37 Grinnz and uh... a lot more on my perl 5.10.1
20:41 Grinnz that could just be it screwing up unicode, though
20:45 Grinnz \p{Cntrl} and \p{XPosixCntrl} appaer to be identical, though
20:45 Grinnz all of them include \x80-\x9f
20:55 sri i guess we should too then
20:56 marmez joined #mojo
21:02 Adura joined #mojo
21:17 sri Grinnz++
21:18 good_news_everyon joined #mojo
21:18 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/VG2nAg
21:18 good_news_everyon mojo/master 2cca3e5 Sebastian Riedel: support more control characters
21:18 good_news_everyon left #mojo
21:23 reneeb joined #mojo
21:38 dod joined #mojo
21:51 reneeb joined #mojo
21:53 sri there's still the open question of how to handle \r
22:01 sri oh
22:02 sri and we've completely ignored the question of what to encode to :)
22:02 sri \x00 is just one possibility
22:03 sri (i'm ok with how it works now, but it's worth thinking about)
22:04 mst the problem is encoding text would probably benefit from \r being left alone
22:04 mst but encoding binary probably doesn't
22:04 mst accurate debug log vs. readable debug log, as bloody usual
22:04 * sri nods
22:05 sri even with text it might help, servers sending borked headers
22:08 jberger initial porting of the talk is complete!
22:08 jberger http://jberger.github.io/MojoliciousIntroduction
22:08 jberger advance with spacebar to see the whole thing correctly
22:09 mst sri: I think I'd vote for "not specially yet, let's see if it's annoying enough that we care in practice"
22:09 sri jberger: ohoh, danger!
22:09 sri curl get.mojolicio.us | sh
22:09 sri not recommended anymore
22:09 jberger oh, yep, forgot to change that
22:09 sri mst: agree
22:12 sri seeing this makes me want to yell at perl again ;p "$self->stash(time => scalar localtime);"
22:14 sri i appreciate the memes and typography
22:16 jberger hmmm, that one liner overflows the code box :-/
22:18 jberger http://jberger.github.io/MojoliciousIntroduction/#/2/1
22:20 sri well, i did update get.mojolicio.us to that one-liner
22:20 sri so, it's not *that* bad
22:20 * sri wonders if he should put mojolicio.us behind cloudflare https
22:21 sri (not that it would help with subdomains... i think)
22:22 Adura mo.jo is unregistered, get your ass to Jordan!
22:23 jberger Adura++
22:26 jberger reveal is pretty cool
22:27 jberger I basically did a direct port of my old home-rolled app to it, but there are other things, like markdown and incremental slides
22:27 jberger also, hit "o"
22:29 jberger and "s"
22:30 sri you could just use keynote now ;p
22:36 jberger I COULD, but I'm a sucker for markup
22:37 * jberger mumbles "vendor lock-in" under his breath
22:40 basiliscos joined #mojo
22:41 disputin joined #mojo
22:48 jberger I wonder if I should put the homepage and the install one-liner at the end of the talk too
22:49 preaction yes
22:56 jberger done
22:56 jberger I kinda want a picture too
22:56 preaction marketing people call it a "Call to Action"
22:57 jberger I think I want a failraptor but without the text
22:58 jberger ohohoh
22:59 jberger sri: is the pirate cloud image somewhere public?
23:03 sri jberger: nope
23:03 jberger guess you gotta keep some things close to the vest
23:03 * jberger thinks of alternatives
23:04 sri there's generally very little incentive to "open source" images
23:05 sri if anyone wants to do something fun with it (mojoconf?) i'll just give out licenses
23:07 sri not keeping it for myself, there's just no reason to open it up
23:11 sri btw. i also give out special licenses for the perl raptor (since you normally can't print it without attribution)
23:13 jberger if you would like me to add a message or remove any images from the talk, just say the word
23:13 jberger there is a note in the readme
23:13 sri that covers it already
23:14 sri artwork in core is also cc-sa 4.0
23:15 jberger I should probably update the readme anyway
23:17 sri if yo want vectors for any of the mojolicious images, just mail me
23:18 jberger I think what I have works for my purposes, unless you think vectors would be better
23:18 jberger riche: ^^ # for mojoconf
23:19 sri i made the pirate cloud specifically for mojoconf originally
23:20 sri only ended up on t-shirts because plans didn't pan out
23:23 jberger maybe it still will be
23:37 nkntr joined #mojo
23:38 nkntr Howdy
23:39 sri o/
23:39 alnewkirk joined #mojo
23:39 nkntr discovered this channel...messing around with mojolicious... have some ideas... been a Perl user for a couple decades...
23:41 nkntr anyway... lol, I haven't been on an irc channel in ... probably a decade either... thought I'd stop in and see what was up...
23:42 nkntr working on a framework project for the funzies (perl) and it would be fun to hook it into mojo to do content negotiation
23:42 disputin joined #mojo
23:44 nkntr framework so far sorta works like spring w/ autowire, plus includes configuration and a tree based rules parser...
23:47 sri doubt we have many spring fans here
23:47 nkntr a request would be sent to a master template with the associated args, and it would ask the associated factory to, based on rules, derive the best class, instantiate it, and then inject the configuration parameters and the arguments into the newly instantited class. the class should adhere to an agreed upon interface.
23:48 nkntr so, based entirely on passed arguments, response class, tied to a mojo router will respond without discrete code to populate your page...
23:48 nkntr I write code for a living, but Perl has been a hobby and how I have fun...has been for years
23:50 nkntr NEwho... just thought I'd share some ideas...
23:50 * nkntr shrugs
23:51 sri folks around here are more pragmatic and less into theory
23:52 nkntr regardless, I'll get a demo up and running soon. wanna share ideas
23:53 preaction have you checked out the existing DI libraries in Perl like Bread::Board and Beam::Wire?
23:53 nkntr Yes, I have...
23:57 nkntr I've never published to the community anything... and maybe this thing will be a flop, who knows... a dude's gotta try. been working on several iterations of a set of foundation classes. My buddy has redone and is finishing up SQL::Phrasebook in a new package that looks a lot like iBatis... an XML based SQL abstraction toolset
23:58 nkntr SQL::Phrasebook only works on R part of CRUD... his works to abstract the whole thing...
23:59 nkntr anyway, I guess I came here for ideas...no worries. I got a head of steam and I'll go forth regardless...

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