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

IRC log for #mojo, 2013-11-04

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

All times shown according to UTC.

Time Nick Message
00:10 espent joined #mojo
00:17 johnny5_ sri: sounds really cool either way. I think it might be able to help me when I write a web service that will add jobs to this queue and go off and do work.
00:27 russum joined #mojo
00:30 preflex joined #mojo
00:58 duncanthrax joined #mojo
01:19 sri hmmm
01:19 * sri wonders if he should put the worker registry and jobs in the same collection or keep them separate
01:20 sri if i mix them the job queue would only need one collection
01:20 sri but i guess i might follow the gridfs model and separate
01:20 sri (chunks and files there)
01:21 mst would it be that hard to allow both?
01:21 mst so you can do it the simple way by default and then people who want more clever can have it
01:21 sri i want to dictate one way
01:22 sri less options is a feature here
01:22 mst ah, you're aiming for "and if you don't like the choices, build your own" ?
01:22 sri yea, or fork it
01:24 sri i actually don't think there are any advantages to either design
01:26 sri also not sure how i'm going to store overall stats
01:26 sri that's actually what made me consider using one collection
01:27 sri currently i have worker and job objects, neatly separated into their own collections... but overall stats would just be one document, having a separate collection for that too seems silly
01:27 sri s/objects/documents/
01:28 sri this fits better into redis :)
01:29 sri if i add real-time notifications later on with a capped collection... i would need separate collections anyway...
01:33 sri i guess no overall stats for version 1 :)
01:33 sri only gets important for the dashboard anyway
01:43 russum joined #mojo
02:02 basic6 joined #mojo
02:38 sri gonna go with one collection for now, just to see how it goes
02:49 russum joined #mojo
02:55 duncanthrax2 joined #mojo
03:30 marcos wrong about what?
03:32 mst eh?
03:33 mst jberger: still conscious?
03:33 purl conscious is feels dirty
03:33 marcos <sri> powerman, jberger, tempire, marcus, crab: if i'm wrong please correct me
03:34 marcos i need better scrollback
03:37 jberger_ mst: mostly, what's up?
03:40 jberger_ I'm never sure which variants of marcus are actually marcus
03:40 mst jberger_: so, I've always been using takahashi.xul
03:40 mst which means a crucial feature for me is auto-resizing of text
03:41 mst which I guess means some javascript on slides using that style
03:41 jberger_ mst: I've liked your style of talks, I didn't know it had a name
03:41 mst yeah, it was written a loooong time ago by ... I dunno who
03:42 mst I think I stole it from obra who stole it from audrey who ... no idea
03:42 jberger_ anyway, yes, I have been meaning to add config options for including additional js and css files
03:42 jberger_ its a simple thing, I just haven't done it yet
03:43 mst well, the first thing I'll need to do is figure out the JS at all
03:43 jberger_ couldn't css do it?
03:43 mst how?
03:44 jberger_ font-size, eh, that kinda depends on screen size
03:44 jberger_ ok maybe not
03:44 mst right. hence why I expect to need some JS
03:44 mst my plan is to take apart the takahashi code and figure out how it's doing it
03:44 jberger_ ctrl+
03:44 jberger_ :-)
03:44 mst yeah, that doesn't work when different slides have different numbers of words
03:44 jberger_ oh, true
03:45 jberger_ oO
03:45 jberger_ oh I get it now
03:45 jberger_ k, I'm on the right wavelength now
03:45 mst right. this is why I've not been able to replace the .xul thing
03:45 mst but that requires firefox 3.5 or lower
03:46 mst I'm tired of having to maintain a firefox portable install on the machine I present on
03:46 jberger_ eek
03:46 jberger_ is this what you're looking at? https://github.com/piroor/takahashi-method-xul/blob/master/takahashi/takahashi.xul
03:47 mst I suspect the version I was using is much older
03:47 jberger_ carp that's a lot of javascript too
03:47 mst but ideally I want to be able to present using $random_browser
03:47 mst so stealing the resizing part seems sane
03:48 jberger_ absolutely
03:48 purl Rather.
03:48 jberger_ purl keep out of this
03:48 purl jberger_: i'm not following you...
03:48 * sri pats purl
03:48 purl don't mess with me
03:48 jberger_ :-)
03:48 jberger_ mst: for the sake of testing, you can include the js file on any given page
03:49 mst yeah
03:49 mst I was pondering a helper
03:49 mst %= autosize begin
03:49 mst ...
03:49 mst % end
03:49 jberger_ I will add a config hook like I have in galileo for including overall js
03:49 jberger_ oh that would work too
03:49 jberger_ you can acually add helpers in the config file, before returning the hash
03:49 jberger_ app->helper ...
03:50 jberger_ that would be simple
03:50 mst right, and then I can occasionally have 'normal' slides
03:51 mst autoresizing isn't nearly so fun for e.g. code
03:52 jberger_ sounds like a perfect solution, assuming there is some sane way to port things
03:52 jberger_ or not so sane ... this is Perl after all :-)
03:52 mst right, ok, sanity check passed then, I'll play with javascript at some point
03:53 * jberger_ wishes javascript had true lexicals
03:53 jberger_ how is it after all this time and still Perl does scoping better than everyone else
03:54 jberger_ was purl always this hostile?
03:54 * jberger_ gives purl a piece of pie
03:54 mst she isn't hostile, she just hates you.
03:55 jberger_ honestly, ignoring a piece of pie, I must have really pissed it off!
03:55 mst purl: botsnack
03:55 purl thanks mst :)
03:56 jberger_ oh you bribe it, gotcha
03:56 jberger_ anyway, I must head to bed, I don't know how you europeans stay up this late
03:57 jberger_ mst: glad you're like it so far
03:57 mst I've not honestly looked in detail yet, just skimmed the readme
03:57 mst given my relatively minimal requirements I can fairly easily assume that the basic functionality is going to look how I expect it to :)
04:00 jberger_ it has a few always-on controls (prev/next buttons, slide count etc) that should be configurable which aren't yet
04:00 jberger_ but yeah
04:00 jberger_ o/
04:28 marcos what are you talking about?
04:49 preflex_ joined #mojo
04:53 dqw114 joined #mojo
05:19 arpadszasz joined #mojo
05:21 johnny5_ joined #mojo
06:01 espent joined #mojo
06:01 powerman joined #mojo
06:23 preflex_ joined #mojo
06:46 avkhozov joined #mojo
06:47 sh4 joined #mojo
06:53 Vandal joined #mojo
07:05 denisboyun joined #mojo
07:15 dpetrov_ joined #mojo
07:16 basiliscos joined #mojo
07:32 basiliscos joined #mojo
08:08 Dandre joined #mojo
08:09 highflying joined #mojo
08:14 kanishka joined #mojo
08:19 preflex_ joined #mojo
08:20 rem_lex joined #mojo
08:21 d4rkie joined #mojo
08:22 batman http://p.thorsen.pm/f570e4520a43 # any idea why this doesn't work? anyone worked with jquery and long polling?
08:23 hrupp joined #mojo
08:28 trone joined #mojo
08:32 maxhq joined #mojo
08:47 maxhq joined #mojo
08:48 marcus jberger_: I'm usually me
09:02 dod joined #mojo
09:15 abra_ joined #mojo
09:18 marcos i'm me too. i have no idea why anyone is confused.
09:20 dod joined #mojo
09:26 fhelmber_ joined #mojo
09:49 nicolaas joined #mojo
10:22 n0n joined #mojo
10:23 n0n hi. what's best pratice for command line arguments? looking at @ARGV you would find your own arguments mixed with those of M::Commands....
10:24 n0n maybe a "dedicated" startup script explicitly without M::Commands. But then you also loose a lot of features...
10:28 denis_boyun joined #mojo
10:40 n0n just use %ENV?
10:52 dotan joined #mojo
11:28 dotan joined #mojo
11:31 n0n joined #mojo
11:35 mire joined #mojo
12:00 bpmedley batman: Are you setting your timeout in Mojo?
12:22 batman what do you mean?
12:31 fhelmber_ joined #mojo
12:47 batman http://p.thorsen.pm/299340ee9fef # manged to get it working by fiddling manually with XMLHttpRequest
12:47 batman not sure if it works in ie though... :/
12:47 batman i think it should work in ie8+
13:03 basiliscos joined #mojo
13:07 basiliscos1 joined #mojo
13:31 arthas joined #mojo
13:50 rem_lex|pivo joined #mojo
13:50 toebu joined #mojo
14:07 gryphon joined #mojo
14:07 dotan joined #mojo
14:07 n0n1 joined #mojo
14:24 denisboyun joined #mojo
14:26 bluescreen joined #mojo
14:33 two_tired joined #mojo
14:54 kanishka joined #mojo
15:13 russum joined #mojo
15:15 punter joined #mojo
15:24 fhelmbe__ joined #mojo
15:38 beyondcreed joined #mojo
15:39 toebu joined #mojo
15:57 sri interesting, number of page views on http://mojolicio.us has gone up noticeably since the search box was added while number of visitors remained the same
15:58 sri guess it's working \o/
16:04 toebu joined #mojo
16:04 nicomen :-)
16:28 basiliscos joined #mojo
16:33 denis_boyun joined #mojo
16:35 abhishekisnot sri: I wish if that search box can recognize my searches as I start typing. Kind of like metacpan, but without default focus. That way I can always visit mojolicio.us instead of searching google for mojo docs.
16:44 sri abhishekisnot: patches welcome
16:44 purl i think patches welcome is always true or unless for metacpan.org or swahili for "Put up or shut up."
16:52 punter joined #mojo
16:53 gtodd abhishekisnot: that might be a job for ..... Suppper jQuery!
16:54 gtodd or maybe google cse can do it somehow ...
17:15 rem_lex| joined #mojo
17:33 d4rkie joined #mojo
17:51 d4rkie joined #mojo
17:58 denis_boyun__ joined #mojo
18:39 two_tired joined #mojo
18:57 abhishekisnot hmm, somehow github is down: http://pastebin.com/NEji4Z0h
19:00 bowtie_ joined #mojo
19:05 abhishekisnot https://github.com/kraih/mojo/pull/558
19:11 denis_boyun joined #mojo
19:14 Mike-PerlRecruiter_ joined #mojo
19:14 maxhq !dd!
19:16 punter joined #mojo
19:36 basic6 design question. i'm working on a web application that consists of frontend and backend which are 2 separate mojolicious apps at this point and i'm wondering if it would be better to merge them into one application since they use the same db and some static files. there is a setting "namespace" but if I get it right, it only defines where to look for the controller classes. the 2 apps have different templates thouigh, so would it be possible to
19:36 basic6 make "Controller#action" use templates/App1/controller/action.html.ep instead of templates/App1/controller/action.html.ep ? also the names of the controllers in the apps are not unique ... is it even possible to merge them?
19:38 maxhq1 joined #mojo
19:40 mst I would tend towards not merging them
19:40 mst the only real cost is some RAM
19:40 mst and the flexibility of being able to deploy separately is worthwhile
19:40 mst combined apps tends to become annoyingly monolithic
19:43 sri sounds like you don't really want to merge them anyway... if the goal is running them with the same server, then there's http://mojolicio.us/perldoc/Mojolicious/Plugin/Mount
19:53 basic6 mst: sri thanks, i won't merge them.
20:16 trone joined #mojo
20:34 russum joined #mojo
21:02 batman alternative to M::P::Mount: Toadfarm.
21:43 punter joined #mojo
21:53 punter joined #mojo
22:26 lukep joined #mojo
22:41 phillipadsmith joined #mojo
22:43 chansen joined #mojo
22:58 basiliscos joined #mojo
23:03 rem_lex joined #mojo
23:38 xdbr joined #mojo

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