Camelia, the Perl 6 bug

IRC log for #mojo, 2011-08-17

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

All times shown according to UTC.

Time Nick Message
00:09 elb0w___ joined #mojo
01:06 xaka joined #mojo
01:36 perlrocks Twitter: "Released mojolicious-lexicon-0.9222 with a lot of useful improvements from Silvio Quadri http://t.co/ykobTie #mojolicious #perl" --und3f http://twitter.com/und3f/status/103641362892722176
01:44 perlrocks Twitter: "Mojolicious, $ r-> namespace ('MyApp:: Controller'); stopped working ... After that the move was only Did you Did my typo on the part of the namespace Tetara think. I want you out Janaku error warning." (ja) --hisaichi5518 http://twitter.com/hisaichi55​18/status/103643426188300289
01:54 Alias_ joined #mojo
02:15 elb0w__ joined #mojo
02:15 elb0w__ So I can do /
02:16 elb0w__ and fetch any ?/& params with $self->param("something")?
03:39 perlrocks Twitter: "We finally have come to feel able to use Mojolicious. This was the first two cases and yet still take time to Taming and think." (ja) --taiju http://twitter.com/taiju/status/103672333205643264
03:46 perlrocks Twitter: "I @ shin're using taiju Mojolicious" (ja) --omyu http://twitter.com/omyu/status/103673947584868352
03:49 SmokeMachine joined #mojo
04:28 perlrocks Twitter: "www/p5-Mojolicious - 1.76: - Update to 1.76 - Sort MAN3  Changes:        http://t.co/YCZUBsk... http://t.co/d8KDAbC" --freshports_org http://twitter.com/freshports_​org/status/103684684088745985
05:09 baton8 joined #mojo
05:42 Eugene joined #mojo
06:05 sromanov joined #mojo
06:15 tempire !!
06:15 tempire marcus: how was the overall response to your mojo talk?
06:16 nordicdyno joined #mojo
06:20 Alias_ left #mojo
06:36 koban joined #mojo
06:40 nordicdy_ joined #mojo
06:40 Eugene hi. I have a question regarding the following example:
06:40 Eugene my $ua = Mojo::UserAgent->new;
06:40 Eugene my $t = Mojo::IOLoop::Trigger->new;
06:40 Eugene for my $step (1..5) {
06:40 Eugene for my $thread (1..2) {
06:40 Eugene say "==> $step - $thread";
06:40 Eugene );
06:40 Eugene }
06:40 Eugene }
06:40 Eugene $ua->start;
06:40 Eugene Is it possible to automatically wait at the end of each step till all sent requests have finished?
06:42 Eugene looks like it cuts me :( trying again
06:42 Eugene my $ua = Mojo::UserAgent->new;
06:42 Eugene my $t = Mojo::IOLoop::Trigger->new;
06:42 Eugene for my $step (1..5) {
06:42 Eugene for my $thread (1..2) {
06:42 Eugene say "==> $step - $thread";
06:42 Eugene );
06:42 Eugene }
06:42 Eugene }
06:42 Eugene $ua->start;
06:42 Eugene does anybody see my example?
06:43 perlrocks Twitter: "Just blog - Working with cookies in Mojolicious:: Lite http://t.co/gk9yXTR" (bg) --geekspot_ru http://twitter.com/geekspot_​ru/status/103718484176932865
06:43 jamesw yeah thats what pastebins are for
06:43 Eugene good point, 1 moment
06:45 Eugene http://pastebin.com/zELvqxDp
06:45 Eugene question is there aswell
06:53 Eugene another version if you don't like how previous one looks like: https://gist.github.com/1150975
06:54 Foxcool joined #mojo
06:55 Foxcool joined #mojo
06:57 nordicdyno joined #mojo
07:13 Eugene does anybody know where I can take older versions of Mojolicious framework? I can see only 2 latest on cpan but I need earlier
07:16 crab get them from github.
07:17 Eugene cool cheers
07:22 cosmincx joined #mojo
07:26 Firkin joined #mojo
07:27 sugar joined #mojo
07:35 arthas joined #mojo
07:43 nickl joined #mojo
08:16 lammel joined #mojo
08:26 noganex joined #mojo
08:29 nordicdyno joined #mojo
08:37 nordicdyno joined #mojo
08:41 fhelmber_ joined #mojo
08:47 judofyr joined #mojo
09:07 jonasbn joined #mojo
09:08 gizzlon Eugene: doing something similar ..
09:08 jonasbn Is there a best practice for overwriting standard behaviour, like generating 404 results etc?
09:10 gizzlon Eugene: Run $t->start once for each $step.
09:11 gizzlon Eugene: $t->start "blocks" until they are all done, if you use $t->begin and $t->end
09:12 Eugene hmm… I see, will try, thank you
09:15 spleenjack joined #mojo
09:16 gizzlon Eugene: belive this worked ok, but the "lock-step" - waiting for all to finish - slows it down
09:16 gizzlon Eugene: http://pastebin.com/1N7y0dMG
09:16 Eugene great cheers
09:17 Eugene I need this lock to not send 1000+ requests at once to the same website but instead do it in N threads
09:18 gizzlon Not really, you can start N ant let each start the next one ..
09:19 gizzlon But it has its own set of ..
09:19 gizzlon challanges
09:19 Eugene exactly. Since I have already working code that used to work in older Mojolicious - I just need a quick fix for that now. It's not so important stuff to spend so much time rewriting it
09:20 gizzlon only tried it in 1.77 .. the docs _does_ warn you btw ;)
09:21 Eugene hmm… would you please quote it :)
09:21 gizzlon _do_ warn you? Anyone know english?
09:21 gizzlon jonasbn: Think I spotted something like that in the Guides somewhere
09:22 gizzlon Eugene: "Mojo::IOLoop::Trigger is a remote control for Mojo::IOLoop. Note that this module is EXPERIMENTAL and might change without warning!"
09:23 gizzlon Anyone know if I can "share" a variable bwteen events? Are there any locking in Mojo::IOLoop?
09:26 judofyr gizzlon: only one Perl subroutine will run at a time
09:28 jonasbn gizzlon: I will have a look - thanks
09:28 gizzlon judofyr: I'm trying to grasp the impat of that..
09:29 judofyr gizzlon: although several requests can be executed at once. there's a lot of waiting/transferring that can be done in "the background"
09:30 gizzlon judofyr: Think I get it.. is this true for all event driven stuff or just Perl?
09:32 judofyr most event-driven stuff works like that. e.g. Node.js, Ruby's EventMachine etc.
09:32 nordicdyno joined #mojo
09:34 gizzlon judofyr: so the the sub will run without interruption?
09:34 judofyr I'm not quite sure if it's just because that's the easiest solution (no locking or thread-scheduling needed) or if it's an important part of event-driven stuff
09:34 judofyr gizzlon: yes, no other Perl code will run. it will continue sending/receiving data though.
09:35 judofyr but from your point of view, you can assume that it's single-threaded
09:35 gizzlon judofyr: thanks.. guess it makes sense: If a sub could be interepted at _any_ time, things would get a lot more difficult
09:36 judofyr yeah, it makes everything a lot more easier to handle
09:37 judofyr and reason about
09:38 gizzlon I have a hard time understanding of single-threaded event-driven stuff (node..) can work in practice ..
09:39 gizzlon guess that's why you need async versions of evrything
09:40 judofyr yeah, if you block a sub (with a sync request) there will be no time to run other subs/callback
09:42 gizzlon also means I cant relly proccess the xml I'm getting wiht Mojo >(
09:43 gizzlon guess I need AE too? .. this could get nasty
09:43 judofyr gizzlon: why not? Mojo ships with a XML parser too
09:44 gizzlon judofyr: ah, thst's true.. I'll check it out
09:45 gizzlon judofyr: but since it can't _really_ proccess two xml chunks at the same time (?), I still have to keep it to a minimum
09:45 judofyr gizzlon: how long time will it take to process a chuck?
09:46 gizzlon judofyr: no idea ;)
09:46 judofyr it might be a better idea to have a separate process which does the actual work
09:46 judofyr also, you usually want to spawn a few mojo-processes (one per core) on the same machine in production
09:47 gizzlon judofyr: yeah, but having just one process working on this makes the queing/locking much simpler
09:49 judofyr it's a trade-off. it makes the process serving requests (mojo) more responsive
09:52 gizzlon judofyr: aren't event driven kind of unnecessary if you have many proccesses?
09:52 gizzlon judofyr: you can just start enough to saturate the IO
10:02 mhi sri: This example from http://mojolicio.us/perldoc/Mojolicious/Lite (Placeholders) return 404 in both cases: http://codepad.org/yxAuJUk8
10:03 mhi I mean, the comments should show a valid example. :>
10:16 shonorio_ joined #mojo
10:18 GabrielVieira2 joined #mojo
10:27 d4rkie joined #mojo
10:49 mhi Is it possible to combine optional and restrictive placeholders?
10:50 mhi "get '/cool/:whatever' => { [whatever => [qw/ eins zwei /]] => 'ERROR' } => sub..." is not working. :P
10:55 lammel Hey there
10:55 lammel I'm just writing a plugin for DBIx::Class integration with mojo
10:56 lammel is that something others might be interested and one should find it on cpan?
10:57 lammel It's based on Mojolicious::Plugin::Database by madcat mostly
10:58 judofyr gizzlon: you should probably talk more about this with sri
10:59 judofyr he's tha man
11:09 nordicdyno joined #mojo
11:12 gizzlon judofyr: :) I'm just going to do it and see how it goes
11:12 judofyr gizzlon: :)
11:12 gizzlon lammel: probably
11:34 nordicdyno joined #mojo
11:37 nordicdyno joined #mojo
11:56 nordicdyno joined #mojo
11:58 sugar joined #mojo
12:02 mhi How do I manage CSS files? I have templates/index.html.ep and templates/layouts/default.html.ep referencing 'style.css', but it's not working.
12:02 mhi (not working == I probabably can't find the the CSS file and the index page gets shown without the CSS definitions.)
12:03 mhi *it
12:03 judofyr mhi: use <link href="/style.css">?
12:07 mhi Hmm, I use this and don't get a green background: http://codepad.org/d514sSe9
12:08 judofyr mhi: put style.css in public/
12:09 mhi judofyr: Aww. Thank you!
12:12 judofyr mhi: :)
12:13 stephan48 mhi: you will also need to alter the part i guess from /templates/style.css to /style.css in the html, otherwhise you would need to put the css file into public/templates
12:13 stephan48 path*
12:13 Eugene joined #mojo
12:14 mhi stephan48: Yup, I just realized that mojo will search all static files in /public, that's why I created public/{style,css}.
12:15 mhi Ehm, /public/{style,pics}.
12:20 xoma joined #mojo
12:21 stephan48 ye
12:28 shonorio joined #mojo
12:29 nordicdyno joined #mojo
12:42 sri Eugene: the old blocking parallel request thing from Mojo::Client is gone, it was deprecated for a long time
12:43 sri Eugene: Mojo::Trigger is not a 1:1 replacement, but a different solution for the same problem
12:43 judofyr sri: you should read the discussion between gizzlon and me. hopefully I didn't say anything wrong… :)
12:43 sri judofyr: nope, did sound right
12:44 judofyr puh
12:44 Eugene well, thanks for letting me know. I did that script long time ago and since it's working with older Mojo - I just put it into proper lib folder
12:44 Eugene hopefully it's a standalone script
12:44 Eugene not hopefully, but fortunately :)
12:46 judofyr sri: I think that's actually the first time I've said/asked/helped in this channel without you being here. you are no robot after all? :(
12:47 sri gizzlon: processes and event driven scales a lot better than just processes
12:48 * sri has to recharge batteries fro time to time
12:50 Kulag joined #mojo
12:52 lammel I just stumbled upon the forced camelize when trying to do a DBIC plugin for mojo
12:53 sri lammel: you can use snake_case or the Full::Qualified::ModuleNAME
12:53 lammel THe only workaround is to use $self->plugin('Mojolicious::Plugin::DBIC',
12:55 lammel it's a little odd, when adding a plugin for something like DBIx::Class which has even more uppercase letters when being abbreviated (DBIC) ;-)
12:55 sri i'm open for suggestions
12:56 lammel Well, having a too smart thingy is no good, the Catalyst/DBIC guys had that with their model integration
12:56 lammel It was quite easy to get it trying to load the wrong class
12:57 sri we can't change the current behavior
12:57 sri only add to it
12:57 lammel yepp, so only trying to load the class without camelcasing it would be possible
12:58 sri make a working patch with tests and we'll see
12:58 lammel $self->plugin('DBIC') would the just try to load Mojolicious::Plugin::DBIC and if it's not found try ::Dbic
12:59 sri if you can make it work reliably i'm ok with it
12:59 lammel I'm really not sure if it's worth the hassle
12:59 lammel I'm I the only one who brought that up until now?
12:59 sri pretty much, ye
13:00 lammel well... then we take the simple path and I just get the documentation right
13:00 sri well,i'm giving you the chance to improve it, your choice
13:04 arthas joined #mojo
13:08 elb0w Where can I learn about mojo and ssl?
13:09 elb0w hypnotoad
13:09 purl it has been said that hypnotoad is at http://www.r33b.net/ or ALL GLORY TO THE HYPNOTOAD!
13:11 sri http://mojolicio.us/perldoc​/Mojo/Server/Daemon#listen
13:11 SmokeMachine joined #mojo
13:12 elb0w ah cool
13:13 sri http://mojolicio.us/perldoc/​Mojo/Server/Hypnotoad#listen
13:13 sri there is no link because it's usually a bad idea
13:13 elb0w Why is that?
13:13 judofyr sri: what kind of Ruby development have you done?
13:14 sri elb0w: perl modules for ssl are not the most reliable, and reverse proxies can handle it a lot faster
13:15 sri we mostly support it on the server side for testing
13:15 sri judofyr: a lot of rails
13:15 elb0w Im just making a call for a register and login with ssl
13:15 elb0w rest will be over http
13:16 sri allowing https for everything is in fashion these days
13:16 elb0w Well im just using mojo as a backend for a mobile app
13:16 elb0w If it were a site I would agree
13:16 elb0w I do that with localery.com
13:35 nordicdyno joined #mojo
13:39 alnewkirk joined #mojo
13:46 perlrocks Twitter: "@ It is also recommended hateBfavorite Mojolicious." (ja) --perlcodesample http://twitter.com/perlcodesam​ple/status/103812513430372352
13:48 elb0w Any reason I shouldnt use a helper to create a DBI handle?
13:49 elb0w Not yet
13:49 elb0w er wrong window
13:55 amoore joined #mojo
14:02 SmokeMachine_ joined #mojo
14:08 marcus yay
14:08 marcus back home
14:09 lammel sri: I sent you a pull request for the plugin with uppercase stuff
14:10 lammel a simple test is added for it, the snake_case and full package name where already in the test suite
14:11 metaperl joined #mojo
14:12 mhi Uhm.. I need rough guidance: What functions do I need to include snippets of html for each element of an array?
14:14 mhi (I hope that was understandable.)
14:14 koban left #mojo
14:22 mhi I'm building a simple blog for demonstration purposes. And my articles are all stored to a hash. I have an index page and a simple admin area with a text_area where one can add articles to the hash. But how do I get my index page to dynamically use them?
14:22 dekimsey joined #mojo
14:27 sri lammel: using the same quote twice is not good
14:28 lammel same quote?
14:28 sri the futurama quote
14:28 lammel oh, did I
14:28 lammel ah, may copy & paste finger, sorry
14:29 lammel guess I have to redo the pull request ;-)
14:29 lammel gimme a second
14:30 sri i also don't like that the same uppercase regex is used twice, i think there should be a more clever solution
14:31 sri otherwise it looks ok
14:31 lammel I tried to be more clever, but I'm not
14:33 judofyr sri: hahahaha. I like that you comment the quote first
14:33 sri judofyr: futurama quotes are a rule!
14:35 lammel ok, fixed it, AND fixed the quote
14:39 sri lammel: that actually looks worse
14:39 kaare joined #mojo
14:39 lammel why, wromg quote?
14:40 sri no, you changed the implementation
14:40 lammel hmmm... just used a bool instead, didn't I?
14:40 elb0w sri: how would you use dbi in your web app?
14:41 elb0w just make a helper for it?
14:41 sri lammel: the comment between two code lines for example really bugs me
14:41 lammel Mojolicious::Plugin::Database
14:41 elb0w lammel: awesome was looking for something like this
14:42 perlrocks Twitter: "Togetter - "@ Mojolicious commentary by Mr. perlcodesample" http://t.co/lQJs7fq" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/103839011658924033
14:42 lammel hehe, just thought I add it so that itÄs more clear ;-)
14:42 sri and you're indenting with 4 whitespaces
14:42 elb0w lammel: this will clean itself up?
14:43 sri lammel: want to clean it up or should i apply manually?
14:43 lammel elb0w: clean itself up?
14:44 lammel sri: I'll try one last time
14:44 elb0w lammel: disconnect its self
14:44 sri documentation is of course also missing
14:44 elb0w or does dbi already handle that
14:44 elb0w always paranoid im leaving idle connections
14:44 sri lammel: make it a single commit then
14:44 sri i don't want to compare 3
14:47 sri and i think i have a much simpler solution
14:47 sri or actually, your first is still the simples
14:47 sri t
14:48 lammel well, the latest one is definitly faster, and less duplication but uses an additional variable
14:48 sri fast is irrelevant here
14:49 lammel Just safe me from having it to redo again
14:49 lammel save*
14:49 lammel so nummero uno with the quote... so be it
14:50 sri also don't mention the name of the character in the quote ;p
14:53 Eugene joined #mojo
14:54 elb0w wow this plugin has a lot of deps
14:57 sri lammel: hurry up, or i forget what documentation needs to be updated again :S
14:58 sri my attention span only goes like 5 minutes
14:59 marty_ joined #mojo
15:01 lammel done
15:02 lammel I had to find my git supercow powers first to squash the commit on that pushed branch
15:02 lammel Happy applying
15:02 sri indentation is messed up again, but i'll fix it
15:02 lammel do we have a futurama quote generator here in the channel?
15:03 GitHub60 joined #mojo
15:03 GitHub60 [mojo] kraih pushed 2 new commits to master: http://bit.ly/okcPCj
15:03 GitHub60 [mojo/master] Allow plugin names with uppercase letters to be searched in namespaces - Roland Lammel
15:03 GitHub60 [mojo/master] Merge pull request #201 from lammel/feature-plugin-nocamelcase - Sebastian Riedel
15:03 GitHub60 left #mojo
15:05 sri comment in plugin is also wrong
15:08 lammel Guess we could have saved some work if you would have done it ;-)
15:09 lammel anyway, thnx for merging
15:21 perlrocks Twitter: "For @sharifulin and anyone else interested, my #yapc2011 Mojolicious slides are here - http://j.mp/qnenzY" --marcusramberg http://twitter.com/marcusramb​erg/status/103849027828854785
15:26 Eugene joined #mojo
15:36 GitHub144 joined #mojo
15:36 GitHub144 [mojo] kraih pushed 1 new commit to master: http://bit.ly/rhQZip
15:36 GitHub144 [mojo/master] updated changes and documentation - Sebastian Riedel
15:36 GitHub144 left #mojo
15:38 GitHub24 joined #mojo
15:38 GitHub24 [mojo] kraih pushed 1 new commit to master: http://bit.ly/rgvL11
15:38 GitHub24 [mojo/master] cleanup - Sebastian Riedel
15:38 GitHub24 left #mojo
15:38 sri now of course the big question, which form should we encourage>
15:38 sri s/>/?/
15:39 sri plugin 'some_thing'; or plugin 'SomeThing';
15:42 stephan48 last one
15:43 stephan48 less questions about behaviour from newbies
15:43 * sri pokes tempire, crab and marcus
15:43 xaka joined #mojo
15:43 stephan48 cause the translation from some_thing to SomeThing is another part which may be questioned from newbies
15:55 sherr joined #mojo
16:05 lammel definitly, but with the patch in place now, they can just use SomeThing and it works
16:06 lammel I would vote for SomeThing, as most people from other languages (java anyone) would now, that a module is written that way
16:08 GitHub57 joined #mojo
16:08 GitHub57 [mojo] kraih pushed 1 new commit to master: http://bit.ly/qm6tZn
16:08 GitHub57 [mojo/master] support and encourage camel case plugin names everywhere - Sebastian Riedel
16:08 GitHub57 left #mojo
16:09 sri yea, think it's the smart thing to do
16:09 tempire bah
16:09 lammel So then I can go forward releasing a Mojolicious::Plugin::DBIC and it shoudl just work, nice
16:10 * tempire is afraid of change
16:10 sri tempire: nothing changes if you don't want it to in this case :)
16:10 tempire so case is irrelevant now?
16:11 sri CamelCase and snake_case work both now
16:11 sri but we are going to encourage CamelCase
16:11 tempire I got that…I'm referring to UPPERCASETestPlugin
16:11 alnewkirk lammel, maybe you could start here, https://gist.github.com/1025760
16:12 lammel yikes
16:12 lammel Why didn't google show me
16:12 perlrocks Twitter: "In the next #mojolicious release we are going to support and encourage camel case plugin names. http://t.co/U6iSiMn #perl" --kraih http://twitter.com/kraih/status/103861879704797185
16:12 lammel just written quite the same myself
16:17 lammel ah , i just search cpan... well, what about releasing it to cpan?
16:20 sri if nothing breaks i will release 1.79 later i guess
16:20 sri tempire: you're against it?
16:20 sri or just need a few minutes to get to terms with it? :)
16:20 tempire no, I'm fine with it.
16:21 tempire yes
16:21 sri ok :)
16:21 tempire actually, what I'd really like is to be able to do "plugin BasicAuth"
16:21 tempire strings are so 2010
16:21 diegok hm... when accept_timeout() was deprecated / eliminated? My tests were all red today after last update :-)
16:21 sri ;p
16:22 sri we could do "plugin -BasicAuth;"
16:22 tempire that would be cool as well
16:22 tempire I love that - trick.
16:23 sri it's a bit much magic maybe
16:23 tempire I like it…but I don't know that it's necessary either.
16:24 sri considering not even Mojo::Base uses the -trick for classes
16:24 tempire Can you use - for strings with :: in them?
16:24 sri good question
16:24 purl Yeah, it is. I'm stumped.
16:24 sri yes
16:25 tempire yep
16:25 tempire neat
16:25 sri interesting
16:25 sri use Mojo::Base -Mojolicious;
16:25 sri hmm
16:35 sri not sure about this
16:35 sri special -base and -strict flags i'm ok with, but this seems too magical
16:44 Shaeto joined #mojo
16:45 abra joined #mojo
16:46 marcus Metacpan is using AnyEvent::HTTP inside catalyst for parallel requests
16:46 marcus Think of submiting a patch to use Mojo instead
16:47 sri marcus: what are your thoughts about snake_case vs CamelCase plugin names?
16:48 sri (and the magical not yet implemented "plugin -AuthBasic;" tempire would like to see)
16:48 marcus sri: I like the new patch to support plugin names like 'DBIC'
16:48 tempire Oh, I can finally change M::P::SslAuth to SSLAuth
16:49 marcus I actually have a Mojo app named NTBMobile, and the resulting camelcasing for that looks ugly (n_t_b_mobile)
16:50 sri plugin -DBIC; yay or nay?
16:52 tempire that would be additional, right?  not replacing?
16:52 sri of course
16:52 tempire then yay
16:52 sri but would you use it?
16:52 tempire yes
16:53 sri marcus: ?
16:53 marty__ joined #mojo
16:53 sri and other opinions?
16:53 sri yko: ?
16:53 marcus sri: I think I would still use plugin 'foo';
16:54 * sri pokes crab
16:55 sri think i'm actually against it
16:55 sri since we already have 6 or so ways to load a plugin
16:57 sri plugin 'foo_bar'; plugin 'FooBar'; plugin 'MyApp::Plugin::FooBar'; plugin foo_bar => {}; plugin FooBar => {}...
16:57 tempire I think you're probably right
16:57 Shaeto have a question about sessions, in my project i need > 4k session data so i want to create CGI::Session object and store session id to default mojo secured session, can someone suggest better way ?
16:58 tempire yes, don't use sessions to store data
16:58 marcus my suggestion too
16:58 sri mine too :)
16:58 marcus store the data in the model and reference it.
16:59 Shaeto okay understand, will use serialization and model, thanks
16:59 nordicdyno joined #mojo
17:00 xaka n_t_b_mobile, hoho :) i was feeling the same for controllers, when i had the names like NTBMobile
17:14 Shaeto what about good place to flush session data to disk/database - mb app::after_dispatch ?
17:17 nordicdy_ joined #mojo
17:21 sri marcus: btw. are you using the perl oneliner to enable trim support in lion for your vertex 2?
17:23 sri sucks a bit that they disable it for all non apple ssds
17:26 Shaeto or may be better to inherit Mojolicious::Sessions and override store/load
17:27 sri Shaeto: when we said storing data in model we actually meant it
17:28 sri not just moving session data elsewhere
17:29 sri just store it like you would store any other kind of model data
17:29 sri and use the sessions for what it is meant to do, keep state
17:29 sri s/it is/they are/
17:33 Shaeto okay agree but i planned to load model::session in auth controller and bridge it to service controller, so, load and store will be in different controllers :) and if think about more long chain, "middle" model::session users will have to flush model::session before return
17:35 GitHub97 joined #mojo
17:35 GitHub97 [mojo] kraih pushed 1 new commit to master: http://bit.ly/phd5c1
17:35 GitHub97 [mojo/master] release preparation - Sebastian Riedel
17:35 GitHub97 left #mojo
17:36 Shaeto auth controller definitely needed to see real session data to check user ip, name etc etc to protect against hacking
17:39 ispy_ joined #mojo
17:40 GitHub195 joined #mojo
17:40 GitHub195 [mojo] kraih pushed 1 new commit to master: http://bit.ly/mYmp37
17:40 GitHub195 [mojo/master] updated tests - Sebastian Riedel
17:40 GitHub195 left #mojo
17:44 perlrocks Twitter: "Mojolicious 1.79 by SRI - http://t.co/XDmsgNr" (ms) --cpan_new http://twitter.com/cpan_new​/status/103884913077518336
17:45 perlrocks Twitter: "Released #mojolicious 1.79 with support for new plugin names, enjoy. http://t.co/3OU8dOE #perl" --kraih http://twitter.com/kraih/status/103885102592958466
17:46 marcus sri: I used some other software to enable it.
17:46 marcus trim enabler or whatever
17:54 metaperl left #mojo
17:55 stephan48 Shaeto: what is your data? a user object?
17:55 stephan48 just store an id of a row holding your data in the session
17:56 elb0w man sometimes my job sucks
17:56 elb0w I just got handed 600 lines of code with 1 comment in it
17:56 stephan48 cool
17:56 elb0w that says "#initilize the variables"
17:56 elb0w and got asked to fix the bug
17:56 stephan48 "fix the bug till tomorrow"?
17:57 stephan48 even better
17:57 elb0w I think the last piece of code I wrote
17:57 elb0w Had a comment every other line almost
17:57 stephan48 k
17:58 elb0w Do I not entertain you?
17:58 sri you'll get complaints for commenting too much ;p
17:58 stephan48 ye
17:58 marcus elb0w: are you coworkers really dumb or something?
17:58 elb0w No, they just like spaghetti
17:58 marcus or are you just doing really complicated things?
17:59 GabrielVieira joined #mojo
17:59 elb0w We do analytics for the stock market
17:59 elb0w so they are math guys
17:59 elb0w This 600 lines has 0 subs
17:59 marcus heads must roll
17:59 stephan48 ow
18:00 sri viking style debugging
18:01 sri that would be neat
18:01 marcus 'code like an angry viking with a big axe will be the next maintainer of your software'.
18:03 sri sadly we don't even have invented devices to poke people over the internet yet :/
18:03 elb0w yeah I guess it makes me a good debugger by now
18:03 elb0w Im the only one that really trys to follow best practices here
18:03 marcus hmm, did mst release his new LINQ thingie today?
18:03 stephan48 Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
18:08 elb0w What I write on the right, what I get asked to debug on the left. http://elbowrage.com/neato/awesome_seriously.png
18:09 elb0w lol
18:14 elb0w fmylife
18:16 marcus elb0w: eww. so ugly
18:17 sri hmm
18:17 * sri wonders with Mojolicious::Plugin::I18n is ugly now
18:18 sri same for Mojolicious::Plugin::EpRenderer and EplRenderer
18:20 sri adding Mojolicious::Plugin::I18N and deprecating the other one is not really an option
18:20 elb0w I learned how easy it is to write plugins, cant wait to write a bunch now
18:20 marcus sri: HFS+ doesnt even know the difference :)
18:21 sri exactly, that's why deprecation would be a mess
18:21 sri one would randomly survive and whatnot...
18:22 * sri wonders if anyone subclasses them
18:22 marcus package Mojolicious:Plugin::I18[Nn];
18:22 marcus ;-)
18:22 sri otherwise they could be renamed with a special case in Mojolicious::Plugins
18:23 elb0w lol
18:35 sugar joined #mojo
18:35 sherr joined #mojo
18:45 elb0w Mojolicious::Plugin::Catalyst
18:45 elb0w lol
18:48 alnewkirk lmfao
19:03 GitHub46 joined #mojo
19:03 GitHub46 [mojo] kraih pushed 2 new commits to master: http://bit.ly/qhG5p1
19:03 GitHub46 [mojo/master] removed deprecated plugins - Sebastian Riedel
19:03 GitHub46 [mojo/master] deprecated multiple plugins - Sebastian Riedel
19:03 GitHub46 left #mojo
19:03 sri damn, even renaming in git was messy on os x...
19:05 elb0w Why is it different?
19:05 elb0w sounds good
19:06 elb0w whoops
19:06 lammel2 joined #mojo
19:06 marcus funny comment on http://showmetheco.de/articles/2011/8/t​hree-perl-cloud-hosting-platforms.html
19:08 sri lol
19:12 Shaeto mb someone have suggestions about [mojolicious + apache] setup. mod_perl vs fastcgi, in short words :) i am using plain cgi now and it works pretty slow, thats fine for development
19:15 Firkin left #mojo
19:16 GitHub139 joined #mojo
19:16 GitHub139 [mojo] kraih pushed 1 new commit to master: http://bit.ly/ov48vI
19:16 GitHub139 [mojo/master] improved cookbook recipe - Sebastian Riedel
19:16 GitHub139 left #mojo
19:21 sri phew, that was some tough renaming, lets hope not too much breaks
19:21 sri i'm almost certain some people will do weird shit none of us could be expecting
19:30 perlrocks Twitter: "We are serious about prettier plugin names in #mojolicious. :) http://t.co/Zsitoqb #perl" --kraih http://twitter.com/kraih/status/103911506575495173
19:30 lammel2 wow, that was quite a lot of renaming
19:30 lammel2 but looks saner now for my tired eyes
19:32 sri just commands left with ugly module names now
19:32 sri but i guess that's allright
19:32 elb0w what did you do lol?
19:32 lammel2 One step at a time ;-)
19:37 elb0w is it wrong to release a geolocation plugin using someones geo server that they havent secured?
19:37 sri only if it was left open unintentionally
19:38 elb0w Well the domain doesnt resolve
19:38 elb0w so I dont know
19:38 elb0w maybe they are just nice?
19:38 elb0w I mean it resolves
19:38 elb0w its just blank
19:39 elb0w can I generate a plugin shell?
19:41 sri shell?
19:41 purl shell is spiral
19:41 elb0w https://gist.github.com/6cf201e11d19b56f798b
19:41 elb0w dont even know if thats worth a plugin
19:42 sri http://mojolicio.us/perldoc/Mojolici​ous/Guides/Rendering#Helper_Plugins
19:43 elb0w think geo.serving-sys.com would care?
19:46 elb0w oh yeah they are a spyware company last I looked
19:46 elb0w should probably do it to spite them
19:50 metaperl joined #mojo
19:53 elb0w is it a bad idea to do a use for Mojo::UserAgent in a plugin?
19:55 marcus sri: btw, realplayer are considering moving their catalyst stuff to mojolicious
19:55 marcus on of their german guys was at my talk
20:00 noganex_ joined #mojo
20:00 Eugene joined #mojo
20:01 elb0w sri $self is declared with my twice in that example
20:01 elb0w or am I missing something?
20:15 elb0w sri the example in docs says $app->helper( something => { my ($self,$string) = @_; ...});
20:15 elb0w shouldnt it say something => sub { }?
20:20 Akron joined #mojo
20:20 sri elb0w: ye typo
20:21 elb0w fuck yeah, better get my name credited for my awesome contribution
20:21 mhi sri: Did you see my earlier remark about two problems in the M::Lite docs?
20:22 GitHub144 joined #mojo
20:22 GitHub144 [mojo] kraih pushed 1 new commit to master: http://bit.ly/pZQVzl
20:22 GitHub144 [mojo/master] fixed typo - Sebastian Riedel
20:22 GitHub144 left #mojo
20:23 sri mhi: nope
20:23 sri elb0w: ops
20:23 sri elb0w: next time send pull request first ;p
20:23 mhi sri: At "Placeholders" and "Wildcard Placeholders" the comments don't make sense considering the code.
20:24 sri mhi: please elaborate
20:25 sri oh wait, you mean the second example?
20:25 * sri nods
20:26 mhi Yup, the comments miss the 'something' bit.
20:26 elb0w https://github.com/gtsafas​/Mojolicious--Plugin--Geo
20:26 elb0w I give you the most entailed plugin ever
20:27 mhi (And Wildcare Placeholders are correct, of course.)
20:27 xaka is it safe to use the same UserAgent instance for a different hosts?
20:28 sri elb0w: you might also want to make sure i actually have a name to credit ;p
20:28 GitHub142 joined #mojo
20:28 GitHub142 [mojo] kraih pushed 1 new commit to master: http://bit.ly/q2QWJN
20:28 GitHub142 [mojo/master] fixed another typo - Sebastian Riedel
20:28 GitHub142 left #mojo
20:29 elb0w I was kiding its cool :P
20:29 sri mhi: thanks, fixed
20:29 mhi :)
20:29 elb0w See my awesome plugin
20:29 sri well, i'm totally ok with crediting people fixing typos, they just have to send a pull request *hint hint*
20:30 elb0w haha want me to?
20:30 SmokeMachine joined #mojo
20:30 elb0w I feel like you are hinting something to me
20:30 sri i want you to find more typos and fix them :)
20:30 elb0w haha ok
20:30 * mhi notes to self: fork mojo at github.
20:30 elb0w How do I submit this awesome plugin to cpan
20:31 elb0w never done it lmao
20:31 sri instructions are in the recipe i linked earlier
20:31 elb0w oh
20:31 sri and in which you found typos ;p
20:31 elb0w Yeah I only read what is important to me at the time
20:32 Shaeto left #mojo
20:33 elb0w oh I dont have a pause acct
20:46 gabiruh sri: how about Test::Spelling for author tests?
20:48 sri is that reliable for as much documentation as we have?
20:54 gabiruh sri: dunno, but also can't see why it wouldn't be
20:54 gabiruh I was considering using it in one of my projects and just ran into this conversation here in #mojo
20:55 gabiruh tias?
20:55 purl hmmm... tias is Try It And See! or  maybe you mean tiase or turnips in a sack or 'girls' in spanish slang or don't ask if X does Y or it takes less time to just do it than write my question and wait for an answer, and burns way less karma or 'aunts' in spanish or a bar in the Boston waterfront or swahili for "I'm lazier than you are"
21:02 baton8 joined #mojo
21:08 tempire oh dear
21:08 tempire I am not inspired with confidence: https://www.fluxflex.com/
21:09 sri ouch
21:09 sri you just got 401 for the video too?
21:10 sri oh, service unavailable
21:10 tempire I guess
21:10 tempire well no
21:10 tempire actually, I got a 500
21:10 tempire didn't know it was a video
21:10 sri 503
21:10 tempire oh there we go, it's working again.
21:10 tempire well shame on them anyway
21:11 sri hmm, mojolicious into the cloud could make a fun screencast too
21:11 tempire kind of redundant :)
21:11 sri YO DAWG I HEAR YOU LIKE CLOUDS...
21:12 tempire if we were to have a mongodb odm, it would be the whole solution!
21:13 * sri hides under desk
21:54 perlrocks Twitter: "I HAS PUSH GIT DEPLOY! # # Fluxflex mojolicious cloud # # # webservice hosting http://t.co/GyCY9y0" (de) --memowe http://twitter.com/memowe/​status/103947797740535808
22:49 lammel2 left #mojo
22:56 GitHub124 joined #mojo
22:56 GitHub124 [mojo] kraih pushed 1 new commit to master: http://bit.ly/rtlGl0
22:56 GitHub124 [mojo/master] made Mojolicious::Plugins loader quite a bit smarter - Sebastian Riedel
22:56 GitHub124 left #mojo
22:57 sri lammel: and that's the clever solution :)
22:59 sri the relative version should of course win if it can
23:01 sri maybe we should also start isa checks
23:11 Kulag joined #mojo
23:40 mhi sri: I get this error while testing: http://i.imgur.com/Gt15w.png
23:42 mhi That error in UserAgent.pm confuses the tests, of course. 'nc' returns 200 for me.
23:47 xaka in which case Response's code can be undefined?
23:48 xaka for some reason "Mojo::UserAgent->new()->get(...)->res->code" is undef, hell
23:50 mhi :o
23:51 xaka where is our master Yoda when we're in a lot of troubles
23:52 elb0w__ joined #mojo
23:54 elb0w___ joined #mojo
23:54 elb0w___ left #mojo
23:56 sri doesn't tell me anything
23:56 sri if there's no response code will be undef
23:56 mhi Hm
23:57 sri wonder if we could actually default to 0 so numeric checks always work
23:58 mhi But why isn't the check returning 200 in the first place?

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