Camelia, the Perl 6 bug

IRC log for #mojo, 2013-08-23

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

All times shown according to UTC.

Time Nick Message
00:00 marty Moataz-E:  what version do you get with  "perl -v"
00:00 Moataz-E marty: i get version 5.18
00:01 Moataz-E marty: 5.18.1
00:01 Moataz-E marty: but i decided to use a port other than 80 and just redirect port 80 packets to my chosen port instead
00:01 Moataz-E marty: this only happens when i sudo hypnotoad
00:05 marty So it runs ok if you don't sudo?
00:08 Moataz-E marty: yeh
00:11 marty Ahhh.  Well then it is most certainly environment related.   Sounds like a different perl is being used when you sudo (I'm not that familiar with sudo)
00:44 Moataz-E marty: yeh i think that is the case too. Sadly, the only solution is to install perlbrew on root user, which i am trying to avoid
00:51 Moataz-E guys is it possible if someone using nginx posts their conf files?
00:52 Moataz-E i can't tell from the documentation page what values we should replace
00:55 shmuel joined #mojo
01:07 basic6 joined #mojo
01:08 StinkfooT joined #mojo
01:16 basic6_ joined #mojo
01:23 bluescreen joined #mojo
01:26 egopro joined #mojo
01:54 hotsnow joined #mojo
01:56 Meiermann joined #mojo
01:58 MeierM joined #mojo
02:02 d4rkie joined #mojo
02:12 asarch joined #mojo
02:18 rem_lex|pivo joined #mojo
02:51 egopro joined #mojo
03:21 preflex_ joined #mojo
04:18 dotandimet joined #mojo
04:24 egopro joined #mojo
04:30 dqw joined #mojo
04:43 egopro_ joined #mojo
04:44 sh4 joined #mojo
04:57 Meiermann joined #mojo
05:01 hummeleBop joined #mojo
06:02 denisboyun joined #mojo
06:18 denis_boyun__ joined #mojo
06:20 dpetrov_ joined #mojo
06:33 hotsnow joined #mojo
06:53 Vandal joined #mojo
07:03 laouji joined #mojo
07:36 KindTwo joined #mojo
07:57 d4rkie joined #mojo
08:13 KindTwo joined #mojo
08:17 maxhq joined #mojo
08:22 fhelmber_ joined #mojo
08:43 basiliscos joined #mojo
08:49 nicolaas joined #mojo
09:06 ladnaV joined #mojo
09:09 arthas joined #mojo
09:22 maxhq joined #mojo
09:23 jamesw joined #mojo
09:51 yakudza its very strange have different syntax for routes restrictions: ->route('/:id', id => qr/\d+/) and for ->get('/:id', [id => qr/\d+/])
09:52 hotsnow joined #mojo
09:54 KindTwo joined #mojo
09:57 KindOne joined #mojo
10:03 basiliscos joined #mojo
10:12 maxhq joined #mojo
10:37 dsteinbrunner joined #mojo
10:40 fhelmbe__ joined #mojo
10:41 dqw joined #mojo
10:58 KindTwo joined #mojo
11:29 asarch joined #mojo
11:43 sixBB joined #mojo
12:03 mire_ joined #mojo
12:05 sri yakudza: you could say the same about every ->get() argument...
12:07 sri but that doesn't change the fact that we can't break it even if we wanted
12:18 denisboyun joined #mojo
12:23 drFlox joined #mojo
12:31 KindTwo joined #mojo
12:32 stokachu should i use something like Storable for persisent data storage between controller actions? i'd rather than use the cookies for some cached data returned from a db query
13:16 gryphon joined #mojo
13:16 sh4 joined #mojo
13:28 bluescreen joined #mojo
13:50 dvinciguerra joined #mojo
13:55 fhelmber_ joined #mojo
14:05 basiliscos joined #mojo
14:08 basiliscos joined #mojo
14:16 spacebat left #mojo
14:24 maxhq joined #mojo
14:24 ryozi joined #mojo
14:32 nic batman: In the Mojo::Redis SYNOPSIS... s/$res->[0]/$res/
14:34 * batman is looking at the SYNOPSIS
14:34 denisboyun joined #mojo
14:36 batman nic: right... not sure when i'm going to release a new version with -that- fix
14:36 batman what i want is to stop reporting timeout as error.....
14:36 nic imo it's not at all urgent
14:37 batman a patched version is on github, but i'm not making a new release for that :)
14:37 nic I've been waiting months to get to use it, but right now I've only got 80 mins :(
14:37 batman hehe
14:37 * sri thinks timeout can be an error
14:37 batman sri: right... so did i, but... it's super annoying :(
14:38 batman haven't decided how to fix it yet
14:38 sri mango sets the timeout to 0 btw.
14:38 batman hm... maybe i should change the default timeout instead
14:39 batman marcus: what do you think?
14:39 sri i don't think timoeuts are of much value when talking to a database
14:40 batman i don't think timeouts are much value when you want to be persistent :/
14:41 sri with http timeouts are most valuable for the keep alive queue
14:41 sri or rather the inactivity_timeout
14:42 sri i just don't use it at all for mango
14:43 nic imo the server should determine inactive timeouts and the client should determine active timeouts
14:44 nic but it's usually best if the server only cares when it reaches a threshold number of connections
14:44 batman nic: nice rule
14:44 sri batman: you might want to take a look at the Mango connection management though, i think Mojo::IRC still has a few weaknesses
14:45 batman can you point me in the right direction?
14:45 sri nic: http is different, you have to assume server can be malicious too
14:45 nic ah
14:45 sri batman: is_readable check for example
14:45 sri (imo that is)
14:46 batman i was thinking about which part of the mango source code i should pay attention to
14:46 sri https://github.com/kraih/mango​/blob/master/lib/Mango.pm#L313
14:46 dqw joined #mojo
14:46 sri it's all in Mango.pm
14:47 batman thanks
14:48 batman i wonder how ribasushi will respond to https://github.com/jhthorsen/dbix-class/comm​it/f0d44f85c2ff27bd8b4590caa5bdbb69839e43ac ...
14:48 sri the TCP connection will get interrupted every now and then, TCP timeout, routing problems... have to handle that unless your ioloop is always active and listening for readable events
14:48 batman i agree
14:48 batman oh! gf is coming over. ttyl :)
14:56 bluescreen joined #mojo
15:15 Mikey HI, quick question, can you think of a reason why MOJO_USERAGENT_DEBUG would be printing gibberish after a Client >>> Server line when I'm doing a $ws->send("Hello?") from my user agent script?
15:16 Mikey This websocket works fine from javascript clients, and the server side's on(message => .. isn't triggering
15:25 dvinciguerra_ joined #mojo
15:28 heytrav joined #mojo
15:31 mire_ joined #mojo
15:32 Mikey ahh nvm that must be the websocket frame.. turning on MOJO_WEBSOCKET_DEBUG is helping, thanks
16:06 arpadszasz joined #mojo
16:07 btyler joined #mojo
16:08 bowtie joined #mojo
16:26 tholen42 joined #mojo
16:40 arpadszasz joined #mojo
16:49 dvinciguerra_ joined #mojo
16:54 d4rkie joined #mojo
16:57 bowtie joined #mojo
17:06 peaches joined #mojo
17:14 KindTwo joined #mojo
17:15 bowtie_ joined #mojo
17:18 marcus batman: I agree with default of no timeout for redis
17:19 marcus lol. I just saw the place I had my 30. birthday on TV
17:20 marcus Apparently it's the head quarters of Bandidos Mc Oslo.
17:20 marcus Hmm. wirc is actually quite usable over my parent's satelite link. Happy to see that.
17:39 basiliscos joined #mojo
17:44 KindTwo joined #mojo
17:48 btyler joined #mojo
17:48 sri marcus: sup? you've not been around much recently
17:54 KindTwo joined #mojo
18:00 d4rkie joined #mojo
18:01 bowtie joined #mojo
18:02 bowtie_ joined #mojo
18:08 espent joined #mojo
18:20 btyler joined #mojo
18:24 KindOne joined #mojo
19:19 mire_ joined #mojo
19:19 bluescreen_ joined #mojo
19:19 tianon joined #mojo
19:24 KindOne joined #mojo
19:43 zacts joined #mojo
19:59 KindOne joined #mojo
20:15 denis_boyun joined #mojo
20:49 KindTwo joined #mojo
20:56 gryphon joined #mojo
21:04 KindTwo joined #mojo
21:08 phillipadsmith Other than hand coding something like { 'transaction[currency]' => 'CAD' }, is there any way to build a query with Mojo::URL that uses a complex array similar to this http://www.php.net/manual/en/functio​n.http-build-query.php#example-4049 ?
21:31 perlite_ joined #mojo
21:31 KindTwo joined #mojo
21:41 btyler joined #mojo
21:52 marty is there a best practice for threaded versus non-threaded perl for mojolicious and mango?   (I have been testing with a threaded perl but would use non-threaded in production if it's goood)
21:53 sri marty: shouldn't matter
21:54 sri (as long as you don't actually use threads)
21:54 marty great.   I don't use threads myself but I'll check to make sure none of the modules I use require it.
21:55 sri i don't use or test anything with threads, would be a waste of time imo
21:56 marty agreed.   I'll wait to use threads on perl6 when it comes out this xmas.   :)
21:56 * sri will be using threads too then ;p
22:09 fhelmber_ joined #mojo
22:10 tempire what
22:10 tempire er
22:10 tempire what's the motivation behind Mojolicious::Plugins::emit_chain ?
22:20 btyler joined #mojo
22:23 sri tempire: see around_* hooks
22:31 denis_boyun joined #mojo
22:36 asarch joined #mojo
22:40 Zmodem joined #mojo
23:01 KindOne joined #mojo
23:21 btyler joined #mojo
23:41 dsteinbrunner tempire: do you run into this: https://github.com/tempire/mojolic​ious-plugin-consolelogger/issues/2
23:41 tempire I never run windows.
23:41 dsteinbrunner happens on my Mac
23:41 tempire that is unfortunate.
23:42 tempire I haven't looked at it in a while.
23:42 tempire actually, all my modules need love.
23:44 tempire feel free to fix it and do a pull request.
23:44 tempire the module itself is really simple.
23:44 StinkfooT joined #mojo
23:44 Zmodem is it possible to pass variables (stash?) to a javascript function that is included via the %= javascript 'goeshere' ?
23:45 Zmodem trying to use datatables to render some data attained via ajax call, but need datatables to make a post and the thing it posts is POST param
23:49 dvinciguerra joined #mojo
23:49 Zmodem n/m I think I found my own error.
23:55 sri tempire: WTF? https://github.com/tempire/mojolicious-​plugin-consolelogger/blob/master/lib/Mo​jolicious/Plugin/ConsoleLogger.pm#L26
23:55 sri just subscribe to the message event and you get everything you need
23:56 tempire I know. We had this conversation a decade ago. I just haven't done it yet.
23:56 sri :O
23:57 KindTwo joined #mojo
23:57 tempire there's also the issue of mojo.static
23:57 tempire which you've also chided me on.
23:57 sri tempire: consider yourself re-chided!
23:58 * tempire screams

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