Camelia, the Perl 6 bug

IRC log for #mojo, 2013-06-26

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

All times shown according to UTC.

Time Nick Message
00:03 Gedge joined #mojo
00:11 marty \o/ the new version of PerlTidy for ST2 does not reset the cursor.
00:39 human39 joined #mojo
00:41 btyler joined #mojo
00:47 shmuel joined #mojo
00:58 asarch joined #mojo
01:09 whitebook joined #mojo
01:10 cooper joined #mojo
01:12 jberger o/
01:22 hesperaux_ joined #mojo
01:23 sri \o
01:24 sri marty: all the time or still just sometimes?
01:25 sri last i tried it was still jumping around when you did perltidy, undo, undo, redo, perltidy and the like...
01:25 marty So far all the time.  I've been using it for most of today.  Also, a new github repository for it.  https://github.com/vifo/SublimePerlTidy
01:25 * sri is happy with TM2 now anyway
01:27 sri marty: does utf8 work now too?
01:27 marty I like TM2 also but I have grown to love the little file preview screen next to the scrollbar.  I don't think I can live without it now.  :)
01:27 marty Have not tried utf8 yet.  I
01:27 marty I'll give it a try
01:28 sri haha, i could never get used to the preview
01:28 btyler joined #mojo
01:46 russum joined #mojo
01:46 russum1 joined #mojo
01:54 tba joined #mojo
01:57 Meiermann joined #mojo
01:59 d4rkie joined #mojo
02:06 KindOne joined #mojo
02:10 whitebook joined #mojo
02:32 russum1 left #mojo
02:50 D4RK-PH0ENiX joined #mojo
02:58 d4rkie joined #mojo
03:03 whitebook joined #mojo
03:25 D4RK-PH0ENiX joined #mojo
03:29 preflex_ joined #mojo
03:30 whitebook joined #mojo
03:57 good_news_everyone joined #mojo
03:57 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/LCcCSw
03:57 good_news_everyone mojo/master 88c3814 Sebastian Riedel: more consistent heredocs
03:57 good_news_everyone left #mojo
04:13 hesperaux__ joined #mojo
04:27 Psyche^ joined #mojo
04:51 yakudza joined #mojo
05:27 buu joined #mojo
05:29 Britzel_ joined #mojo
05:43 rem_lex|pivo joined #mojo
05:50 Britzel joined #mojo
05:54 Jonis what do you recommend for validating parameters?
06:09 * salparadise uses Validator::Custom
06:09 salparadise Jonis: ^^
06:10 dpetrov_ joined #mojo
06:18 Jonis thanks :)
06:28 rem_lex| joined #mojo
06:31 Mike-PerlRecruiter_ joined #mojo
07:06 trone joined #mojo
07:07 keedi joined #mojo
07:11 Andreas joined #mojo
07:11 dod joined #mojo
07:23 Vandal joined #mojo
07:23 yakudza joined #mojo
07:25 jamesaxl joined #mojo
07:37 dod joined #mojo
07:45 denisboyun_ joined #mojo
07:45 fhelmber_ joined #mojo
07:54 Dandre joined #mojo
07:57 mire joined #mojo
08:07 abstract_ joined #mojo
08:08 cosimo joined #mojo
08:09 cosimo joined #mojo
08:10 cosimo joined #mojo
08:11 cosimo joined #mojo
08:12 cosimo joined #mojo
08:14 cosimo joined #mojo
08:16 maxhq joined #mojo
08:19 jzawodn joined #mojo
08:20 cosimo joined #mojo
08:26 jamesaxl_ joined #mojo
08:39 yakudza joined #mojo
08:45 d4rkie joined #mojo
08:51 alnewkirk joined #mojo
08:55 arthas joined #mojo
09:00 abra joined #mojo
09:00 batman joined #mojo
09:00 marcus_ joined #mojo
09:55 maxhq joined #mojo
10:02 Jonis can I use a flash value twice at the same time or is it completely gone when used the first time?
10:03 Jonis like in my $foo { orderid => $self->flash('orderid'), s_orderid => $self->flash('orderid') };
10:06 nic you don't pull stuff out of flash
10:06 nic you stuff stuff _into_ flash
10:06 nic next time that cookie hits the site, the flash hash is pulled into the stash hash
10:07 nic [I know we have screencasts and all, but don't we need a song or two?]
10:07 Jonis aha, so I've been doing it severely wrong then, but it works at the moment :P
10:08 nic my favourite example is putting into the stash(msg => 'Your credentials are screwed') and then redirecting them to login
10:09 nic while the template always checks if there's a msg in stash
10:09 nic my favourite example is putting into the flash(msg => 'Your credentials are screwed') and then redirecting them to login
10:09 nic darn it
10:13 jamesaxl joined #mojo
10:17 jamesaxl_ joined #mojo
10:19 Jonis nic: so if using $self->flash('value') isn't the correct way of passing more info through, what other options are there?
10:21 Jonis sorry if that's a stupid question btw, I seem to be very good at those this week
10:22 nic tempire says there are no stupid questions on #mojo
10:22 Jonis excellent
10:23 nic If I can attempt to put the right words down...
10:23 nic $self->stash(key => value) is for adding info you'll use during this response cycle (hit)
10:23 nic $self->flash(key => value) is for adding info you'll use during the next response cycle (hit)
10:24 Jonis and session lasts until the cookie expires I've gathered.
10:24 nic $value = $self->stash(key) is for getting info available during this response cycle (hit)
10:24 nic yes
10:25 nic flash is a cunning way of passing values to future stash (but relies on the cookie being written, which has caught me out a few times)
10:26 nic now, getting stuff out of stash you can do as many times as you like (but they'll be gone after a redirect or any subsequent hit)
10:28 Jonis ok, think I've got it :) thanks.
10:28 nic np
10:43 maxhq1 joined #mojo
10:45 whitebook joined #mojo
10:45 nikita_ how do i organize ipc between mojolicious and helper process forked from plugin?
11:16 libsysguy joined #mojo
11:39 abra_ joined #mojo
11:53 yakudza joined #mojo
12:06 preflex joined #mojo
12:11 cosmincx joined #mojo
12:21 mire joined #mojo
13:06 root joined #mojo
13:07 John72 How can I store per connection data in mojo, I want to store data for the life of the worker process, stash does not work
13:09 John72 my data is different for each worker process
13:10 John72 are there any hooks into the spawn process when using hypnotoad?
13:26 whitebook joined #mojo
13:31 bluescreen joined #mojo
13:34 btyler joined #mojo
13:39 r0b3rt joined #mojo
13:40 Jonis can anyone remind me how to use dumper to dump flash in a template again? Brain seems to be fried.
13:45 John72 Dumper($self->stash);
13:50 r0b3rt http://mojolicio.us/perldoc/Mojoli​cious/Plugin/DefaultHelpers#dumper
13:55 libsysguy has anybody played with socket.io and mojo?
13:55 libsysguy I am wondering how to deal with the handshake
14:07 mire joined #mojo
14:10 marty Jonis:  There is a helper you can use in templates to dump data structures.    %= dumper $something
14:23 dotan joined #mojo
14:32 d4rkie joined #mojo
14:39 gryphon joined #mojo
14:58 bpmedley_ joined #mojo
15:10 mire joined #mojo
15:20 bpmedley nikita_: perldoc Mojo::IOLoop::Stream  <-- note the timeout
15:22 whitebook joined #mojo
15:27 bluescreen joined #mojo
15:28 jamesaxl joined #mojo
15:39 inokenty joined #mojo
15:40 libsysguy anybody know if its ideal to use Protocol::SocketIO with mojo websockets?
15:42 gryphon_ joined #mojo
15:45 gryphon_ joined #mojo
15:50 basiliscos joined #mojo
15:58 rem_lex| joined #mojo
16:03 rem_lex| joined #mojo
16:25 asarch joined #mojo
16:35 dotan joined #mojo
16:37 basiliscos1 joined #mojo
16:50 marty has anyone  seen this...   GET "/mojo/jquery/jquery-2.0.2.min.map"   in their log files?
16:50 marty Seems it only occurs when I get a 404 not found
16:54 marty it also appears that cookies are not sent when that request happens.  weird
16:55 marty gotta be a jqeury thing.  researching...
17:09 gryphon joined #mojo
17:10 rem_lex| joined #mojo
17:20 tianon joined #mojo
17:28 jamesaxl joined #mojo
17:31 buu joined #mojo
17:49 buu joined #mojo
18:03 marty Ahhh, it's a google chrome thing when you have the debugger open.   Jquery source maps
18:20 yakudza joined #mojo
18:23 bodgeex joined #mojo
18:35 mire joined #mojo
18:45 buu joined #mojo
18:53 sri oh wow, Regexp::Grammars is dead
18:53 sri https://metacpan.org/source/DCONWAY/Regexp​-Grammars-1.030/lib/Regexp/Grammars.pm#L16
19:00 PerlJam sri: you have an odd idea of "dead"  :)
19:01 sri "We deeply regret that Regexp::Grammars can no longer be maintained..."
19:03 PerlJam sri: aren't you on #p5p?  rjbs is on it.  He's trying to contact damian and rectify the problem.
19:07 dod joined #mojo
19:27 abstract joined #mojo
19:37 bek joined #mojo
19:39 Kulag joined #mojo
19:48 Kulag joined #mojo
19:53 gtodd joined #mojo
20:04 whitebook joined #mojo
20:05 Kulag joined #mojo
20:07 sri https://github.com/stevan/p5-mop-redux # :o
20:08 whitebook joined #mojo
20:11 Ralesk sweet :)
20:12 whitebook1 joined #mojo
20:14 bek Has anyone seen with mojolicious, that with apache, it still tries to read from "/", despite the fact that location isn't called.  (mojo code is set to run under /mojo for instance)..  Using mod_perl2 and Plack..  Code itself works fine, it's just dumping annoying messages into the error log when /somethingelse is called...
20:15 ghandi joined #mojo
20:15 ghandi Hi There! I've been playing around with the Mojo WebSocket Chat-Example from https://github.com/kraih/mojo/wiki/Writi​ng-websocket-chat-using-Mojolicious-Lite
20:15 ghandi And now i'm wondering: Do i realy need to keep track of the clients myself in %clients? Wouldn't it be cooler to just use a custom event that i emit on a new incoming message?
20:16 gtodd hmm
20:17 gtodd define "cooler" :-)
20:17 gtodd Anyway maybe you could answer questions about Mojo on Stackoverflow and become famous :)
20:17 gtodd there's one up there about websockets ...
20:17 gtodd for me cooler would be "faster"
20:18 ghandi cooler like more slick 'n sexy. Like let the Event-System take care of the Client-Management since it already knows about the connections
20:18 gtodd POE could be sexy but Mojo-POE I don't know
20:20 sri ghandi: no, in fact, that example is not very good to begin with
20:20 sri doesn't scale past one process
20:20 gtodd ghandi: what you just described seems too easy or obvious
20:21 gtodd oops hehe  I agree with sri
20:21 sri it's a minimal example, anything serious needs a backend like redis pub/sub
20:21 gtodd ghandi: btw. I meant too obvious or easy because it makes sense to me and I am usually wrong :-)
20:22 ghandi so in my case: I'm thinking about some live-intaraction page, where multiple people whatch the page while a single person sends in some updates. For this i need a dedicated "collaboration"-Server to which mojo talks?
20:26 btyler like sri said, redis with pub/sub is precisely that 'middle person' that multiple mojo processes can talk to
20:27 ghandi But don't i loose then the event-driven part of the Websockets? The client then has to poll the app which then will lookup on redis?
20:28 sri i think Mojo::Redis is actually battle tested now with wirc using pub/sub too
20:30 sri batman: Mojo::JSON uses render_json in the example
20:30 Drossel joined #mojo
20:31 bek ghandi: /quit
20:33 ghandi sri: Mojo::Redis looks interesting. So just to get something right: The Mojo-Event-System is Process-Based, right? Which means: Client A on $PID 1 can't talk to Client B on $PID 2?
20:34 sri that's how everything in perl works
20:35 ghandi Ok, thanks ;)
20:39 Kulag joined #mojo
20:48 rem_lex|pivo joined #mojo
21:09 bluescreen joined #mojo
21:10 jamesaxl joined #mojo
21:20 jnbek joined #mojo
21:25 maxhq joined #mojo
21:27 lukep joined #mojo
21:27 abstract joined #mojo
21:38 maxhq1 joined #mojo
21:43 marcus_ sri: Yeah, we use pub/sub heavily.
21:43 marcus_ sri: there is a problem tho - https://github.com/marcusra​mberg/mojo-redis/issues/17 :p
21:44 marcus_ ref counting \o/
21:44 sri \o/
21:45 marcus_ sri: fixed the synopis to use render(json=>
21:45 sri we keep complaining about ref counting... but we should also praise perl for not requiring garbage collection pauses
21:46 sri those can really suck in some other languages
21:46 marcus_ sri: just wish we could get ARC like in obj-c :)
21:46 sri *cough* ruby *cough*
21:46 marcus_ sri: I thought they have a much better algo in recent rubies
21:47 marcus_ at least that's what judofyr keeps telling me.
21:47 sri they keep changing it
21:47 sri i think 2.1 will have yet another new one
21:47 marcus_ :)
21:48 marcus_ I still like pointing to http://www.jwz.org/doc/gc.html tho
21:49 marcus_ nothing like a classic jwz rant
21:49 sri fun thing, i've recently seen go benchmarking tools getting reected because gc pauses made results unreliable
21:49 sri *rejected
21:50 sri jwz++
21:50 libsysguy joined #mojo
21:55 rem_lex| joined #mojo
22:00 denisboyun_ joined #mojo
22:15 tl joined #mojo
22:17 gryphon joined #mojo
22:19 priodev joined #mojo

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