The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2015-01-29

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

All times shown according to UTC.

Time Nick Message
00:02 gyan joined #mojo
00:05 Averna joined #mojo
00:25 gyan joined #mojo
00:31 bayashi joined #mojo
00:35 yoshi joined #mojo
00:35 yoshi hello
00:45 gyan joined #mojo
01:08 gyan joined #mojo
01:30 gyan joined #mojo
01:33 Grinnz joined #mojo
01:35 inokenty-w joined #mojo
01:37 jnbek joined #mojo
01:52 gyan joined #mojo
01:52 punter joined #mojo
02:12 gyan joined #mojo
02:14 klapperl joined #mojo
02:23 * jberger has a frontend dev looking at his minion monitor
02:23 jberger :)
02:24 cpan_mojo Mojolicious-Plugin-Directory 0.09 by HAYAJO - http://metacpan.org/release/HAYAJO/Mojolicious-Plugin-Directory-0.09
02:26 meshl joined #mojo
02:34 gyan joined #mojo
02:35 Grinnz jberger, does it look like this? http://blogs.haverford.edu/hkwlab/files/2014/12/latest.png
02:36 jberger exactly :-)
02:37 disputin joined #mojo
02:37 doby joined #mojo
02:39 jberger Grinnz: https://github.com/jberger/Minion-Command-minion-monitor
02:54 gyan joined #mojo
03:13 bc547 joined #mojo
03:14 Eke- joined #mojo
03:15 hshong joined #mojo
03:17 gyan joined #mojo
03:30 noganex joined #mojo
03:39 gyan joined #mojo
03:53 jberger sri: this may sound like a very silly question, but when an app is mounted within another app, does it have access to the outer app?
03:54 jberger the use case being if I wanted to make a minion app as a mountable app with access to the outer app's minion
03:59 jberger I think I may have to copy a bit of the mount plugin and amend it to my needs
04:01 gyan joined #mojo
04:25 gyan joined #mojo
04:49 Vertig0 joined #mojo
04:49 gyan joined #mojo
05:05 rem_lex joined #mojo
05:15 gyan joined #mojo
05:15 AndroUser joined #mojo
05:17 AndroUser joined #mojo
05:36 gyan joined #mojo
05:38 jberger hahaha success :)
05:38 * preaction fanfare!
05:55 dotandimet joined #mojo
06:02 gyan joined #mojo
06:15 crab jberger: show us!
06:24 gyan joined #mojo
06:38 dotandimet joined #mojo
06:42 dod joined #mojo
06:44 gyan joined #mojo
06:45 melo joined #mojo
06:47 dod joined #mojo
06:48 melo1 joined #mojo
06:48 ispyhumanfly joined #mojo
06:48 ispyhumanfly how's it going everyone?
06:57 Eke- joined #mojo
07:00 dod joined #mojo
07:09 gyan joined #mojo
07:11 basiliscos joined #mojo
07:13 dotandimet1 joined #mojo
07:15 tempire jberger: that sounds like a bad idea
07:16 reneeb joined #mojo
07:26 Vandal joined #mojo
07:30 Eke|| joined #mojo
07:30 DaTa joined #mojo
07:34 batman joined #mojo
07:34 gyan joined #mojo
07:41 rem_lex|pivo joined #mojo
07:42 * sri wonders if 256kb is the right limit for data kept in memory by Mojo::Asset::Memory before upgrading to Mojo::Asset::File
07:43 sri that's also where the websocket message limit came from
07:49 reneeb joined #mojo
07:52 batman sri: what do you think? bumping it to 1MB or something?
07:52 gyan joined #mojo
07:52 sri maybe
07:52 sri just looking throught the limits, there's a lot based on the memory limit of 256kb
07:52 batman i think most computers have enough memory to handle that, but it all depends on how many concurrent connections you have i guess...
07:53 sri keep-alive and gzip buffers too
07:54 batman i'm a bit passive regarding this... don't fix what aint broken..? :)
07:58 cpan_mojo joined #mojo
08:00 cpan_mojo Mojo-Redis2 0.17 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojo-Redis2-0.17
08:03 marcusr yeah, is this an actual problem for anyone?
08:03 sri nope
08:06 trone joined #mojo
08:13 meshl joined #mojo
08:16 gyan joined #mojo
08:17 * tempire wishes he would have been able to go to reactjsconf
08:19 fhelmber_ joined #mojo
08:19 sri genio: ->{href} is perfectly fine http://mojolicio.us/perldoc/Mojo/DOM#hash
08:28 eseyman joined #mojo
08:38 gyan joined #mojo
08:42 ashimema joined #mojo
08:59 gyan joined #mojo
09:24 gyan joined #mojo
09:29 sri so facebook is bringing their php hacks to ios and android
09:31 sri i've watched that keynote and it really made me not want to work with react.js
09:32 sri that guy acts like the JSX shit is what made react.js interesting... instead of the virtual DOM
09:36 jkramer Is there a way to benchmark async actions?
09:37 jkramer For example, I'm fetchin 5 URLs in parallel with mojo::useragent and I'd like to know how long each one takes to load
09:44 odc did you guys see this? https://shadowd.zecure.org/overview/introduction/
09:45 gyan joined #mojo
09:46 Snelius odc: like a magic
09:49 odc i wouldn't go that far, but it sure looks better than writer iptable rules
09:49 amon joined #mojo
09:55 buu jkramer: use Time::HiRes?
09:56 bobkare odc: what does that have to do with iptables? don't tell me you filter web request parameters at the IP packet level
09:56 jkramer buu: Well, how? And where? :)
09:56 buu When you start the request? And when it finishes? =]
09:57 buu $global_timers{$req}=[gettimeofday];
09:57 buu sub finished { print tv_interval($global_timers{$req}) }
09:57 * buu shrugs
09:57 odc bobkare, no but you can, iptables can block /w00tw00t requests pretty easily
09:58 jkramer buu: They're async requests that are run in parallel by M::UA
09:59 buu and?
10:02 bobkare odc: that sounds rather brittle, I don't see how that would work with things like persistent connections. It's just not placed at the correct level to do that kind of thing
10:02 bobkare Anyway, off to lunch
10:02 odc you're right, that's why i'm happy to see something better
10:04 gyan joined #mojo
10:12 jkramer buu: So I hand 5 URLs to M:UA and say "go", then it tells me when all 5 are finished. How do I benchmark how long each request takes?
10:18 punter joined #mojo
10:27 gyan joined #mojo
10:40 ZadYree Hello! I wonder if there is a way to make an external module that is called by MojoApp::Pages inherit from its attributes. For example, I would like MojoApp::Toolkit to access helpers that are in MojoApp.pm.
10:41 ZadYree I know it is quite unclear but that my be due to my lack of English skills :')
10:41 jkramer Ask in german then :D
10:43 sri please don't, this is an english speaking channel
10:43 ZadYree hehe I wouldn't anyway be able to speak such language :P
10:50 jkramer It was a joke anyway :)
10:51 gyan joined #mojo
10:51 ZadYree So please give me another try: I would love to make an external module of mine able to use defined mojolicious helpers, when its methods are called. How can I do that?
10:52 sri don't
10:52 ZadYree Okay :)
10:52 sri it's an anti-pattern, which is why you most likely won't get much help with it
11:09 good_news_everyon joined #mojo
11:09 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/FV2k
11:09 good_news_everyon mojo/master 30054f1 Sebastian Riedel: just call setuidgid from the daemon command
11:09 good_news_everyon left #mojo
11:13 gyan joined #mojo
11:14 good_news_everyon joined #mojo
11:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/FVaz
11:14 good_news_everyon mojo/master d6880c1 Sebastian Riedel: the server needs to bind to the port before calling setuidgid
11:14 good_news_everyon left #mojo
11:14 sri this is why i hate untested functionality
11:18 marcusr +1
11:18 purl 1
11:21 pink_mist whoah, Mojolicious includes jQuery? I never realised
11:21 marcusr pink_mist: you're not supposed to notice.
11:21 marcusr and you're def. not supposed to use it.
11:21 pink_mist heh, right :P
11:21 sri not the droids you're looking for
11:21 pink_mist I'll just stick https://metacpan.org/pod/Mojolicious::Plugin::JQuery where I need it then :P
11:22 sri in the beginning we allowed people to use it, then everybody got upset when we dared updating jquery
11:31 alnewkirk joined #mojo
11:35 sri we also include prettify.js... which i'm not too happy about
11:35 gyan joined #mojo
11:35 sri too bad all the alternatives suck
11:36 crab too bad uglify.js isn't an alternative
11:38 sri proper highlighting for DATA templates in the docs is pretty high on my wishlist
11:43 xeno joined #mojo
11:43 xeno left #mojo
11:49 reneeb joined #mojo
11:57 gyan joined #mojo
12:00 nicomen what are you using jquery for btw?
12:00 dotan sri: does anything highlight code embedded in the DATA section?
12:00 dotan nicomen: I think mostly the nice error/exception pages (show/hide elements)
12:01 nicomen I was wondering if jquip or zeto or others could cover the needs as well
12:01 nicomen *zepto
12:02 dotan There's also syntax highlighting in the perldoc POD renderer plugin (but that's prettify, not jquery).
12:03 dotan I don't think sri is looking for lighter alternatives (the jQuery is used in dev error pages, not production)
12:05 nicomen I thought making the whole dist smaller was a goal ;)
12:18 gyan joined #mojo
12:26 sri dotan: mojo.vim and my atom package do https://github.com/kraih/atom-mojo
12:29 sri it looks very nice in atom https://camo.githubusercontent.com/4954a1dc3228f9ae111f616c02d5f90e2e09c4be/68747470733a2f2f7261772e6769746875622e636f6d2f6b726169682f61746f6d2d6d6f6a6f2f6d61737465722f6578616d706c652e706e67
12:29 dotan sri: I figured embedded language highlighting should be possible, because HTML.
12:33 pink_mist dotan: yes, something highlights code embedded in the DATA section: https://github.com/vim-scripts/mojo.vim =)
12:33 pink_mist (in vim...)
12:35 sri support for it in one of the js highlighters would be awesome
12:35 sri i'd switch in a heartbeat
12:36 sri i wish stackoverflow would just fork prettify.js
12:36 disco joined #mojo
12:39 crab why?
12:39 punter joined #mojo
12:39 crab (what does stack overflow have to do with it? i don't really know anything about prettify.js)
12:39 sri because https://code.google.com/p/google-code-prettify/source/list
12:39 crab ah
12:40 sri stack overflow uses their own fork of prettify.js, but doesn't publish it publically
12:40 punter joined #mojo
12:41 sri google seems to have abandoned it... like they did with code.google.com
12:47 sri the competition seems to be https://highlightjs.org/ and http://alexgorbatchev.com/SyntaxHighlighter/
12:48 sri but both do a worse job with DATA templates so far :(
12:48 dotan I'd go with highlight.js - lots of docs, syntax doesn't look bad - https://github.com/isagalaev/highlight.js/blob/master/src/languages/erb.js ?
12:49 gyan joined #mojo
12:49 sri yea, that might not be too hard
12:49 sri make it happen! :)
12:49 dotan Do they just treat all __DATA__ as a comment? That's better than prettify, which just limps, inserting random colors.
12:49 neilhwatson joined #mojo
12:50 sri been some time since i last tried it
12:52 sri looks like it can even be minified into a single file now
12:52 sri http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js
12:54 sri guess i'd be ok with DATA as comments for a start, proper highlighting later on would be ideal though
13:03 sri now we just need a volunteer to make it happen :)
13:10 gyan joined #mojo
13:17 nicomen this is weird, with mojo 5.74 on wheezy tt::date plugin works fine, with mojo 5.75 on precise the defaulthelper date borks with a problem with YY-MM-DDThh:mm:ss
13:21 jberger iirc revealjs gets it's highlighting from highlight.js
13:22 jberger so if you want to see it demoed, it's in my Mojo talk
13:23 jberger crab: I will, I need to get to someplace with wifi first
13:23 sri jberger: link?
13:24 ignacio_ joined #mojo
13:25 jberger http://jberger.github.io/MojoliciousIntroduction/#/
13:27 sri so it tries to highlight DATA
13:27 sri http://jberger.github.io/MojoliciousIntroduction/#/17/1
13:28 dod joined #mojo
13:30 jberger with results best characterized as meh
13:30 jberger mojo.vim works great
13:31 trone joined #mojo
13:31 jberger is there really no highlight library that lets you specify multiple languages?
13:31 sri yea, someone needs to port mojo.vim/atom-mojo to highight.js first
13:31 jberger which is how mojo.vim works
13:31 sri huh?
13:31 sri highlight.js could support it perfectly fine
13:32 jberger it just tells vim how to switch to html mode iirc
13:32 sri almost all highlighters work that way
13:33 sri https://github.com/isagalaev/highlight.js/blob/master/src/languages/erb.js
13:33 sri it's trivial
13:34 gyan joined #mojo
13:34 jberger oh cool
13:34 sri heck, it even looks almost the same as atom-mojo https://github.com/kraih/atom-mojo/blob/master/grammars/perl%20(mojolicious%20templates).json
13:35 sri which has two parts, the ep, and perl+mojo https://github.com/kraih/atom-mojo/blob/master/grammars/perl%20(mojolicious).json
13:36 jberger yeah that's how mojo.vim works, that erb would be an easy model to follow
13:37 jberger if someone is looking for a little project
13:37 jkramer Is it possible to have embedded templates in multiple modules/plugins?
13:37 jkramer Guess not, <DATA> is kinda global, right?
13:38 jberger I'm stretched about as thin as I can go until I get one of these plugins shipped
13:38 jberger jkramer: yes you can
13:38 jkramer Sweet
13:39 jberger http://mojolicio.us/perldoc/Mojolicious#renderer
13:43 dod joined #mojo
13:55 pink_mist jkramer: <DATA> might be global, but as perldoc perldata says: Text after __DATA__ may be read via the filehandle PACKNAME::DATA , where PACKNAME is the package that was current when the __DATA__ token was encountered.
13:56 gyan joined #mojo
13:56 pink_mist so there're other <DATA> for each package
13:57 sri DATA is just weird
13:58 cpan_mojo Mojolicious-Plugin-DBViewer 0.27 by Yuki Kimoto - http://metacpan.org/release/KIMOTO/Mojolicious-Plugin-DBViewer-0.27
13:58 sri they don't have a file descriptor, but a seek pointer that is shared between forked processes
13:59 sri for years we had a bug where files in the DATA section would get randomly corrupted because two processes were calling seek() at the same time
14:02 marty joined #mojo
14:09 dvinciguerra joined #mojo
14:13 asarch joined #mojo
14:14 gryphon joined #mojo
14:17 gyan joined #mojo
14:35 ispyhumanfly joined #mojo
14:39 gyan joined #mojo
14:47 mishantil Is there any reason why a route could not match when running morbo on a mac, but matches when run on linux?
14:47 mishantil Or rather; a request does not match a route when morbo is run on osx, but running morbo on linux all is good.
14:48 pink_mist that seems odd ... is it a static file?
14:49 genio missing the template file on one system and seeing the error page?
14:49 jkramer Isn't osx kinda weird with case-sensitivity in file systems? Never used one, but I think I read that somewhere
14:50 pink_mist yeah, I've heard that too
14:50 pink_mist and unicode normalisation as well
14:50 genio I haven't ever noticed any oddness about case sensitivity in OS X. It behaves in a case sensitive manner as far as I've noticed.
14:50 genio mind you, that doesn't mean you're wrong
14:50 mishantil pink_mist: Not using a template file on that route. An api-endpoint that acceps and returns json.
14:52 jkramer Maybe it's the browser? I guess you test with the local browser on both systems?
14:52 jkramer What's the exact path/route?
14:52 mishantil Ok, so we've been looking at this (four people) for the better part of an hour. The minute after I asked here one of the guys figured it out.
14:52 pink_mist genio: I've heard that there are different "layers" to mac os x, where if your program is in one layer, you get a case insensitive filesystem, but if you're programming against a lower layer, it's sensitive
14:53 genio what was missing?
14:53 mishantil It was a bridge that we had overlooked, that returned falsey...
14:53 mishantil *facepalm*
14:53 genio heh
14:53 mishantil nay *facedesk*
14:53 mishantil Thanks for chipping in though. Much appreciated.
14:54 genio "HFS+ (the Mac filesystem) is usually configured to be case insensitive but case preserving. This means that the file system will consider foo and FoO to be the same, but when you create a new file it will remember which letters where capitalized and which were not."
14:55 jkramer Ah right
14:56 jkramer I think the problems occur when you turn case-insensitivity off (which you can) - then foo won't match FoO anymore and things break
14:56 Lee this was the source of the recent git vuln
14:57 Lee there's some legacy stuff in the OS (or Adobe, or something) that needs case insensitivity
14:57 genio I had never noticed that before
14:57 Lee first step with a Mac: create a case sensitive partition and do dev on that
14:58 jkramer Not sure if this is still the case, but I think some time ago when you switch to case-sensitive, even the system itself broke because the apple devs had used random cases for paths in some places
14:59 Lee yeah, leave the base system partition well alone :D
15:00 dotan Lee: you can???
15:00 Lee can what?
15:00 purl hmmm... can is not a bad choice really
15:01 tomboh dotan: OS X supports HFS+ (case insensitive) and UFS2 (case sensitive)
15:02 Lee i like the French description: sensible à la casse
15:02 genio It seems as if older Adobe products have a problem with case sensitivity, but other than that you can make your system case sensitive
15:02 genio assuming Yosemite
15:02 Lee anyway, before i get too far with this: has anyone attempted to make an OAuth2 resource server mojo plugin?
15:03 genio ugh.  Oauth2 makes me a sad panda
15:03 Lee yeah, i'm trying to do it in a sane way
15:06 dotan That OSX tidbit. (I just bumped into that on Tuesday, a template in directory "UI" was found on my mac, but not when I moved the project to my work desktop).
15:10 gyan joined #mojo
15:14 jberger crab: https://github.com/jberger/Minion-Command-minion-monitor/blob/master/lib/Minion/Command/minion/monitor.pm
15:15 jberger the Monitor is now an app in its own right (Minion::Monitor, https://github.com/jberger/Minion-Command-minion-monitor/blob/master/lib/Minion/Monitor.pm)
15:17 jberger then the monitor command takes the outer app, replaces its router with a new one, creates a new Monitor app, stashes the outer app in the Monitor instance, mounts the Monitor at the outer app's / and everything works from there
15:18 jkramer Completely off-topic: When use my server (located in Nuremberg, Germany) as SOCKS proxy, Google thinks I'm in Ukraine
15:20 jberger jkramer: are you doing tor?
15:20 jberger cause if so, then that's what its trying to do
15:20 jkramer Nope
15:21 jkramer Also when I try to manually tell Google where I am, it tells me to "Please enter a valid Ukraine city or zip code"
15:22 jberger ok well you have exhausted my SOCKS (and tor) knowledge :-P
15:22 jberger maybe someone else knows
15:23 jkramer When I go to some geoip website, it correctly tells me that the server is in Nuremberg
15:31 noganex joined #mojo
15:31 jkramer Ha, google has a website for reporting exactly this issue :D
15:31 jkramer Seems to be pretty common
15:33 gyan joined #mojo
15:46 sh4 joined #mojo
15:48 ispyhumanfly joined #mojo
15:50 Vertig0 joined #mojo
15:54 gyan joined #mojo
16:10 ispyhumanfly joined #mojo
16:18 gyan joined #mojo
16:38 gyan joined #mojo
16:51 stephan48 sri++ # minion is awesome
16:57 dotan Apparently, EP is trickier then ERB to do in highlight.js, because it's not nested in HTML, it's mixed in with it.
16:58 sri nested?
16:58 purl nested is probably different from everything in catalyst i think
16:58 sri ERB works almost exactly like EP
16:59 dotan EXCEPT for the lines.
16:59 sri which are a rather trivial case
17:00 gyan joined #mojo
17:01 sri https://github.com/kraih/atom-mojo/blob/master/grammars/perl%20(mojolicious%20templates).json#L40-L54
17:01 dotan I translated that to highlight.js
17:04 sri dotan++
17:05 dotan What does line 26 do? The others I get are "within tag" or "%-prefixed line"
17:05 dotan https://github.com/kraih/atom-mojo/blob/master/grammars/perl%20%28mojolicious%20templates%29.json#L26
17:06 dotan When I include the equivalent block I get no output.
17:06 dotan (And I removed the () captures)
17:07 Grinnz_ (?<=...) is a lookbehind not a capture
17:08 sri i think that lookbehind was a trick to get special highlighting to work
17:08 Zx3 joined #mojo
17:09 sri in atom, with some themes you can get a different background for embedded markup, like perl in html
17:09 sri but without the lookbehind an indented perl line would get highlighted from the start of the line
17:10 sri purely a cosmetical thing
17:11 sri i doubt it's useful with highlight.js
17:14 dotan Grinnz_ : well, that explains why it doesn't work when I remove the brackets.
17:14 dotan sri: thanks.
17:16 jberger purl: forget nested
17:16 purl jberger: I forgot nested
17:17 jberger purl: no, nested is http://www.quickmeme.com/img/88/880cfe8b7c93001c4b42e60e217a03f05414160695342756e7fecee303dfb967.jpg
17:17 purl OK, jberger.
17:17 jberger a meme for all occaisions!
17:21 Grinnz_ lol
17:21 gyan joined #mojo
17:26 basiliscos joined #mojo
17:34 cpan_mojo Clustericious 0.9942 by PLICEASE - http://metacpan.org/release/PLICEASE/Clustericious-0.9942 (depends on Mojolicious)
17:35 Grinnz_ shoulda been Clusterlicious
17:41 gyan joined #mojo
17:43 tencendur joined #mojo
17:48 ZadYree One question: How to pass one variable from a bridge function to a function called by the route?
17:49 Grinnz_ stash
17:49 ZadYree I tried using Moose and creating an attribute but it won't neither work nor give extra perf ^^
17:49 ZadYree Ah
17:50 ZadYree Thought it was more useful for discussing w/ templates, but why not
17:50 Grinnz_ i use it for several things specific to a request
17:51 jberger the stash is your per-request scratch-pad
17:51 ZadYree Ah, so I assume it will be cleaner, from a memory pov?
17:52 Grinnz_ also from a not-sharing-things-between-requests
17:52 Grinnz_ especially if you do deferred rendering, you could have other requests handled in the middle
17:55 ZadYree Yeah
18:03 gyan joined #mojo
18:07 cpan_mojo PlugAuth 0.29 by PLICEASE - http://metacpan.org/release/PLICEASE/PlugAuth-0.29 (depends on Mojolicious)
18:17 cpan_mojo Yars 1.05 by PLICEASE - http://metacpan.org/release/PLICEASE/Yars-1.05 (depends on Mojolicious)
18:26 gyan joined #mojo
18:26 trone I'd like create Controller's actions programmatically - using a Mojo app helper. There is an hook or something to do something at the Controller init?
18:32 trone currently I'm using a list of string to generate actions inside the controller with Sub::Install.
18:33 trone But I've also to create routes for them in che app module, and so I need to duplicate the list.
18:33 trone (just to explain the context)
18:36 trone probably I can use the cb in the routes
18:47 gyan joined #mojo
18:54 jberger trone: I'm not aware of anyone who has tried this pattern in Mojo
18:54 jberger I'm not sure that it is advisable
18:54 jberger of course TIMTOWTDI, but you may not get a lot of advice from the peanut gallery
18:55 Grinnz_ he left
18:55 Grinnz_ lol
18:56 Grinnz_ i would just say create the actions in the module with BEGIN{} or something
19:01 berov joined #mojo
19:08 disputin joined #mojo
19:09 gyan joined #mojo
19:17 bwf joined #mojo
19:26 Eke- joined #mojo
19:30 gyan joined #mojo
19:51 gyan joined #mojo
19:53 dod joined #mojo
19:53 dotandimet joined #mojo
19:53 muraiki joined #mojo
20:13 gyan joined #mojo
20:16 AndroUser joined #mojo
20:19 AndroUser jberger Thx. Yes,indeed i'm looking a way to do it. :-)
20:21 AndroUser2 joined #mojo
20:24 cpan_mojo Mojolicious-Plugin-AssetPack 0.35 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-0.35
20:29 AndroUser2 joined #mojo
20:33 gyan joined #mojo
20:33 AndroUser2 joined #mojo
20:33 Grinnz_ o_0
20:37 rem_lex joined #mojo
20:41 AndroUser2 Grinnz_ http://irclog.perlgeek.de/mojo/2015-01-29#i_10026530 i read also when I disconnect
20:41 Grinnz_ oh, you're trone
20:42 AndroUser2 Yep. From crappy Android client :-p
20:46 dotandimet joined #mojo
20:47 jberger AndroUser2: tried AndChat? I liked it util I got a dedicated convos client
20:48 Grinnz_ andchat is decent. but you can't do anything about the phone losing connection
20:50 mst jberger: also, he's being silly. he already has an array of the relevant action names he wants to register, he can just provide a class method that returns those and write a small loop in MyApp
20:51 mst jberger: or do $controller_class->register_to($app) during setup
20:51 mst jberger: which is very approximately how catalyst does it
20:52 jberger the class could also have a dispatcher which knows how to delegate to other methods
20:52 jberger there are plenty of ways to do it, which is why I'm not suggesting ways to do THAT
20:53 mst it could. but that would seem silly to me.
20:53 mst Mojo's designed around centralised routing
20:53 jberger sure, but it is rather easy to decentralize it if you want
20:54 jberger locally
20:56 gyan joined #mojo
20:58 AndroUser2 joined #mojo
21:08 melo joined #mojo
21:13 AndroUser2 joined #mojo
21:13 mst jberger: yes. but it would be a WOFTAM to do so
21:13 mst the visitor pattern makes decentralizing the data easy enough and then you can use the already battle tested router
21:17 gyan joined #mojo
21:33 AndroUser2 joined #mojo
21:35 disputin joined #mojo
21:37 gyan joined #mojo
21:43 AndroUser2 joined #mojo
21:45 dod joined #mojo
21:46 AndroUser2 joined #mojo
21:50 kaare joined #mojo
21:58 gyan joined #mojo
22:07 meshl joined #mojo
22:12 Grinnz_ hrm... Mojo::Log may have an issue with logrotate unless i set it to copytruncate
22:13 Grinnz_ it keeps the filehandle open from the first time it writes to the log
22:16 mst Grinnz_: yeah, you need to either not do that or it needs to accept HUP for 'reopen your log file'
22:16 mst (or some other signal)
22:16 Grinnz_ well for the main application log, a reload would reopen it by virtue of the path changing it's doing
22:17 Grinnz_ also because well it wouldn't have that Mojo::Log object anymore
22:17 Grinnz_ but the other logs...
22:26 gyan joined #mojo
22:35 disputin joined #mojo
22:45 cpan_mojo Mojolicious-Plugin-AccessLog 0.005 by Bernhard Graf - http://metacpan.org/release/GRAF/Mojolicious-Plugin-AccessLog-0.005
22:47 gyan joined #mojo
23:02 absolut_todd joined #mojo
23:07 gyan joined #mojo
23:10 Kundun joined #mojo
23:14 rem_lex joined #mojo
23:26 cpan_mojo Mojolicious-Plugin-ToolkitRenderer 1.04 by Gryphon Shafer - http://metacpan.org/release/GRYPHON/Mojolicious-Plugin-ToolkitRenderer-1.04
23:30 gyan joined #mojo
23:32 cpan_mojo Mojolicious-Plugin-ToolkitRenderer 1.05 by Gryphon Shafer - http://metacpan.org/release/GRYPHON/Mojolicious-Plugin-ToolkitRenderer-1.05
23:35 Grinnz_ alright... guess ill just have to set up my 3 daemons with init scripts so i can easily sighup them
23:35 Grinnz_ it'd make managing them easier anyway...
23:36 mst Daemon::Control ftw
23:50 gyan joined #mojo
23:51 phillipadsmith joined #mojo
23:55 chansen joined #mojo

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