Time  Nick      Message
23:07 tempire   er, *to the list
23:05 tempire   I believe it's a matter of precedence.  (getpwent)[0,7] by itself doesn't apply the slice from the list that getpwent returns.
23:03 ashleydev why are either needed?
23:03 tempire   prettier, less parens
23:02 ashleydev tempire: what does that solve?
22:45 tempire   +(getpwent)[0,7], instead of ((getpwent)[0,7])
22:45 * tempire <3 the + symbol
19:55 xaka      nvm, double render happened
19:47 xaka      sri: i start getting "substr outside of string at /usr/share/perl5/Mojo/Message.pm line 257" from time to time. I see that passed offset value is 207 which is bigger than start line length (17). FYI
18:56 netfeed   sorry, MOJO_MODE
18:55 netfeed   doesn't morbo set MOJO_ENV?
14:19 GitHub106 [mojo/master] refer to url_with from url_for documentation - Sebastian Riedel
14:19 GitHub106 [mojo] kraih pushed 1 new commit to master: http://git.io/7M4bxg
14:09 judofyr   yeah, that's right
14:09 sri       so you can do url_for(foo => 'bar') for /lalala/:foo/lalalala
14:08 sri       it rebuilds the current url
14:08 judofyr   cool
14:08 judofyr   misunderstanding then
14:08 judofyr   ah
14:08 sri       not what i said
14:08 judofyr   sri: has url_for() changed? I thought you said it didn't return the current url…
13:54 sri       (and helpers)
13:54 sri       it's slightly slower, and worse for documentation, but doesn't break existing plugins
13:53 GitHub148 [mojo/master] removed url_with method and upgraded url_with helper - Sebastian Riedel
13:53 GitHub148 [mojo] kraih pushed 1 new commit to master: http://git.io/atxe1A
13:44 sri       we may have to degrade url_with to just being a helper
13:42 sri       could it be that we broke it with master?
13:42 sri       batman: the url_with plugin is yours?
13:40 * sri     researches too
13:40 sri       actually i don't know most of the plugins on cpan
13:40 sri       hmm
13:39 diegok    I will finish some work and then I'll research. I'll be asking for advices/help for sure :)
13:39 sri       that would be the coolest plugin so far :)
13:38 diegok    sri: yes, that is what I want.
13:38 sri       and only update on changes
13:37 sri       i like that you would just have to do "./myapp.pl" and it would precompile the assets
13:35 sri       https://github.com/rstacruz/sinatra-assetpack
13:35 judofyr   some for Rack, some for Sinatra
13:34 diegok    I've implemented somo sort of this some years ago for a catalyst app... but was just a pre-deploy hook parsing TT files and doing nasty things :)
13:34 judofyr   I've seen a few, yeah
13:34 sri       there was a rather nice minimalistic one for sinatra
13:34 sri       rails asset pipeline is a bit complex
13:33 diegok    judofyr: me neither, but I've been reading docs :p
13:33 sri       app->asset(foo => ['jquery.js', 'some_part/*.js'])
13:33 judofyr   diegok: dunno. haven't used pipeline in Rails 3.
13:32 sri       maybe support globs
13:32 diegok    judofyr: you mean like the ror thing that create js packs for controllers?
13:32 sri       app->asset(foo => qr|some_part/.*\.js$|)
13:32 judofyr   if I want to modularize my JS?
13:31 judofyr   asset/some_part/mything.js
13:31 judofyr   what about directories?
13:31 diegok    of course
13:31 sri       s/app->/app->asset/
13:31 diegok    like that
13:31 diegok    yes, or test-20982384298oj234.js
13:30 sri       internally just use some hash name 142362736273f23873a.js
13:30 diegok    yea, probably the list can take also directories to slurp alfabetically
13:30 sri       or you don't bother with real names and just make it app->(test => [qw/foo.js bar.js/])… <%= javascript_for 'test' %>
13:29 diegok    or just take over the javascript core helper :p
13:29 * sri     nods
13:29 diegok    and then you use packed_javascript_for 'app.js'
13:29 sri       and then have some other helper to make tags
13:28 sri       right
13:28 diegok    so, you set that on startup
13:28 sri       app->asset('app.js' => [qw/foo.js bar.js/])
13:28 diegok    yes, or something like that... more sinatrish :)
13:27 purl      the other way around is not better
13:27 sri       or the other way around
13:27 diegok    it can be a helper kinda content_for, but I would need to run once to get what need to be done.
13:27 sri       app->asset([qw/foo.js bar.js/ => 'app.js'])
13:25 diegok    but I don't see a good way of getting all what need to be compiled/compressed/joined without that :(
13:24 diegok    yes, the thing I most dislike about the rails way is having an extra config file to set named groups of assets
13:23 sri       complex
13:23 judofyr   another useful feature: plugins being able to have assets too
13:22 sri       i think diegok wants to build it
13:22 judofyr   thinking about a mojo pipeline again?
13:05 sri       minifiers and precompilers are of course pluggable
13:04 sri       much like the rails pipeline
13:04 sri       and some helpers to generate tags and stuff
13:04 sri       with its own $home/assets directory and custom static dispatcher to serve minified files
13:03 sri       and i would make it completely separate from the current templates and static files
13:02 sri       well, i would compile assets on startup, and compare mtime to see if one needs to be updated
13:00 diegok    sri: ok, I'll came back later, I would like to discuss what should be done :)
12:59 sri       diegok: don't think so, but it would be nice
12:11 foomator  perl, js
12:11 foomator  hahaha
11:53 kipodf    hey can any1 tell me what languages i need to learn in order to build ajax website with mojolicious?
11:46 diegok    Is someone doing some kind of "asset pipeline" with mojo?
11:45 diegok    I was reading reviews, who is this guy -> http://cpanratings.perl.org/user/blue ?, he hates every module in cpan :-p
09:15 batman    JSON::Pointer is cool :)
08:50 * sri     runs away screaming
08:49 marcus    ain't war hell?
08:49 * marcus  muddles the debate with facts.
08:48 sri       don't use my logic against me!
08:48 sri       /o\
08:48 marcus    sri: so you don't want me to use experimental features? How are they going to stabilize then? :)
08:47 * sri     mumbles something about experimental at marcus
08:16 * marcus  adds JSON::Pointer to a production app.
07:31 sri       that usually means you screwed up big time somehow
07:24 sri       cookie not signed is a very simple error message, it means your cookie named "mojolicious" exists but has no signature
07:23 sri       moin
06:11 ispy_     spydev.ath.cx/cpanel if you're curious.
06:10 ispy_     But my guess is, since the VM knows its self as 10.10.x.x but on my network it's known as 192.168.1.6, I'm thinking that's where the culprit is.
06:10 ispy_     I'm trying to learn more about signed cookies so that I can better trouble shoot.
06:09 ispy_     The VM is running on another physical machine on my local network.
06:09 ispy_     I ssh -X into that VM and launched firefox to browse localhost essentially. And now the cookie signs perfecly and I can login to my application.
06:08 ispy_     And check this out, so I did a test...
06:08 ispy_     Yes.
06:08 marcus    ispy_: did you clear your cookie when switching the host?
06:07 marcus    oh hai
01:33 ispy_     Which is awesome, since by moving to this VM I've pissed off my customer who now can't login to their backend I've created to add/remove content from the website... haha...
01:33 ispy_     So I'm scratching my head :)
01:32 ispy_     However, if I go back to my host OS, where I've been developing... no issues. EXACT same code, EXACT same sqlite dbase file.
01:31 ispy_     But even if I access it directly over my LAN, 192.168.1.6, I still get this problem.
01:31 ispy_     Than the original one I've been developing with.
01:30 ispy_     Yes.
01:30 ispy_     I'm thinking that's where the issue is. But I don't understand enough about signed sessions to trouble shoot.
01:30 tempire   so a different url is being used, right?
01:30 ispy_     That has port forwarding from my router to the VM using VBox.
01:30 ispy_     Now it's in a VM.
01:30 ispy_     tempire, no a different host.
01:29 tempire   ispy_: using the same host?
01:11 ispy_     Any help is greatly appreciated...  I've verified that the cookie is signed on my original system. And is not signed on the VM I've attempted to migrate my application to...
01:11 ispy_     I installed Mojolicious on one system, and have been developing on it for several months. When I migrated my application over to a new vanilla environment (with all Mojoliicious modules installed) I'm now unable to properly login, and I believe it's due to the above error message.
01:02 ispy_     Does anyone know why I would get this message when working with sessions? I've never recieved this before... Cookie "mojolicious" not signed.