Camelia, the Perl 6 bug

IRC log for #mojo, 2011-06-17

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

All times shown according to UTC.

Time Nick Message
00:17 alnewkirk joined #mojo
00:32 alnewkirk left #mojo
00:35 sri think i'll really get rid of --reload
00:36 alnewkirk|com y
00:40 sri because it sucks
00:42 alnewkirk|com is it being removed or replaced?
00:43 sri replaced
00:44 sri most likely a hypnotoad for cross platform development
00:44 sri with plain old file watching
00:45 alnewkirk|com on a completely unrelated note, i'd like to see something like phenona but open-source
00:46 alnewkirk|com on a related-note, file watching in perl sucks ass
00:47 alnewkirk|com and the good unix tools dont work on windows
00:47 sri umm, have you been hiding under a rock for the last few months?
00:47 alnewkirk|com maybe
00:47 sri vmware is doing exactly that
00:48 sri in fact, the activestate platform is built on top of the vmware open source project
00:50 alnewkirk|com nice, didnt know that
00:52 sri you better read my tweets! :)
00:57 j3nnn1 joined #mojo
01:12 alnewkirk|com sri, now following
01:34 Alias joined #mojo
01:57 SmokeMachine joined #mojo
01:57 alnewkirk|com kinda silly to be in a folder all by itself, the mojolicious "app runner" script
02:08 GabrielVieira2 joined #mojo
02:12 sri hmm, almost done with external file watcher, looks quite good so far
02:13 sri "morbo myapp.pl"
02:13 sri :D
02:13 GabrielVieira left #mojo
02:16 sri YOU ARE ALL DOOOOOOOOOOOOOOOMED!
02:19 j3nnn1 left #mojo
02:24 SmokeMachine left #mojo
02:57 j3nnn1 joined #mojo
03:13 GitHub127 joined #mojo
03:13 GitHub127 [mojo] kraih pushed 1 new commit to master: http://bit.ly/kpuczD
03:13 GitHub127 [mojo/master] added experimental self-restarting Morbo development web server and removed old "--reload" support since there have been too many negative side effects - Sebastian Riedel
03:13 GitHub127 left #mojo
03:13 sri big commit
03:14 sri i think moritz will like it :)
03:14 tardisx I like the name :-)
03:14 sri DOOOOOOOOOOOOOOOOOOOOM!
03:16 GitHub79 joined #mojo
03:16 GitHub79 [mojo] kraih pushed 1 new commit to master: http://bit.ly/l2hER0
03:16 GitHub79 [mojo/master] updated makefile - Sebastian Riedel
03:16 GitHub79 left #mojo
03:17 tardisx Morbo forget how you spell that letter that looks like a man wearing a hat. Hello, tiny man. I will destroy you!
03:17 sri !
03:17 tardisx s/man/development web server/g
03:19 sri memory usage went down by about 1mb per child and rps up by 50-100 :)
03:19 sri debugger sub tracking is costly
03:21 tardisx Hey you don't need to justify it. The name is justification enough.
03:21 sri :D
03:36 gshank_ left #mojo
03:37 gshank joined #mojo
03:37 sri KITTENS GIVE MORBO GAS!
03:40 Alias left #mojo
03:45 perlrocks Twitter: "Added new experimental self-restarting development web server to #mojolicious, please test and send patches! :) http://t.co/JcVECyl #perl" --kraih http://twitter.com/kraih/status/81568085110304768
04:00 gshank left #mojo
04:08 sri best thing about morbo is that it's so easy to patch
04:09 sri pretty much every beginner can improve it
04:11 gshank joined #mojo
04:13 d4rkie joined #mojo
04:19 perlrocks Twitter: "On Tuesday, the http://t.co/FzideVY will be a great post about # Mojolicious. Use # perl or die;" (ru) --afiskon http://twitter.com/afiskon​/status/81576665666433025
04:37 perlrocks Twitter: "Mojolicious:: about creating web applications using the Lite is small - I do try it" (ja) --udzura http://twitter.com/udzura/status/81581230969200640
04:39 D4RK-PH0ENiX joined #mojo
04:42 d4rkie left #mojo
04:46 crab oh no! morbo has gone into a loop and is reloading my app repeatedly!
04:50 sri i don't believe you!
04:50 crab no, really.
04:50 sri fix it!
04:51 crab i will, but i can investigate only tomorrow.
04:51 sri :(
04:51 sri is it some editor temp file maybe?
04:51 sri only dotfiles are ignored
04:52 sri btw. we could use a few more moderators on the mailing list to fight spam
04:54 tempire How would that work?
04:55 tempire just logging in and approving stuff every once in a while?
04:55 tempire or logging and removing junk
04:55 sri the second
04:55 purl well, the second is the original written by an american
04:55 tempire I could do that
04:55 sri yay
05:03 sri tempire++ # literally
05:05 tempire is it just you right now?
05:05 sri xantus and marcus too
05:06 sri but they are slackers
05:06 tempire hmm
05:06 tempire I don't really follow the list, but I can log in each day & skim through for spam
05:07 sri quite a few web only subscriptions, interesting
05:07 tempire I don't really understand mailing lists
05:07 tempire I guess it's a lower barrier than irc
05:08 sri yea, and not everyone can irc at work
05:09 sri and it's easier to look smart on mailing lists
05:18 tempire I hope lion provides a way to show dot files but hide the .DS_Store
05:19 sri wasn't there a magical way to hide files?
05:19 sri like a global file you can add files to that should be hidden?
05:20 sri can someone test morbo on win32?
05:21 sri i've tried to use as little features as possible, but am still a little scared
05:22 sri https://github.com/kraih/mojo/blob/​master/lib/Mojo/Server/Morbo.pm#L90
05:23 sri that's the main case i'm worried about
05:25 perlrocks Twitter: "@dot_cloud I haven't done much, but I'm on the list. You do support #Mojolicious right? http://t.co/lB17dV2" --AFreshOne http://twitter.com/AFreshOn​e/status/81593217841242112
05:27 crab is -w a b c the right syntax, or -w a -w b -w c?
05:28 crab (for morbo, to set directories to watch)
05:28 sri second i think
05:28 sri it's Getopt::Long
05:35 crab sri: on line 41 or so of Morbo.pm, shouldn't the named be prefixed with $watch/ ?
05:36 crab names
05:36 sri should it?
05:36 crab well, i see from strace that it's stat()ing files in lib without a lib prefix
05:37 crab but i'm feeling very scatterbrained this morning, so i didn't want to assume that i understand what's going on
05:37 crab also, later around 48, if the stat fails, the entry should be deleted (right now i get a gazillion warnings about $mtime being undef in the comparison just below)
05:37 crab if those seem sensible to you, i can whip up a patch?
05:38 crab (but i can't send you a puil request, i'm afraid. don't have github password here.)
05:41 crab hmm. it stats both.
05:42 crab lib/Foo.pm and Foo.pm
05:46 crab sri: does it get files to stat from somewhere else, like %INC?
05:46 crab in addition to -w?
05:46 crab if i dump @files just before the "Check files" loop, it contains unqualified names, but in strace output i can see it stats things in lib/ too
05:48 sri crab: nope it only uses -w
05:48 marcus sri: did not even know I'm admin on the ML :)
05:48 * sri cracks the whip
05:49 sri crab: wouldn't surprise me if there were bugs
05:49 crab then the stats i'm seeing must be from perl itself when it restarts?
05:49 sri could it be file discovery code?
05:49 sri from Mojo::Home?
05:50 sri but yea, perl could do it too
05:50 sri or even mojolicious could search for commands and plugin
05:54 crab sri: http://toroid.org/misc/morbo.diff is correct
05:55 sri wait
05:55 sri hardcoded / makes me nervous
05:55 crab it prevents the stat()s of files that do not exist, and prevents the gazillions of warnings thereof
05:55 crab oh.
05:55 sri is that portable?
05:55 marcus lol, just got the puking dinosaur
05:55 marcus Fri Jun 17 07:54:44 2011 error MojoX::Renderer::TT:87 [29735]: Template error in "not_found.production.html.tt": Can't locate object method "get_inline_template" via package "Mojolicious::Renderer" at /Users/marcus/perl5/perlbrew/perls/perl-5.10​.1/lib/site_perl/5.10.1/MojoX/Renderer/TT.pm line 165.
05:55 crab i don't know. i should File::Spec->catfile something?
05:55 sri lol
05:55 sri crab: very likely
05:56 marcus sri: get_inline_template deprecated?
05:56 sri crab: or actually, Mojo::Home->rel_file($file) or so
05:56 sri marcus: half a year ago, now gone
05:57 sri you want get_data_template
05:57 sri inline means something else these days
05:58 sri crab: reuse the home instance, it has the base path
05:58 sri ->rel_file will make it absolute
05:58 crab ->rel_file("$watch/$f")? groovy
05:58 sri damn, why does my test die :(
05:59 sri crab: without $watch
05:59 sri $watch is in the home instance
05:59 sri $home->rel_file($f)
06:03 sri damn...
06:03 sri why does my test end with "Terminated"
06:04 sri i'm quite sure i'm handling signals right
06:04 crab sri: http://toroid.org/misc/0001-Make-Morbo-s​tat-files-inside-their-directories.patch
06:05 marcus sri: well, I'm sure I do, but it's actually the TT renderer that breaks
06:06 crab sri: better?
06:06 sri crab: looks good
06:06 marcus sri: strange that we haven't been seeing deprecation notices?
06:07 fhelmber_ joined #mojo
06:08 crab yay! localhost development is fast!
06:08 marcus hmm, seems actually fixed in latest Render-TT. Guess I was running an old version
06:08 sri marcus: https://github.com/kraih/mojo/blob/5​0b595ba9e4383d84dc04af81e630afc3e4b0​da0/lib/Mojolicious/Renderer.pm#L74
06:09 sri and the warnings must have been there
06:11 marcus sri: Morbo looks good. Wish it would default to -w $home on non-lite apps
06:11 sri marcus: wrote that on the list too ;p
06:12 sri feel free to find a solution :)
06:12 crab marcus: if it did it would restart you app every time it writes something to logs/app.log!
06:12 sri eep
06:12 crab and restarting your app would, you know, write to logs/app.log too...
06:12 marcus not using logs/ :)
06:13 marcus but yeah
06:14 sri suppose we could default to ~/lib ~/template ~/../lib and ~/../templates or so
06:14 marcus seems pretty sane
06:14 sri that would cover most dwim cases and backfire rarely
06:16 sri but why won't my test pass? :S
06:18 sri how weird
06:19 sri i moved a line and the result is entirely different
06:20 crab https://github.com/MrMEEE/bumblebee/c​ommit/a047be85247755cdbe0acce6#diff-1
06:20 sri seen it :D
06:20 sri comedy gold
06:21 trone_ is now known as trone
06:21 yko oh...
06:22 crab i like the comment, "it stops supporting [ubuntu, suse, etc.] right after installation"
06:25 GitHub120 joined #mojo
06:25 GitHub120 [mojo] kraih pushed 1 new commit to master: http://bit.ly/ksBdI2
06:25 GitHub120 [mojo/master] fixed Morbo file discovery bug and added tests - Sebastian Riedel
06:25 GitHub120 left #mojo
06:28 AmeliePoulain joined #mojo
06:29 sri hmm, MORBO_DEBUG=1 is quite verbose now
06:30 sri but i guess it has to be
06:38 sri hmm
06:38 koban joined #mojo
06:38 sri morbo could also force logs to be written to stderr
06:39 sri but then mode specific log files wouldn't make much sense...
06:39 sri naah, it's good the way it is
06:48 Drossel left #mojo
06:48 Kulag joined #mojo
06:53 GitHub65 joined #mojo
06:53 GitHub65 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lq2dud
06:53 GitHub65 [mojo/master] fixed another small path bug in Mojo::Server::Morbo - Sebastian Riedel
06:53 GitHub65 left #mojo
06:56 sri anyone tried it on windows yet?
07:15 Foxcool left #mojo
07:16 Foxcool joined #mojo
07:23 Foxcool left #mojo
07:23 Foxcool joined #mojo
08:01 sri \o
08:01 sri o/
08:01 sri \o/
08:09 marcus sri: what is windows?
08:09 purl windows is one hell of an event! or crashing on someone or very pretty when the computer is powered off or rebooting or lacking that tool you want
08:09 marcus :D
08:10 sri !
08:11 perlrocks Twitter: "@dot_cloud I'm contributing to Mojolicious. Can haz T-shirts?" --marcusramberg http://twitter.com/marcusramb​erg/status/81634968324931584
08:11 marcus guess now I have to actually write some code. :-/
08:11 * sri cracks the whip
08:12 * marcus is a bit worried about his throat. Nordic Perl Workshop presentation tomorrow.
08:14 spleenjack joined #mojo
08:17 cosmincx left #mojo
08:25 crab morbo! i like morbo.
08:26 crab sri: have you ever considered crediting people in the notes by name rather than irc nick?
08:28 cosmincx joined #mojo
08:28 sri crab: names are hard
08:28 sri it's already tricky to credit people by name in the credits section
08:29 sugar joined #mojo
08:29 sri like 90% only use nicks everywhere
08:32 sugar left #mojo
08:33 sri if people start sending me patches with proper changelog entries i'll gladly apply them, but otherwise i'll only invest the least amount of time necessary
08:35 sri btw. it's not even irc nick, just whatever online nick i know
08:37 sri ideally everybody would just send proper pull requests with real name and everything... that would be awesome :)
08:39 marcus just use your name as your nick. problem solved
08:41 crab in the credits section, yes, tat's what i meant.
08:42 crab i think my keyboard is dying. random keys seem to just drop out. or maybe it's this usb->ps/2 converter
08:43 marcus crab: what kind of keyboard are you using?
08:44 crab marcus: it's a "tvs gold" keyboard. indian company, sells millions of keyboards. this is their high-end one, with mechanical keys.
08:44 crab but alas, with only slightly less than cheap plastic construction.
08:45 marcus <3 apple keybaords
08:45 marcus keyboards even
08:45 crab still, it's the best keyboard i've found after the cherry g80 someone gave me died.
08:45 marcus funny typo, really.
08:45 sri <3 apple and ibm keyboards
08:45 crab the chiclet-keys ones?
08:45 marcus ibm mechanical keyboards are pretty groovy
08:45 sri yea
08:46 crab an apple keyboard would be about three times as expensive as this one, and about ten times the price of a normal keyboard.
08:46 crab i've never really used one, but i've seen one in a shop.
08:46 marcus http://www.recycledgoods.com/products/IBM-82G2383​-IBM-Model-M-Clicky-PS-2-Keyboard-12-F-Keys.html
08:49 Drossel joined #mojo
08:50 Kulag left #mojo
08:50 sugar joined #mojo
08:51 crab sri: i assume you're open in principle to a patch that uses inotify to watch for changes in morbo?
08:51 crab to be enabled automatically if File::inotify2 (or whatever it's called) is installed.
08:52 sri not really
08:52 sri i'd rather like to see an alternative to morbo
08:53 crab which does what?
08:53 purl which does are you using?  the man pages or the w3c dom specification?  :)
08:53 sri pretty much the same
08:54 sri it's not like we gain much by supporting inotify in core
08:55 crab actually, it makes no sense. it's a development server. wtf does it matter if it wastes time doing a bunch of stat()s?
08:55 crab sorry.
08:55 sri :)
08:56 sri that was pretty much my thought too
08:57 marcus I need my cpu for porn tho!
08:58 sri morbo is at 0.6% cpu here
08:58 sri one of the two cores
08:58 crab marcus has very cpu intensive porn.
08:58 crab even 0.4% matters!
08:58 sri i see
08:59 Drossel left #mojo
09:00 sri i would also expect most file watchlists to be entirely cached
09:02 sri oh, falling skies starts this weekend :o
09:05 spleenjack left #mojo
09:09 marcus The internet is really great / For Porn
09:10 marcus o/' The internet is for porn, the internet is for porn. so grab your dick and double click for porn porn porn o/'
09:20 spleenjack joined #mojo
09:21 Kulag joined #mojo
10:01 j3nnn1 left #mojo
10:07 dekimsey joined #mojo
10:10 mib_wpiyrm joined #mojo
10:11 mib_wpiyrm left #mojo
10:24 marcus http://www.youtube.com/watch?v=​FZjB4QFfcI4&amp;feature=related
10:30 marcus sri: What is the use case for setting a custom socket for your UserAgent?
10:30 marcus it seems unclear from the documentation
10:36 DaTa sri: http://dl.dropbox.com/u/5558867/all_text.txt what do you think about that?
10:41 Foxcool left #mojo
10:52 spleenjack1 joined #mojo
10:54 spleenjack left #mojo
11:01 perlrocks Twitter: "Mojolicious:: I'm making a prototype in the Lite, I'm out without peace. I do double effort." (ja) --purasiibo http://twitter.com/purasiib​o/status/81677756705943552
11:28 alnewkirk|com yow
11:28 purl I'm receiving a coded message from EUBIE BLAKE!!
11:29 j3nnn1 joined #mojo
11:31 Akron joined #mojo
11:40 perlrocks Twitter: "Story Mojolicious. also wrote for the processing of all requests in the bridge / under, requests routed out (say, 404, static) does not apply to. Well of course you. If you want to answer that it is highly ish you going to hook on startup." (ja) --xerespm http://twitter.com/xerespm​/status/81687598501867520
11:42 koban can i counfigure router so the :controller can
11:43 crab can what?
11:43 purl != should
11:43 crab purl: forget can
11:43 purl crab: I forgot can
11:43 koban has '/' inside it
11:43 koban '/big/list' => Controller::Big::List ?
11:45 koban '/:controller' will capture only 'big' part of url
11:46 perlrocks Twitter: "Story Mojolicious. And taking $ r-> route ('/')-> to ('/ index.html') did not work you write solved. Well, Ichiichi this, I should redirect_to to define the action to the controller? Oh well be over." (ja) --xerespm http://twitter.com/xerespm​/status/81689125438242816
11:48 crab koban: *controller?
11:49 crab see the examples in Mojolicious::Guides::Routing
11:49 koban 'controller' has a special meaning
11:50 perlrocks Twitter: "Starman + Mojolicious:: Try the Lite." (ja) --equinox79 http://twitter.com/equinox7​9/status/81690137943220225
11:50 crab ...and?
11:51 sugar left #mojo
11:51 crab *controller and :controller and .controller will all capture to $stash->{controller}
11:52 crab of course i don't know what will HAPPEN if you stick a / inside the controller, but you can certainly make the router put one in
11:52 koban so mojo coudn't guess module name from $stash->{controller} if it has '/' in it
11:53 crab why do you want controllers with /s in them?
11:54 koban pretty urls
11:54 koban *beautiful urls
11:55 crab well, that's certainly  noble goal :-). /foo/bar/blah to find Foo::Bar->blah, instead of /foo-bar/blah?
11:56 koban yep
11:57 crab well, i know of no way to make that happen directly. you could try submitting a patch to sri to handle / in controller specially, and it won't affect people who do :controller, but only *controller
11:57 perlrocks Twitter: "It's easy and the Mojolicious, HTTP is the prototype of a finished feel. What's next job queue. Become care of Jonk." (ja) --purasiibo http://twitter.com/purasiib​o/status/81691994228924416
11:58 crab but personally i don't know how i would feel about that. it feels like a bit of unwanted intimacy between url and filesystem.
11:58 perlrocks Twitter: "Story Mojolicious. Oh I do, what I call callback and under. U pick up. → $ r like this-> under ('/')-> get (sub {shift-> render_static ('/ index.html')});" (ja) --xerespm http://twitter.com/xerespm​/status/81692230754119680
11:59 moritz that looks... mangled and wrong
12:01 koban why do you think so?
12:02 moritz koban: I was talking about the tweet, not your thing
12:02 koban aah, sorry
12:04 sugar joined #mojo
12:04 moritz though one has to ask if you're not trying to give the slash too many meanings
12:16 crab the forward slash, a basic attacking technique in japanese swordplay.
12:18 crab now coming to you in URLs, attacking your modules.
12:31 koban crab: is converting '-' to '::' the same intimacy between url and filesystem, isn't it?
12:32 mattastrophe left #mojo
12:42 crab maybe
12:42 crab i don't use :controller at all
12:44 koban you're lucky :)
12:45 koban seems you have not so many routes
12:51 koban sri: myabe typo? https://github.com/kraih/mojo/blob/m​aster/lib/Mojolicious/Routes.pm#L207
12:51 koban *maybe
12:55 crab i do have lots of routes.
12:55 crab and i use a routing helper to construct them.
12:56 crab i used to have some :controller and :action routes, but i recently removed them. i don't like them much. they're good for initial development and testing though.
13:02 koban i also think about using helper for generating routes
13:04 koban are you using config to pass to the helper info about needed routes?
13:04 dekimsey left #mojo
13:05 crab koban: no, directly specifying arguments
13:06 spleenjack joined #mojo
13:06 koban crab: thanks
13:08 ph1g joined #mojo
13:10 spleenjack1 left #mojo
13:13 ph1g hrm how does one return customer HTTP 400/500 status codes with mojo?
13:14 crab ph1g: $self->render(status => 500, ...)
13:14 ph1g oh snap, cool. thanks
13:14 moritz like any other status, really :-)
13:15 ph1g good deal.
13:15 ph1g really wish I could perl -d this ^_^
13:15 crab ph1g: why can't you?
13:16 ph1g feel like I tried - does it fork or something? Doesn't stop at my break points?
13:16 ph1g s/?$/./
13:16 crab PERLDB_OPTS=NonStop perl -d ./app daemon --reload --listen http://127.0.0.1:3000
13:16 crab and sprinkle $DB::single =1 wherever you want it to stop
13:16 ph1g o
13:16 ph1g rgr that. makes life much easier.
13:16 crab or, you know, whatever.
13:17 crab it's just perl, not magic.
13:17 ph1g yea definitely, wasn't behaving as I expected with the interactive debugger apparently
13:17 ph1g btw, I like to maintain that perl _is_ magic, since everybody gripes about it anyway
13:18 ph1g "It's magic, and you'll either love it or hate it. Depends if you're a magician or not."
13:18 crab it's just perl, not REAL magic ;-)
13:18 ph1g haha
13:21 ph1g perl -e 'use strict;use warnings;my $the_truth = "0a796177796e6120656d2065766f6c20756​f7920747562202c6472656e2061206d49"; my $tell = sub { return join("", map { chr(hex($_))}grep {$_}reverse(split(/(.{2})/,$_[0])))};print $tell->($the_truth);';
13:28 sugar left #mojo
13:31 sugar joined #mojo
13:45 sh9 joined #mojo
13:48 mattastrophe joined #mojo
13:57 perlrocks Twitter: "File encoding can now be set up anyway is detected automatically. charset can be changed in API Mojolicious. I want to be able to set the charset route specific." (ja) --jamadam http://twitter.com/jamadam​/status/81722113043611648
14:08 perlrocks Twitter: "A solution to install Ruby on Rails, Django (Python), Perl and Mojolicious on Microsoft IIS is here! http://www.helicontech.com/zoo/" --helicontech http://twitter.com/heliconte​ch/status/81724931133542400
14:11 sh7 joined #mojo
14:12 Akron left #mojo
14:16 sh9 left #mojo
14:36 fhelmber_ left #mojo
14:38 ph1g ls
14:50 moritz no such file or directory
14:56 koban left #mojo
15:03 arpadszasz joined #mojo
15:50 AmeliePoulain left #mojo
15:54 ph1g so ah... no built in xml renderer?
15:56 ph1g guess I Could just use XML::Simple ... bet I need to handel setting content-type headers and what not?
15:57 cosmincx left #mojo
16:13 sri DaTa: unless you also have a better space algorithm i don't care too much
16:14 sri koban: / in controllers is a bad idea, we would lose roundtrip integrity for camelize and decamelize
16:15 sri and the line you linked does not look like a typo
16:16 sri crab: don't suggest using --reload, it is dead ;p
16:20 sri ph1g: there is no xml renderer because xml renderers suck :)
16:20 sri imo you're generally better off using a template to generate xml or using Mojo::DOM to rewrite xml
16:31 ph1g sri: meh.
16:31 ph1g sri: XML simple is pretty effective
16:32 sri and very very naive
16:32 ph1g I'd prefer YAML if my client doesn't support JSON
16:32 sri for structured data i would always use json anyway
16:32 ph1g Unfortunately everybody and their mother wants XML
16:33 sri if XML::Simple works for your use case, just use it
16:33 ph1g wrd.
16:40 perlrocks Twitter: "Finally turning my mind to websocket support  for #mojolicious and the various other browsers. Seems mojo is on the ball." --jamiepopkin http://twitter.com/jamiepopk​in/status/81763032291741696
16:43 sugar left #mojo
16:44 spleenjack left #mojo
16:48 * sri wonders if moritz has tried morbo yet
17:01 metaperl joined #mojo
17:07 kaare joined #mojo
17:26 GitHub173 joined #mojo
17:26 GitHub173 [mojo] kraih pushed 1 new commit to master: http://bit.ly/mgJmc4
17:26 GitHub173 [mojo/master] improved whitespace trimming in Mojo::DOM - Sebastian Riedel
17:26 GitHub173 left #mojo
17:27 sri DaTa: it's a little better now, but something more sophisticated would be cool
17:31 sri maybe some post-processing that makes sure ".", ",' and ";" are formatted right
17:39 GitHub90 joined #mojo
17:39 GitHub90 [mojo] kraih pushed 1 new commit to master: http://bit.ly/k4lGGV
17:39 GitHub90 [mojo/master] improved punctuation handling in Mojo::DOM - Sebastian Riedel
17:39 GitHub90 left #mojo
17:54 * sri wonders if there's a magical regex for fixing punctuation
17:58 ph1g s/./:)/g; s/?/=\/g; s/;/^_^/g;
17:59 ph1g it's like a tween dream come true
17:59 sri seems sensible
17:59 * sri patches
17:59 * ph1g chuckles
17:59 ph1g I need coffee and/or an ice cream bar
18:00 ph1g sri: thanks btw. if it weren't for you i'd still be dicking around in groovy to make web services.
18:00 sri \o/
18:01 * sri wouldn't mind an ice cream bar either
18:01 ph1g bb, foraging
18:25 crab oh boy, i haven't had ice cream for so long
18:29 crab sri: i would like your advice on the following situation:
18:31 crab i need a process (not in the pid=fork sense, but the set of steps sense) that takes various rows from a table and generates some XML from them one by one and uses Mojo::UserAgent to submit them to a server (which needs a session token that i have to get first by sending a login request)
18:32 crab this would need to happen automatically at 10:00 every day, and also several times afterwards if there were any changes to the table, and also if someone clicks "submit now" on a web interface.
18:33 crab until now, it didn't use mojo::ua, it just took the entries and made a spreadsheet from them and spat it out to the browser.
18:33 crab now, i'm thinking it may not be appropriate to make it a controller/action thing (process may take minutes to complete, etc.)
18:34 sri cron job
18:34 purl i guess cron job is easier for me
18:34 crab do you have any suggestions about how to structure it, given the "click on submit" requirement?
18:34 crab purl: forget cron job
18:34 purl crab: I forgot cron job
18:34 sri i'm not sure what you mean with click on submit
18:34 crab rescan the table and send new entries on request
18:34 crab sorry, "submit" being what the script does, i.e. with the UA
18:35 sri still don't get it, there is contradicting information
18:36 crab there's a cron job that does $stuff. it'll be started by cron. but i also need to start it (or do what it does) if someone clicks on something in (the ui to) my mojo app.
18:37 crab and just like that, an answer: i can make it monitor some file, and have the mojo app write a "restart" command to the file or something.
18:37 sri yea
18:38 sri you could have the cron job check every minute or so if a file exists
18:38 crab actually
18:39 crab i think i'll just have the cron job check for new entries frequently, and make the "submit now!" button say "rescan request sent to backend process" (or something similarly official-sounding) and do nothing else.
18:39 sri haha
18:40 crab yes, i think that is exactly what i shall do.
18:42 sri sounds very enterprisey
18:44 crab (suggestions for appropriate wording gratefully accepted)
18:45 sri "While you click this button new reports will be generated in the background. [OK!]"
18:48 chansen if you are going to have a cron job starting every minute, wouldn't it make more sense to write a daemon which push requests to?
18:48 crab if i had a daemon, i wouldn't need a cron job to send requests to it.
18:48 chansen then write one ;P
18:49 crab i'm actually going to have a process that is started by cron just before ten, and stays alive for a couple of hours, scanning for things and sending them to the server, and then quits.
18:49 chansen ok
18:49 crab that's all i need.
18:49 crab (plus the important-looking button, of course.)
18:50 crab thanks, sri and chansen for the suggestions.
18:51 sri "IMPORTANT: Reports are generated in the background. [OK]"
18:53 sri or give them a meaningless decision so they feel important... "IMPORTANT: Would you like to generate reports? [YES] [NO]"
18:54 crab WARNING: you must be an authorised administrator to use this function!
19:02 perlrocks Twitter: "Had an idea. Going to mess with Mojolicious, but only if I have the perldocs installed. Perl is *well* retro" --purinkle http://twitter.com/purinkl​e/status/81799007298519040
19:10 sri btw. i'm still waiting for a morbo windows test result
19:35 sh7 left #mojo
19:41 jwang left #mojo
19:51 mattastrophe left #mojo
20:04 GitHub23 joined #mojo
20:04 GitHub23 [mojo] kraih pushed 1 new commit to master: http://bit.ly/lzmfjP
20:04 GitHub23 [mojo/master] let Morbo watch the "lib", "templates" and "public" directories in the current working directory by default - Sebastian Riedel
20:04 GitHub23 left #mojo
20:05 sri that should be quite dwim most of the time
20:07 sri i'm not sure though if -w should append to or override the default
20:07 sri currently it overrides
20:12 ph1g left #mojo
20:27 perlite_ joined #mojo
20:31 GitHub77 joined #mojo
20:31 GitHub77 [mojo] kraih pushed 1 new commit to master: http://bit.ly/j3uFZd
20:31 GitHub77 [mojo/master] more Morbo quotes - Sebastian Riedel
20:31 GitHub77 left #mojo
20:31 perlite left #mojo
20:31 perlite_ is now known as perlite
20:50 jwang joined #mojo
21:08 moritz wtf is morbo?
21:08 purl morbo is not pleased!
21:09 sugar joined #mojo
21:11 sri :D
21:11 sri moritz: morbo is what you asked for ;p
21:11 sri http://groups.google.com/group/mojolicio​us/browse_thread/thread/75b29305d01b25bf
21:13 moritz sri: cool, will try as soon as I get back to frontend development
21:17 sri little surprised by how well it works
21:18 moritz I'm currently working on https://github.com/moritz/WebService-Libris
21:18 moritz mojo is the only dependency so far :-)
21:20 sri are you scraping your own web service?
21:21 sri oh rdf
21:21 sri wouldn't a json web service be easier to deal with?
21:30 moritz not my own :-)
21:30 sri ah, ok :)
21:31 moritz libris.kb.se offers json for their search API, but it doesn't offer as much information as the RDF thing
21:33 bosphorus joined #mojo
21:36 sri moritz: maybe you want to solve a problem that's related to your current work :)
21:36 sri https://github.com/kraih/mojo/commit/0d​698306a6723339ea024086551eff3eda69e2cb
21:36 sri we still need smarter punctuation handling in the text extraction of Mojo::DOM
21:37 sri https://github.com/kraih/mojo/commit/7a​e26582ad28bd08cee29a058b3a2f97b776fe08
21:38 sri it's still quite naive
21:39 * moritz is pretty sure that any code he touches today will be bs
21:39 sri may i suggest not touching code today?
21:40 * sri will watch torchwood: children of earth now
21:44 kaare left #mojo
22:00 stephen left #mojo
22:01 sugar left #mojo
22:28 j3nnn1 left #mojo
22:35 tempire daily spam check
22:35 tempire no spam!
22:35 purl no spam is sent without permission.
22:37 preflex left #mojo
22:41 preflex joined #mojo
22:44 metaperl left #mojo
22:47 sri \o/
22:55 tempire sparkleshare is awesome
23:14 fhelmber_ joined #mojo
23:19 arpadszasz left #mojo
23:20 perlrocks Twitter: "@twistedup90 @BillWatts http://t.co/RlSIvsU Interesting Perl MVC framework. I have not used Perl in a long time.. Looks like PHP though ;)" --al3xnull http://twitter.com/al3xnul​l/status/81863713740697600
23:20 * tempire gasps
23:24 * sri faints
23:53 fhelmber_ left #mojo
23:54 Kulag left #mojo
23:55 Kulag joined #mojo
23:58 Kulag left #mojo
23:58 Drossel joined #mojo

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