Camelia, the Perl 6 bug

IRC log for #mojo, 2013-08-31

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

All times shown according to UTC.

Time Nick Message
00:06 * sri wonders if anyone has used $c->continue yet
00:08 dsteinbrunner_ joined #mojo
00:08 perlite joined #mojo
00:08 mmp joined #mojo
00:08 ryozi_ joined #mojo
00:09 batman joined #mojo
00:09 StinkfooT joined #mojo
00:21 dvinciguerra joined #mojo
00:32 zacts ok, I'm a bit confused. how can I pass a variable containing html for get to render instead of having to use __DATA__?
00:32 zacts I'm reading the mojo doc, I'm probably missing something here.
00:33 zacts get '/' => sub { shift->render( html => $myhtml ); };
00:33 zacts something like that..
00:33 marty zacts:  when you render just use <%==   instead of <%=
00:34 marty http://mojolicio.us/perldoc/Mojolic​ious/Guides/Rendering#Embedded_Perl
00:36 zacts cool. yeah I just saw that. thanks.
00:36 Moataz-E joined #mojo
00:54 asarch joined #mojo
01:16 basic6 joined #mojo
01:18 russum left #mojo
01:48 sri oh my, i can make auto rendering work with non-blocking bridges
01:54 sri wow, that's cool
01:59 good_news_everyone joined #mojo
01:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ELnpQw
01:59 good_news_everyone mojo/master d04f636 Sebastian Riedel: fixed automatic rendering to work after non-blocking operations have been performed in bridges
01:59 good_news_everyone left #mojo
02:01 good_news_everyone joined #mojo
02:01 good_news_everyone [mojo] kraih tagged v4.29 at 0b935a2: http://git.io/OGH2mA
02:01 good_news_everyone left #mojo
02:02 sri \o/
02:20 zacts http://scsys.co.uk:8002/267119
02:21 zacts what am I doing wrong in this paste?
02:42 sawtooth zacts: put your html in the template, that's what its there for - but if you must $self->render(data => $homepage );
02:43 zacts oh simple ok. I want to use something like Template-Toolkit or Template::Simple instead of the default mojo templater.
02:44 zacts I didn't realize that you could do data => $homepage to do this
02:44 sawtooth cool - take a look at Mojolicious::Plugin::TtRenderer
02:44 zacts I for some reason thought ::lite wanted you to do this all through __DATA__
02:46 zacts cpanming it now, thanks.
02:48 sawtooth np
02:49 zacts is it difficult to write plugins for mojolicious?
02:49 sawtooth nope - mojo generate plugin
02:50 zacts oh cool
02:51 sawtooth obviously there is more too it :) but that will generate the directory / app structure
02:51 zacts neat
03:35 preflex_ joined #mojo
04:22 dqw joined #mojo
05:07 russum joined #mojo
05:58 russum left #mojo
06:27 d4rkie joined #mojo
06:27 d4rkie joined #mojo
06:27 d4rkie joined #mojo
06:29 russum joined #mojo
06:53 russum joined #mojo
06:58 sh4 joined #mojo
07:07 Vandal joined #mojo
07:10 ladnaV joined #mojo
07:12 dod joined #mojo
07:14 Vandal joined #mojo
07:17 russum joined #mojo
07:20 ladnaV joined #mojo
07:23 arpadszasz joined #mojo
07:29 dod joined #mojo
07:31 arthas joined #mojo
07:34 dod joined #mojo
07:40 basiliscos joined #mojo
08:01 denis_boyun joined #mojo
08:04 russum joined #mojo
08:11 mire joined #mojo
08:11 tempire I'm using one of the first revisions of non-blocking bridges.
08:11 tempire using a custom patch.
08:11 tempire haven't moved it to ->continue yet.
08:20 denis_boyun joined #mojo
08:55 mibob joined #mojo
08:56 mibob Mojolicious::Guides::Growing  says "make signed cookies secure " what does that mean, encrypted?
09:06 batman mibob: no. app->secret("something that is not default");
09:06 batman signed cookie means that the cookie value can't be changed on client side
09:07 batman everyone can read it, but only the server can write it.
09:07 marcus tempire: Norwegians don't carry for self-defence, we have weapons for hunting, sports, and because of how our military system works.
09:07 batman they way that happens is that the cookie is signed with a secret
09:08 marcus tempire: Even our police is not armed by default.
09:08 marcus good morning, batman.
09:08 batman mibob: so i can change it on the client side if i know the secret
09:08 batman hi marcus
09:08 batman s/good //
09:10 mibob thanks
09:13 arpadszasz joined #mojo
09:55 HtbaaPi when using spurt and slurp from Mojo::Util how can I set it to use utf8?
09:59 HtbaaPi I've tried it with use open IO => ':utf8', OUT => ':utf8', IN => ':utf8';
09:59 HtbaaPi but that doesn't seem to make any difference
10:03 hummeleBop joined #mojo
10:34 _mkrull left #mojo
10:37 batman HtbaaPi: have you tried making the content utf8 before spurting it?
10:38 batman like spurt(encode('UTF-8', $content), $file);
10:39 batman i think it should do the right thing, since it's using syswrite...
10:40 batman https://metacpan.org/module​/Dancer::Plugin::IRCNotice <-- i was thinking about making a mojo plugin using Mojo::IRC, since it think that plugin for dancer is...bad...
10:40 batman not sure if i should do anything "just because i can" :P
10:44 dod joined #mojo
10:47 jamesw heh, 'event based monstrosities', clearly has seen PoCo-IRC and hankers after  the great days of Net-IRC
10:49 BinGOs hilariously Net::IRC is an 'event based monstrosity' too.
11:05 Vandal joined #mojo
11:10 batman BinGOs: :)
11:11 HtbaaPi batman: thanks that seemed to do the trick!
11:11 batman HtbaaPi: you're welcome :)
11:31 rem_lex|pivo joined #mojo
11:32 denisboyun joined #mojo
12:25 heytrav joined #mojo
12:28 marty https://gist.github.com/kraih/3927875   sri++
12:36 dqw joined #mojo
12:48 jamesw joined #mojo
13:10 dsteinbrunner joined #mojo
13:26 duncanthrax joined #mojo
13:29 sri tempire: then you're already two versions behind! :o
13:31 * sri is very happy that auto rendering behind a non-blocking bridge works now
13:38 dotandimet joined #mojo
14:01 mire joined #mojo
14:05 good_news_everyone joined #mojo
14:05 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/RxyV-g
14:05 good_news_everyone mojo/master ba7830b Sebastian Riedel: more logging tests
14:05 good_news_everyone left #mojo
14:07 howitdo joined #mojo
14:28 good_news_everyone joined #mojo
14:28 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/10zAQw
14:28 good_news_everyone mojo/master fee38fb Sebastian Riedel: even more logging tests
14:28 good_news_everyone left #mojo
14:32 mars joined #mojo
14:33 marcus_ joined #mojo
14:38 marcus_ joined #mojo
14:39 mars joined #mojo
14:56 wsri joined #mojo
14:56 marcus joined #mojo
14:57 batman joined #mojo
15:01 wsri joined #mojo
15:01 marcus joined #mojo
15:01 batman joined #mojo
15:02 bowtie_ joined #mojo
15:07 asarch joined #mojo
15:12 wsri joined #mojo
15:12 marcus joined #mojo
15:12 batman joined #mojo
15:23 Adurah joined #mojo
15:23 rem_lex| joined #mojo
15:24 wsri joined #mojo
15:24 marcus joined #mojo
15:24 batman joined #mojo
15:24 aleksey_ joined #mojo
15:25 ilbot2 joined #mojo
15:25 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
15:28 memowe joined #mojo
15:34 denisboyun joined #mojo
15:53 good_news_everyone joined #mojo
15:53 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/mQ-kyg
15:53 good_news_everyone mojo/master 1cea44e Sebastian Riedel: test forbidden action
15:53 good_news_everyone left #mojo
16:00 arpadszasz joined #mojo
16:19 Adura joined #mojo
16:40 arpadszasz joined #mojo
16:48 mire joined #mojo
16:51 sh4|2 joined #mojo
16:53 btyler joined #mojo
17:40 russum joined #mojo
17:40 russum left #mojo
17:53 Moataz-E joined #mojo
18:05 btyler joined #mojo
18:44 btyler joined #mojo
19:00 good_news_everyone joined #mojo
19:00 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/s2Fy7w
19:00 good_news_everyone mojo/master da2b5ff Sebastian Riedel: another round of logging tests
19:00 good_news_everyone left #mojo
19:00 sri phew, almost all covered
19:02 Adura joined #mojo
19:17 ilbot2 joined #mojo
19:17 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
19:17 Ralesk joined #mojo
19:17 dsteinbrunner_ joined #mojo
19:17 marty_ joined #mojo
19:17 rem_lex|pivo joined #mojo
19:17 btyler_ joined #mojo
19:17 Adurah joined #mojo
19:17 Gedge_ joined #mojo
19:17 perlite_ joined #mojo
19:17 Lurchent1after joined #mojo
19:17 rafl_ joined #mojo
19:17 graf joined #mojo
19:17 basic6_ joined #mojo
19:17 stokachu_ joined #mojo
19:17 preflex_ joined #mojo
19:17 sjn_ joined #mojo
19:17 TitanOfO1d joined #mojo
19:17 ec2-user_ joined #mojo
19:17 stephanj joined #mojo
19:17 drift_ joined #mojo
19:17 jzawodn_ joined #mojo
19:17 sawtooth_ joined #mojo
19:17 Zx3_ joined #mojo
19:17 Mikey_ joined #mojo
19:17 depesz joined #mojo
19:17 go|dfish joined #mojo
19:17 priodev joined #mojo
19:18 daemon1c joined #mojo
19:18 firnsy joined #mojo
19:18 yko joined #mojo
19:18 DaTa joined #mojo
19:18 human39_ joined #mojo
19:18 batman joined #mojo
19:18 bowtie_ joined #mojo
19:19 arpadszasz joined #mojo
19:19 tokuhirom joined #mojo
19:20 ryozi joined #mojo
19:20 kmx joined #mojo
19:20 basiliscos joined #mojo
19:21 btyler joined #mojo
19:21 rem_lex| joined #mojo
19:21 mfontani joined #mojo
19:21 xtetsuji joined #mojo
19:21 tardisx joined #mojo
19:21 tianon joined #mojo
19:21 Mikey_ joined #mojo
19:21 Zx3_ joined #mojo
19:21 drift_ joined #mojo
19:21 ec2-user_ joined #mojo
19:21 TitanOfO1d joined #mojo
19:21 preflex joined #mojo
19:21 basic6_ joined #mojo
19:21 graf joined #mojo
19:21 rafl joined #mojo
19:21 Lurchent1after joined #mojo
19:21 marcus joined #mojo
19:21 mikegrb joined #mojo
19:21 zacts joined #mojo
19:21 chansen joined #mojo
19:21 BinGOs joined #mojo
19:21 d^_^b joined #mojo
19:21 keedi joined #mojo
19:21 al joined #mojo
19:21 dotan joined #mojo
19:21 phips_ joined #mojo
19:21 Phil21_ joined #mojo
19:21 bd_ joined #mojo
19:21 sivoais joined #mojo
19:21 espent joined #mojo
19:21 allison_ joined #mojo
19:21 Foxcool_ joined #mojo
19:21 Bender joined #mojo
19:21 inokenty joined #mojo
19:21 LordVorp joined #mojo
19:21 tl joined #mojo
19:21 alnewkirk joined #mojo
19:21 charsbar___ joined #mojo
19:21 garu joined #mojo
19:21 stan_theman joined #mojo
19:21 alzeih joined #mojo
19:21 bjoernfan joined #mojo
19:21 andrefs joined #mojo
19:21 mtths joined #mojo
19:21 avenj joined #mojo
19:21 espen joined #mojo
19:21 bc547 joined #mojo
19:21 caeles joined #mojo
19:21 hummeleBop joined #mojo
19:21 Gedge joined #mojo
19:22 duncanthrax joined #mojo
19:22 memowe_ joined #mojo
19:22 aleksey_ joined #mojo
19:23 dsteinbrunner_ joined #mojo
19:23 perlite_ joined #mojo
19:23 basic6_ joined #mojo
19:23 moritz joined #mojo
19:23 tl joined #mojo
19:23 ruz joined #mojo
19:23 dsteinbrunner joined #mojo
19:24 jason2 joined #mojo
19:25 HtbaaPi_ joined #mojo
19:25 drift joined #mojo
19:25 bjoernfna joined #mojo
19:25 sjn joined #mojo
19:25 dvinciguerra_ joined #mojo
19:25 bd joined #mojo
19:25 allison joined #mojo
19:26 perlite joined #mojo
19:26 dsteinbrunner_ joined #mojo
19:26 __mkrull joined #mojo
19:26 nicomen joined #mojo
19:26 BinGOs joined #mojo
19:26 Lurchentsafter joined #mojo
19:27 TitanOfOld joined #mojo
19:27 mikegrb joined #mojo
19:27 charsbar___ joined #mojo
19:27 bc547 joined #mojo
19:27 keedi joined #mojo
19:27 preflex joined #mojo
19:30 garu joined #mojo
19:36 perlite joined #mojo
19:36 gautier joined #mojo
19:36 alnewkirk joined #mojo
19:36 ec2-user joined #mojo
19:36 duncanthrax2 joined #mojo
19:36 rem_lex|pivo joined #mojo
19:36 bc547_ joined #mojo
19:37 plu_ joined #mojo
19:45 ilbot2 joined #mojo
19:45 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
19:45 Foxcool joined #mojo
19:45 dabudabu joined #mojo
19:45 preflex joined #mojo
19:45 mfontani joined #mojo
19:45 Kundun joined #mojo
19:45 Zx3 joined #mojo
19:45 Mad_Dud joined #mojo
19:45 rem_lex joined #mojo
19:45 bowtie_ joined #mojo
19:45 dr joined #mojo
19:45 tempire joined #mojo
19:45 ec2-user joined #mojo
19:45 garu joined #mojo
19:45 firnsy joined #mojo
19:45 Phil21 joined #mojo
19:45 gautier joined #mojo
19:45 TitanOfOld joined #mojo
19:45 ruz joined #mojo
19:45 xtetsuji joined #mojo
19:45 tardisx joined #mojo
19:45 chansen joined #mojo
19:45 dotan joined #mojo
19:45 sivoais joined #mojo
19:45 espent joined #mojo
19:45 inokenty joined #mojo
19:45 stan_theman joined #mojo
19:45 alzeih joined #mojo
19:45 andrefs joined #mojo
19:45 mtths joined #mojo
19:45 avenj joined #mojo
19:45 espen joined #mojo
19:45 depesz joined #mojo
19:45 stephanj joined #mojo
19:45 bowtie joined #mojo
19:45 perlite joined #mojo
19:45 caeles joined #mojo
19:45 mikegrb joined #mojo
19:45 tianon joined #mojo
19:45 allison joined #mojo
19:45 basic6_ joined #mojo
19:45 ralesk_ joined #mojo
19:45 tokuhirom joined #mojo
19:45 duncanthrax2 joined #mojo
19:45 Lurchentsafter joined #mojo
19:45 nicomen joined #mojo
19:45 __mkrull joined #mojo
19:45 memowe_ joined #mojo
19:45 yko joined #mojo
19:45 sawtooth_ joined #mojo
19:45 Adurah joined #mojo
19:45 marty_ joined #mojo
19:45 d4rkie joined #mojo
19:45 bzero joined #mojo
19:45 hlin_ joined #mojo
19:45 jmmills joined #mojo
19:45 cosimo joined #mojo
19:45 knight joined #mojo
19:45 bayashi joined #mojo
19:45 nic joined #mojo
19:45 phips joined #mojo
19:46 Bender joined #mojo
19:46 bd joined #mojo
19:46 dvinciguerra_ joined #mojo
19:46 dec_ joined #mojo
19:46 jzawodn joined #mojo
19:46 cooper joined #mojo
19:46 keedi joined #mojo
19:46 drift joined #mojo
19:46 bobkare joined #mojo
19:46 dqw joined #mojo
19:46 plu joined #mojo
19:46 go|dfish joined #mojo
19:46 zacts joined #mojo
19:46 Kovensky joined #mojo
19:46 ZadYree joined #mojo
19:46 tl joined #mojo
19:46 _sri joined #mojo
19:46 augensalat joined #mojo
19:46 Andreas joined #mojo
19:46 ryozi_ joined #mojo
19:46 hummeleBop joined #mojo
19:46 aleksey joined #mojo
19:46 Gedge joined #mojo
19:46 stokachu joined #mojo
19:46 howitdo joined #mojo
19:46 heytrav joined #mojo
19:46 mmp joined #mojo
19:46 salparadise joined #mojo
19:46 doby joined #mojo
19:46 robins joined #mojo
19:46 dwiereng1 joined #mojo
19:46 jnbek joined #mojo
19:46 migo joined #mojo
19:46 KindOne joined #mojo
19:46 Dandre joined #mojo
19:46 ab joined #mojo
19:46 jwang joined #mojo
19:46 omega joined #mojo
19:46 cstamas joined #mojo
19:46 yakudza joined #mojo
19:46 d^_^b joined #mojo
19:46 Mikey joined #mojo
19:46 sawtooth joined #mojo
19:46 sjn joined #mojo
19:47 bjoernfan joined #mojo
19:48 bc547 joined #mojo
19:50 dsteinbrunner_ joined #mojo
19:51 wsri joined #mojo
20:05 d4rkie joined #mojo
20:05 d4rkie joined #mojo
20:21 good_news_everyone joined #mojo
20:21 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/s9Kf7A
20:21 good_news_everyone mojo/master a6c016c Sebastian Riedel: test Hypnotoad log
20:21 good_news_everyone left #mojo
20:37 asarch joined #mojo
20:45 StinkfooT joined #mojo
20:46 btyler joined #mojo
20:50 dotandimet joined #mojo
21:29 btyler joined #mojo
21:39 russum joined #mojo
21:46 russum left #mojo
21:47 punter joined #mojo
21:57 Moataz-E joined #mojo
22:28 * _sri wonders if maybe Test::Mojo should keep a cache of the last few log messages from the application
22:29 sri i see diegok has taken over :o
22:29 diegok sri: omg!
22:29 sri orz
22:30 sri Bender: spread the love
22:30 sri Bender: trust marty_
22:30 Bender OK, sri
22:30 sri Bender: trust memowe_
22:30 Bender OK, sri
22:32 sri hmmm
22:32 sri perhaps $t->log_like(qr/lalala/)
22:34 sri on the other hand... how often do you really want to test log messages
22:38 punter I'm trying to make a trick where if the user is online, he receives certain updates directly on his webbrowser, but if he's offline those updates get stored in a database table... and it's really tough
22:38 punter Has anyone made something similar?
22:39 punter The hard part is figuring out in a reliable way whether the user is online or not
22:40 sri websockets are good for that
22:40 punter Yes
22:40 punter I started by using those
22:43 punter One (set of) server processes accept websocket connections from the user. Those can inform the database that the user is online. What happens though if that process crashes, or for any reason goes offline. The database should somehow know that the user is really offline
22:43 punter I'm working on that.
22:44 punter while keeping an open mind that I might have taken the wrong direction
22:48 punter Maybe the websocket server should maintain an open websocket connection to an ordinary web server, and have THAT server mark all users offline if the websocket server crashes (or for whatever reason the inter-server connection closes). Enough, I won't bother you anymore with this.
22:58 punter Even better: the browser will send a receipt back to the websocket server for every ws message it receives, and the server will then remove that message from the user's pending queue.
22:58 punter The last is the perfect solution.
23:00 basiliscos joined #mojo

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