Camelia, the Perl 6 bug

IRC log for #mojo, 2013-03-15

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

All times shown according to UTC.

Time Nick Message
00:01 riche http://docs.activestate.com/pd​k/9.2/PerlSvc.html#perlsvc_top
00:01 jberger thanks
00:01 riche --bind is really my only option
00:02 jberger riche, this is for daemonizing on windows?
00:02 jberger are there no CPAN modules that can do that?
00:03 * jberger looks
00:03 riche it is daemonising on windows.
00:04 riche i think there _might_ be cpan, but I've been using activestate for about 15 years now...
00:04 sri soo, if it automatically resolves dependencies, you can't just hack those bundled files into %INC?
00:05 sri i doubt it cares about file endings at all, and just works like PAR
00:05 riche sure, in BEGIN block I can add anything to %INC
00:05 riche but the code is opening from __FILE__, no?
00:05 riche dirname(__FILE__) rather
00:06 sri it doesn't decompress before running?
00:06 riche it does.  the perl lib extracts to dir
00:06 riche but bound files just can be extracted to base director
00:06 riche so package paths are a-ok
00:06 riche but bound files, no
00:07 sri screw bound files, i'm talking about pretending those bundled files are modules
00:07 riche lol
00:07 sri hack them into %INC so it thinks they are modules
00:08 riche thinking
00:08 sri i have no clue how it resolves dependencies, but that's where i would start
00:08 riche it resolve deps via requires and use(es)
00:09 riche you can specify "files" but only by package name, i.e. Data::Dumper
00:09 riche or recursive, Data::
00:09 riche but it won't pick up non-perl files
00:10 jberger riche, it seems that as expected most daemonizing modules require a real fork and thus don't work on windows
00:10 jberger there is this: https://metacpan.org/module/Win32::Daemon
00:10 jberger and its from Jan who works for activestate IIRC
00:10 jberger wouldn't be surprised if its what that tool uses internally
00:11 riche yah actually our direct script we're running runs a thread starting mojo ... there's other stuff that needs to be run
00:11 riche it's working great actually... under pretty high loads too.
00:12 riche this entities thing may seem petty, but having every customer call about it causes problems
00:12 jberger well, keep working on getting the file stuff figured out, I just thought I would look for completeness :-)
00:12 riche thx
00:14 riche I think ultimately it would work if I could extract bound file to subdir in extracted files, but that's not in perlsvc right now
00:14 riche sighs
00:16 riche wait that just give me idea... sheer bad hackery but might just work
00:16 riche brb
00:22 jwang joined #mojo
00:22 MeierM joined #mojo
00:23 sri riche: wait, does it include files like myapp/templates/*.html.ep?
00:25 sri can't you just bundle mojolicious in myapp/mojo/ and use lib '../mojo/lib' in the app script?
00:27 riche does not bundle ep
00:27 riche that is external in our install
00:27 sri oh wow, that sucks
00:27 riche yah
00:28 riche there is some trickery we needed to do with that
00:29 riche well not really trickery
00:29 riche just change the renderer and static paths
00:33 riche okay thx guys for the talk.  I will feedback to google grp if successful.
00:34 riche what I am going to try to do is bind file, and then copy it into the correct path prior to starting up anything
00:35 riche but now I know there are other files to consider, so now I will just need to be cognizant of new non-perl files in the distro
00:42 riche jberger: curious - why would you say catalyst is potentially more appropriate?
00:43 jberger I didn't say that, sri did
00:43 riche oops sorry
00:44 jberger np, I've never used Catalyst, so I have no opinion on the matter
00:45 riche i think i debated with team about two months on which one to use
00:45 jberger to me it sounds like a feature request that AS should handle, this problem could in theory affect any Perl module with external data
00:46 riche this was maybe oct/nov 2011
00:46 jberger for example, almost all of my Mojolicious plugins bundle extra files
00:47 riche yes, and files that overwrite one another
00:47 riche ppm doesn't like that ... well, another google group post I don't think its cool to get into
00:52 freman so, rendering images, via mojo? or via apache (I have the option of handing over mundane tasks to apache)
00:53 sri you'd think activestate would make their exe building tool play nice with ppm packages
00:54 sri catalyst because it makes the least assumptions and bundles pretty much nothing
00:54 sri of course i'm not very familiar with the plugin landscape these days
00:54 freman all our catalyst projects have died (thankfully)
00:55 riche yah the problem with the plugins is the "stock" files, like I think README or something like that
00:55 riche ppm tracks all the file level dependencies, so it growls when one README or whatever wants to write another
00:55 sri if you have the option, always let a real web server handle static files, it's what they are made for
00:56 freman that's what I figured
00:57 freman might do some minor re-writing :D
00:58 shmuel joined #mojo
01:00 freman oooh, could use nginx and have it do the thumbnailing for me :D
01:14 hlin joined #mojo
01:14 freman done
01:15 Averna joined #mojo
01:28 d4rkie joined #mojo
01:28 ka2u joined #mojo
01:49 rem_lex|pivo joined #mojo
01:52 freman so... ummm
01:52 freman mkdir /path/to/proj/log
01:52 shmuel_ joined #mojo
01:53 freman export MOJO_LOG_LEVEL=debug
01:53 freman restart... but no logs? :(
01:59 good_news_everyone joined #mojo
01:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/NS73gA
01:59 good_news_everyone mojo/master bc58398 Sebastian Riedel: modernized log tests
01:59 good_news_everyone left #mojo
02:01 freman ok, that was my fault, I screwed something up with using a different logger...
02:01 freman Mojo->attr(log => sub {App::Common::Log->new(prefix => 'Frontend')}); is right isn't it?
02:04 freman http://pastebin.com/1fmsd0H0 <- ok, so tme Mojo->attr method didn't work
02:14 freman [Fri Mar 15 13:14:54 2013] [debug] Frontend Action "send" is not allowed. <- send is a reserved word? :)
02:53 jberger freman, Mojo already has a log attribute, just use the accessor to change the logger instance it holds
02:55 jberger the second thing in your paste is how you should do it
02:57 jberger or just overload the attribute in you app subclass
03:13 freman yeh, it's just I use the first method to override the controller class... but I guess it's too late for the log at that point
03:14 rem_lex joined #mojo
03:16 rem_lex| joined #mojo
03:30 jpn joined #mojo
03:31 d4rkie joined #mojo
03:33 egopro joined #mojo
03:36 d4rkie joined #mojo
03:41 newbie joined #mojo
03:52 sh4 joined #mojo
04:01 moltar joined #mojo
04:45 preflex_ joined #mojo
04:54 ka2u joined #mojo
04:59 Meiermann joined #mojo
05:17 dummy_jb joined #mojo
05:18 sh4|2 joined #mojo
06:25 basiliscos joined #mojo
07:06 Vandal joined #mojo
07:16 wk joined #mojo
07:27 dpetrov_ joined #mojo
07:54 yakudza joined #mojo
08:02 dod joined #mojo
08:03 suy joined #mojo
08:07 dod joined #mojo
08:30 egopro joined #mojo
08:40 dod joined #mojo
08:50 ki0 joined #mojo
09:11 hrupp joined #mojo
09:14 fhelmber_ joined #mojo
09:25 jpn joined #mojo
10:07 ghb joined #mojo
10:07 ghb hi
10:08 ghb i submit a well formed form with a file upload, but Mojo::Upload->new doesn't know anything about it ... do you know why ?
10:08 ghb (what can make it happen?)
10:10 nelio joined #mojo
10:20 ver joined #mojo
10:31 Fremean joined #mojo
10:33 vervain joined #mojo
10:34 yakudza joined #mojo
10:38 ka2u joined #mojo
10:52 MeierM joined #mojo
11:15 egopro joined #mojo
11:16 egopro joined #mojo
11:39 mire joined #mojo
11:41 SmokeMachine joined #mojo
11:58 geira joined #mojo
12:20 b2b joined #mojo
12:27 bowtie joined #mojo
12:27 egopro joined #mojo
12:40 maxhq joined #mojo
12:47 mire joined #mojo
12:55 arthas joined #mojo
13:16 mattastrophe joined #mojo
13:20 GabrielVieira joined #mojo
13:45 rihegher joined #mojo
13:53 btyler joined #mojo
13:54 bluescreen joined #mojo
14:04 gryphon joined #mojo
14:27 sri \o\
14:27 sri /o/
14:28 Mikey heyyyyy hoooooo
14:31 marty joined #mojo
14:33 cfedde \o/
14:50 psimanx1 joined #mojo
14:57 newbie joined #mojo
15:09 mattastrophe joined #mojo
15:14 Kulag joined #mojo
15:16 mattastrophe joined #mojo
15:25 basiliscos joined #mojo
15:34 asarch joined #mojo
15:36 btyler joined #mojo
15:50 yakudza joined #mojo
16:00 suy http://altreus.blogspot.co.uk/2013/03/gn​u-passive-aggressive-public-licence.html # The "about me" is also nice.
16:06 sri haha
16:07 n0n joined #mojo
16:08 n0n hi. utf-8 trouble here: I'd like to receive json data from client and write a CSV to disk. this CSV needs to have a BOM for excel unicode recognition.
16:09 n0n this used to work, until i switched to mojo, which does some utf8 handling in background, i guess
16:09 mattastrophe joined #mojo
16:10 n0n open file-handle with binmode :utf8, print $enc2bom{utf8} and encode_utf8 for the content
16:10 n0n but: excel refuses to automatically choose utf8
16:11 n0n Text::CSV_XS with binary=>1
16:53 Ravenhall joined #mojo
16:59 mattastrophe joined #mojo
17:07 xaka joined #mojo
17:20 Bender joined #mojo
17:26 Adura joined #mojo
17:31 mattastrophe joined #mojo
17:36 Ravenhall I have a REST API with which I want my mojolicious app to interact. The API is particular about encoding (http://requesttracker.wikia.com/wiki/REST). I'm looking for an easy way to implement routes to match the API. Any suggestions or examples of something like this would be greatly appreciated.
17:38 SmokeMachine joined #mojo
17:48 dpetrov_ joined #mojo
17:52 n0n joined #mojo
18:00 mire joined #mojo
18:01 maggot joined #mojo
18:15 dummy_jb left #mojo
18:28 basiliscos joined #mojo
18:34 n0n joined #mojo
18:36 basiliscos joined #mojo
18:36 d4rkie joined #mojo
18:43 marcus o/
18:46 sri \o
18:46 sri tempire: looks like dropbox might have just bought that shiny new email app :o
18:53 * marcus finished scrollback. The joy of activestate.
18:58 basiliscos joined #mojo
18:58 wk joined #mojo
19:08 rem_lex joined #mojo
19:09 rem_lex|pivo joined #mojo
19:12 komodo1 joined #mojo
19:47 mire joined #mojo
20:10 inokenty joined #mojo
20:18 newbie89 joined #mojo
20:28 lammel2 joined #mojo
20:29 lammel2 joined #mojo
20:40 suy joined #mojo
20:46 mattastrophe joined #mojo
20:55 good_news_everyone joined #mojo
20:55 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/MFfhkQ
20:55 good_news_everyone mojo/master 4d90541 Sebastian Riedel: fixed whitespace bug in Mojo::DOM::HTML (closes #467)
20:55 good_news_everyone left #mojo
21:02 basiliscos joined #mojo
21:02 good_news_everyone joined #mojo
21:02 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/mK2P8Q
21:02 good_news_everyone mojo/master 89a50ed Sebastian Riedel: small optimization in Mojo::DOM::HTML
21:02 good_news_everyone left #mojo
21:08 jnbek joined #mojo
21:18 asarch joined #mojo
22:40 mattastrophe joined #mojo
22:55 laidback_01 joined #mojo
22:55 Caelum sri: that trick for using a special exception to detach: https://github.com/kraih/mojo/blob/maste​r/t/mojolicious/exception_lite_app.t#L76 is killing RequestTimer for me, any way to get it back?
22:57 Meiermann joined #mojo
23:15 beyondcreed joined #mojo
23:28 bpmedley Howdy, a couple of times I was curious about a 7 second pause in my GET requests.  Turns out, I think it was apache 2.2.23.  I upgraded to 2.2.24 with the same config file for the vhost and the pause went away.  Just an FYI.
23:29 cstamas 7 second can also indicate a name resolution problem afaik
23:29 bpmedley Hrmm, thanks.  I'll keep an eye out.
23:30 cstamas 7 seconds is the timeout for the stub resolver
23:30 cstamas (if I recall correctly)
23:50 Caelum that's the usual problem with people setting up dev environments, the reverse lookup is busted so they have delays for every request

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