Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-21

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

All times shown according to UTC.

Time Nick Message
00:42 zpmorgan The last time Mojo::Redis didn't do what I meant, I was informed that I was doing it wrong
00:42 zpmorgan pretty sure this one is a bug though:
00:42 zpmorgan http://paste.scsys.co.uk/211037?ln=o​n&hl=on&submit=Format+it%21
00:44 zpmorgan 'close' events are getting duplicated or called too many times or something
02:28 zengargoyle joined #mojo
02:34 zengargoyle explanation of file protocol testing. a script 'foo' using M::UA like: perl -Mojo -E 'say g($ARGV[0])->dom->at(q(title))->text'.  then `./foo http://jklmnop.net` works. then you need to debug/test for some reason, but don't want to keep hitting server over and over.  Solution: `wget http://jklmnop.net -Otest.html
02:39 noganex_ joined #mojo
02:39 zengargoyle maybe there is some Mojo::Something that I haven't discovered that does Mojo::Something->new->get('file or url')->dom like function?
03:18 zengargoyle joined #mojo
03:48 zengargoyle joined #mojo
03:58 GabrielVieira joined #mojo
04:30 xaka joined #mojo
05:03 GabrielVieira2 joined #mojo
06:34 Vandal joined #mojo
07:07 sh4 joined #mojo
07:19 Mike-PerlRecruiter_ joined #mojo
07:20 xaka joined #mojo
08:18 Foxcool joined #mojo
08:29 baton8 joined #mojo
08:51 dpetrov_ joined #mojo
09:23 GabrielVieira joined #mojo
09:27 buu Well
09:27 buu That's odd.
09:27 buu None of these routes matched your GET request for /user/foo, maybe you need to add a new one?
09:27 buu /user/foo
09:27 buu GET
09:27 buu userfoo
09:32 buu WHY AREN'T YOU MATCHING
09:40 buu sri: You around?
09:41 buu tempire: Or um you?
09:41 purl i think you is what you am
09:44 Britzel joined #mojo
09:48 crab from the information you have provided, i can confidently say that something is wrong.
09:48 crab i recommend taking corrective action.
09:55 buu crab: It turns out that what was wrong was my ability to read text files
10:49 vervain joined #mojo
11:02 trone I see that Mojo::Cookie don't auto-serialize the content. Instead ::Session serialize automatically.
11:04 trone Is it to allow the freedom to serialize cookie how each want? (Cookie with json, or base64 or other)
11:28 trone OK, I see the code. Mojo::Cookie and Mojolicious::Session (or cookie in Mojolicious::Controller) qre 2 really different things.
11:29 ladnaV joined #mojo
11:42 dvinciguerra_ joined #mojo
11:43 Vandal joined #mojo
11:56 dbr joined #mojo
12:15 ryozi joined #mojo
12:34 sh4 joined #mojo
13:00 zpmorgan http://paste.scsys.co.uk/211074
13:01 zpmorgan it keeps repeating that after every lock_interval
13:01 zpmorgan after the 1st request it's fine...
13:01 zpmorgan morbo's fine. only hypnotoad does that.
13:02 zpmorgan I don't know what to make of it
13:06 rem_lex| joined #mojo
14:16 rem_lex|pivo joined #mojo
14:31 Akron joined #mojo
14:49 abra joined #mojo
14:52 sri hmmm
14:52 * sri wonders if he should build a little micro asset pipeline as inspiration
14:54 gryphon joined #mojo
14:58 ObseLeTe joined #mojo
15:13 sh4 joined #mojo
15:25 Akron I thought tempire is heavily working on an asset pipeline?
15:36 GabrielVieira joined #mojo
15:42 rem_lex| joined #mojo
15:43 Vandal joined #mojo
15:52 sri i thought multiple people were, but have seen no results at all yet
15:57 bc547 joined #mojo
16:53 xaka joined #mojo
16:55 inokenty joined #mojo
17:17 Akron As I have no real idea how an asset pipeline might look designwise - I am looking forward to your suggestion!
17:27 rhaen good evening everyone.
17:30 Vandal joined #mojo
17:31 sri it's much easier than i though, prototype is already written :)
17:31 sri so far only css support though, but with pluggable filters
17:33 Vandal is there any IDE wor win with good .ep syntax highlight?
17:34 Vandal *for
17:34 sri komodo advertises .ep support
17:34 rhaen Vandal: there are some editors which do support ep highlighting
17:35 rhaen vim can do something for you, TextMate, too.
17:35 sri those are not IDEs
17:35 rhaen sri: *coughs*
17:35 rhaen sri: well,....
17:35 Vandal komodo has lame highlight
17:35 sri the best are vim and textmate though, since they are maintained by us
17:36 rhaen sri: would you accept emacs as an answer?
17:36 sri rhaen: no
17:36 sri sublime text 2 is also pretty good
17:36 rhaen sri: ok, so - epic fails, Netbeans, too.
17:36 rhaen sri: that's not an ide :) :)
17:36 sri rhaen: we have now reached editors ;)
17:37 rhaen sri: ah. ok :)
17:37 Vandal AFAIK textmate is for OS X only
17:37 sri i believe the only usable perl ide is komodo
17:37 Vandal yes
17:37 sri but pretty much everyone uses a normal editor
17:37 rhaen sri: btw, but the Perl support in Sublime is close to non existent (on Windows) - but should be on OSX, too.
17:38 rhaen Vandal: I used to work with EPIC which works well.
17:38 sri rhaen: huh? perl support in sublime is excellent
17:38 rhaen sri: what plugins are you using?
17:38 sri the mojolicious and perltidy plugins
17:38 sh4 joined #mojo
17:39 sri it ships with perl support
17:39 rhaen ah.
17:39 rhaen yep, it lacks everything for windows.
17:39 sri only thing that bugs me about sublime is unicode bugs and terrible find in files
17:39 sri rhaen: i very much doubt that
17:39 Vandal rhaen, its Eclipse?
17:40 rhaen sri: well, the perltidy is broken on windows.
17:40 sri sublime has a reputation for doing everything cross platform
17:40 sri then you should contact the plugin author
17:40 rhaen sri: well, the plugin. However, the author is not answering (as seen on github)
17:40 rhaen sri: I'll check it later again.
17:40 rhaen Vandal: yep, it's an eclipse plugin.
17:40 sri the author merged patches from marcus
17:41 sri maybe he's not a windows user and can't help
17:41 rhaen Vandal: if you are using eclipse for java stuff, you might feel at home right away.
17:41 rhaen sri: ah, k. I need to check that.
17:41 Vandal rhaen, i tried it before komodo but can't remeber why don't like it
17:41 rhaen sri: however, editing some stuff for the wiki  - vim is still awesome in terms of highlighting pod.
17:42 * sri uses TM2 exclusively
17:42 Vandal rhaen, no, I don't java guy
17:42 Vandal *I'm not
17:42 rhaen Vandal: well, I am always coming back to vim. I tried to use Sublime Text (as I need crossplatform) but I am not allowed to use it in the office.
17:42 rhaen UI!
17:42 rhaen The sublime plugin looks nice
17:43 Vandal rhaen, it sux, I hate vim
17:43 rhaen huh. ok :)
17:44 Vandal I'll try Sublime Text
17:46 Vandal there is no .ep highlight at all :(
17:47 rhaen you have to install the plugin for that
17:47 rhaen https://github.com/SublimeText/Mojolicious
17:47 sri sublime looks pretty cool with this theme https://github.com/buymeasoda/soda-theme
17:47 sri on os x at least
17:48 * sri could never work on windows
17:48 rhaen sri: it pays my bills...
17:50 ObseLeTe joined #mojo
17:58 ObseLeTe Hi
18:00 sri here's my asset pipeline prototype :) https://gist.github.com/3927875
18:01 * sri pokes tempire and diegok
18:01 sri it caches everything in memory
18:02 Vandal wow, this is way better
18:02 Vandal thaks
18:02 Vandal thanks
18:03 rhaen hm.
18:05 sri result https://gist.github.com/3927875#gistcomment-588590
18:06 rhaen hm, ok. when will it be in Mojolicious?
18:07 rhaen looks nice.
18:07 sri never
18:07 rhaen ah. ok.
18:07 rhaen why?
18:07 sri at least not in that form
18:07 sri too many unknowns
18:07 sri i want to see at least a few different cpan plugins first
18:08 rhaen before you drag this into the Mojo dist?
18:08 sri yea
18:08 sri asset pipeline without good minifiers is not very good anyway
18:09 sri it's something that needs lots and lots of cpan modules to become really good
18:10 sri maybe you want to preprocess sass/less/coffeescript
18:10 rhaen is there a less implementation for perl? Probably you need some glue around this, not very nice.
18:11 sri don't care, that's why there's a plugin api for filters
18:11 sri you'll need a javascript interpreter for coffeescript as well
18:13 rhaen hm, let's embed node.js for this :)
18:13 sri that's how rails does it
18:13 rhaen no, really?
18:14 sri of course, they use whatever javascript is installed
18:16 cosimo joined #mojo
18:16 rhaen k.
18:17 rhaen I thought they are calling out for node.js to run commands.
18:26 Akron There is a less implementation for perl (used by https://github.com/Akron/Mojo​licious-Plugin-LessRenderer), but it is quite buggy. The Sass implementation is more mature (I published a plugin earlier today https://github.com/Akron/Mojolicious-Plugin-Sass).
18:27 sri Akron++
18:29 Akron I think I will delete LessRenderer and solely work with sass. Modifying this to be a useful plugin as part of an asset pipeline should be easy.
18:32 sri i think the most complicated part of all asset pipelines is the caching into real files
18:32 sri it's rather annoying to test
18:34 sri the core only needs concatenating of files and pluggable filters though
18:35 sri tricky stuff like inlining images into css files can all be filters
18:36 sri many open questions though
18:36 dross hmm
18:36 sri like, should assets really be stored as normal static files
18:36 * dross goes back to his mojo based CMS
18:36 sri or have their own hierarchy
18:38 Vandal why my template acts like there is auto_escape enabled?
18:39 sri also development vs production assets, it might be useful to disable minifying during development
18:41 sri splitting static files and assets would have the advantage of allowing .ep processing too
18:42 sri embedding assets in the DATA section could get tricky though
18:42 sri lots of questions :)
18:42 dross Vandal: what?
18:42 * sri pokes tempire, marcus and crab
18:42 dross Vandal: auto_escape is a default, you are aware of this, yes?
18:42 Vandal dross, no
18:42 dross EPRenderer.pm
18:43 Vandal I've just upgraded from 2.8 to current version
18:43 Vandal and there it is
18:44 dross when you create a template object, myobj->auto_escape(0); if you don't want it enabled.
18:44 dross :)
18:44 dross myref->auto_escape(0);   # sorry, I come from the world of pure object orientated languages
18:44 Vandal I'm not creating any thing
18:45 dross oh hmm
18:45 dross I don't use Mojo for simple rendering, I create templates to render very dynamically
18:45 Vandal is it $self->renderer &
18:45 Vandal ?
18:46 dross tempire or one of the other devs might be able to answer you to adjust the default
18:47 Vandal nope, it isnt
18:49 sri perhaps we should also think about multiple extensions again... stylesheets/foo.css.css_compress.sass.ep
18:50 sri then again... .ep preprocessing could also just be a filter :)
18:52 sri making the source files public would not be desirable though... hmmm
18:53 sri perhaps the asset plugin should be able to access static *and* template files
18:53 sri which would mean, double extension and they are hidden
18:57 abra joined #mojo
19:00 ObseLeTe joined #mojo
19:01 Akron Multiple extensions for cascading handlers seems to be a good idea.
19:02 sri they make things complicated though
19:02 sri and they would apply *before* concatenating
19:02 sri which basically sucks
19:03 sri it makes sense for sass/coffeescript preprocessors, but not minifiers
19:05 sri and there is still the DATA problem, we currently consider all files with one extension to be static (handled by the static dispatcher), and all with multiple to be templates (handled by the renderer)
19:09 * dross yawns
19:15 dross sometimes I really dislike designing databases
19:20 Mike-PerlRecruiter_ joined #mojo
20:09 lukep joined #mojo
20:29 sri http://railscasts.com/episodes/279​-understanding-the-asset-pipeline # in case anyone wants to know how the rails asset pipeline works
20:29 * sri hates manifest files with magic comments
20:59 ObseLeTe joined #mojo
21:20 * dross yawns
21:54 buu Hey, is there anyway to make morbo output error log statements?
21:54 buu Like the stuff in development.log
22:12 sri rm -r log
22:15 * sri wonders if generating cached versions of assets should be part of the base system at all
22:16 sri most implementations seem to add it as a command to be run manually later on before deploying to a production server
22:17 sri guess that would be easier with an implementation that was shipping with the core
22:18 sri my @assets = app->assets->list; my $content = app->assets->get('app.js');
22:18 Adura Then you can code all those js/css abstraction parsers!
22:19 sri ?
22:20 Adura http://sugarjs.com/ http://coffeescript.org/ http://lesscss.org/
22:20 Adura What fun!
22:20 sri you can already use those and renderers
22:20 sri foo.js.coffee
22:21 Adura It's... automatic?
22:21 sri Akron even made plugins for sass and less
22:21 Adura Oh, via plugins.
22:21 dross sri: /me yawns
22:21 sri plugin 'Sass'; ...done
22:21 dross oop
22:21 dross o.o
22:21 dross oh, right
22:21 dross sri: why did you link to the assets? you wanting something like that in Mojo?
22:22 sri dross: /me puts a sock in your mouth
22:22 Adura Hmm, well, thought the asset code was the right fit.
22:22 Adura But, if it's already taken care of...
22:22 sri dross: i already wrote half of it https://gist.github.com/3927875
22:22 dross sri: ah
22:22 * dross lokos
22:22 dross *looks
22:23 sri renderers are on demand during runtime, and assets get preprocessed on startup
22:23 sri assets are more about concatenating many small files and minifying them
22:24 sri or inlining image files into css mime encoded
22:24 sri (which would be filters in my version)
22:24 * dross is aware how rails works, I use it as well
22:24 Adura Single-request pages, huh? IE shall make that fun.
22:28 sri guess i'll post it to the list tomorrow to see what folks think about it
22:28 sri it may even have a chance to become a core feature if all open problems get solved
22:31 jzawodn joined #mojo
22:32 dross sri: it's definitely useful
23:05 davido joined #mojo
23:23 gryphon joined #mojo

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