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

IRC log for #mojo, 2014-12-31

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

All times shown according to UTC.

Time Nick Message
00:09 marty joined #mojo
00:13 muraiki_ joined #mojo
00:15 muraiki_ hi all, I'm new to mojo. if I want to share some state across clients using a variable (such as connected clients for a websocket app) I should use morbo, not hypnotoad, right? I figure with hypno I will also need a message queue of some sort to communicate between the processes
00:15 Grinnz_ morbo vs hypnotoad isn't a decision related to that
00:16 Grinnz_ morbo is for development, hypnotoad is for production
00:16 muraiki_ hrm, but if hypnotoad preforks then I won't be able to share that state using something simple like a global var, correct?
00:16 muraiki_ or am I completely misunderstanding things
00:16 Grinnz_ right, so you shouldn't rely on that in morbo either
00:17 muraiki_ hrm, ok. I had just seen an example using that technique in mojo, but I guess it's not the right way to go
00:17 Grinnz_ you don't want to deploy it using morbo, its not made for that (it only handles one request at a time)
00:17 muraiki_ oh ok, that's very good to know
00:17 dparry joined #mojo
00:18 Grinnz_ message queue, database, this is the sort of thing you should look at to communicate
00:18 purl Sorry, I've never seen queue, before.
00:18 Grinnz_ purl: i wasn't talkin to you
00:18 purl Grinnz_: sorry...
00:19 muraiki_ Grinnz_:  yeah, I've used rabbitmq before, albeit not any of the perl libraries.
00:19 muraiki_ thanks for your help
00:22 jberger muraiki_: it's true that morbo is for development
00:22 jberger it's also true that hypnotoad won't let you share state
00:23 jberger but if you want to do that just use the daemon
00:23 KCL_ joined #mojo
00:23 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Built-in-web-server
00:23 jberger I'm not recommending that, you probably should use a message queue, but then again sometimes just crossing your controllers is enough
00:24 jberger sri: thanks,  I was getting there
00:26 muraiki_ I see. thanks!
00:26 neyasov_ joined #mojo
00:29 Grinnz_ and of course, if you do use a single-process daemon, you will need to take great care to avoid blocking code, since it can't handle new requests during that time
00:30 muraiki_ roger
00:53 sri hahahaha
00:53 purl LOLCON 4 reached.
00:53 * sri just learned that damian now teaches "return undef;"
00:53 sri \o/
01:03 preaction wow. so volume 2 of PBP should probably come sooner rather than later...
01:07 sri in fact, he now teaches not to write context sensitive functions :)
01:07 Grinnz hehe
01:18 jonquest joined #mojo
01:23 ignacio_ joined #mojo
01:28 neyasov_ joined #mojo
01:31 hesperaux joined #mojo
01:40 asarch joined #mojo
02:15 jb360 joined #mojo
02:15 Grinnz POE::Loop::EV scares me...
02:16 Grinnz mainly the POE and EV parts :P
02:17 buu_ POE is your friend
02:17 buu_ POE is love
02:17 buu_ All hail the POE
02:18 Grinnz at least i know POE's author will actually answer my questions
02:21 Grinnz how does one go about subsuming an existing CPAN module anyway?
02:23 Nemix__ something not written by Rocco?
02:23 Grinnz POE::Loop::EV is not, and hasn't been updated in nearly 7 years
02:26 avenj Grinnz: http://neilb.org/2013/07/24/adopt-a-module.html
02:26 Grinnz ty
02:29 neyasov_ joined #mojo
02:50 klapperl joined #mojo
03:03 Grinnz https://github.com/Grinnz/POE-Loop-EV well i got the tests to _run_, so that's a start i guess
03:30 neyasov_ joined #mojo
03:44 noganex_ joined #mojo
03:52 Nemix__ good news
03:54 Eke- joined #mojo
03:56 skittles joined #mojo
04:31 sri a more complete JSON patch for Mojo::Pg https://gist.github.com/anonymous/0812a33be995f2a1852f
04:31 neyasov_ joined #mojo
04:34 Grinnz so, i just ran the tests that POE::Test::Loops generates and they pass
04:34 Grinnz maybe these old tests just suck
04:37 bpmedley_ joined #mojo
04:49 sri and more examples https://gist.github.com/anonymous/13fc9503e8bb38011075
04:49 sri even if i don't apply the patch, i'm sure a lot can be reused in the future
04:50 Grinnz nevermind... apparently these generated tests are not even using the EV module
05:00 hshong joined #mojo
05:13 dotandimet joined #mojo
05:15 damaya joined #mojo
05:15 damaya Hi guys, any of you use Twitter sign-in?
05:32 neyasov_ joined #mojo
05:50 sri this is a really good talk... basically the cloud is dead https://media.ccc.de/browse/congress/2014/31c3_-_6195_-_en_-_saal_g_-_201412272145_-_the_cloud_conspiracy_2008-2014_-_caspar_bowden.html
05:51 sri not really new information, but a good summary
06:10 marmez joined #mojo
06:22 dparry joined #mojo
06:25 * sri wonders if there are good postgres/json apis in other languages
06:25 sri (outside of plain old orms)
06:27 sri closest i come across is always Anorm from Scala
06:27 sri http://stackoverflow.com/questions/19599346/inserting-json-objects-in-postgresql-json-fields-with-anorm
06:33 rem_lex|pivo joined #mojo
06:34 neyasov_ joined #mojo
06:34 panzana` joined #mojo
06:34 stryx` joined #mojo
06:35 sri hmmm
06:35 sri http://sequel.jeremyevans.net/rdoc-plugins/files/lib/sequel/extensions/pg_json_rb.html
07:05 Eddy joined #mojo
07:13 Eke- joined #mojo
07:18 * tempire really likes return, and context-sensitive returns.
07:33 denis_boyun joined #mojo
07:35 neyasov_ joined #mojo
07:36 stl joined #mojo
07:42 stl joined #mojo
07:44 rem_lex joined #mojo
07:48 dod joined #mojo
07:49 dod joined #mojo
07:50 trone joined #mojo
07:58 damaya joined #mojo
07:59 punter joined #mojo
08:00 punter If I use Mojolicious::Plugin::RenderFile with the "data" option (for in-memory strings), can the string served contain wide characters?
08:00 punter Or rather, may it?
08:01 Adurah Does perl blow up or something when you try?
08:02 punter I haven't tried. I should, shouldn't I?
08:03 Adurah I usually bang on things until they work.
08:03 punter You're a welder?
08:04 punter ok
08:05 eseyman joined #mojo
08:12 kwa joined #mojo
08:12 punter it blows up, after all
08:15 Vandal joined #mojo
08:28 neyasov_ joined #mojo
09:06 amon joined #mojo
09:51 basiliscos joined #mojo
09:57 dparry joined #mojo
10:18 neyasov_ joined #mojo
10:34 ZadYree joined #mojo
10:38 sugar joined #mojo
10:44 denis_boyun joined #mojo
10:45 dod joined #mojo
11:20 neyasov_ joined #mojo
11:24 sugar_ joined #mojo
11:38 sh4 joined #mojo
12:13 dotandimet joined #mojo
12:21 neyasov_ joined #mojo
12:23 KCL joined #mojo
12:45 asarch joined #mojo
12:52 Kharec joined #mojo
12:59 ladnaV joined #mojo
13:05 neilhwatson joined #mojo
13:06 punter joined #mojo
13:19 rem_lex|pivo joined #mojo
13:22 neyasov_ joined #mojo
14:23 neyasov_ joined #mojo
14:38 batman jberger: i'm on vacation, but I will hand you a unit test you can help me out with, when I'm back
14:38 batman The thing is that waitpid() seems to change behavior dependent on if $SIG{CHLD} is set
14:39 batman And even stranger: _when_ it is set.
14:40 batman I actually looked at the POE code when I wrote ReadWriteFork. Guess I should revisit to look at the signal handling...
14:45 batman I do believe the /proc test will go away when I figure it out though. (If I figure it out)
14:47 sri https://github.com/kraih/mojo/pull/726 # not much else to say about this i guess
14:49 asarch joined #mojo
14:55 jberger batman: its cool, ForkCall is enough for me, but I do see a value in getting RWF up to a sort of full level of generic usage
14:56 jberger sri: re: 31c3, an interesting talk
14:56 jberger though it does make one point that I'm not sure I agree with
14:56 jberger yes, American citizens have more explicit rights than do non-US per US law
14:56 jberger that said, there still is no open oversight
14:57 sri https://github.com/kraih/mojo/pull/727 # not a good day for pull requests i guess
14:57 jberger so while we are "protected" we have no recourse
14:57 jberger it all sucks
14:58 jberger re 726: meh
14:59 jberger I've never been a huge fan of using data types for declaring intention, but then again, this doesn't "fix" that, it just flips it for little gain
15:01 jberger re: 727: I see no reason not to do it, then again, when do you need the list of cookies?
15:02 jberger hahaha, sri, you and I were on the same wavelength there!
15:02 sri :)
15:04 sri i would apply #726 if i could
15:04 jberger yeah, I get his point
15:04 jberger but personally, I would rather just have different methods for different intentions
15:05 sri that doesn't work for chaining
15:05 sri merge/replace in the query method is specifically for url_for
15:05 jberger ah
15:06 jberger that makes more sense
15:06 sri url_for->query([some => 'new args'])
15:06 jberger no
15:06 jberger oh
15:06 jberger right, I get it
15:08 batman 726:
15:08 batman What a weird request...
15:08 batman How is that supposed to be back
15:09 batman Compat?
15:09 purl Compat is probably just, well NOT
15:09 batman Arg!! Typing on phone :(
15:24 neyasov_ joined #mojo
15:28 neyasov_ joined #mojo
15:28 buu joined #mojo
15:43 s1037989 everyone asks me about my new mojo shirts... what's the meaning of a unicorn raptor puking a rainbow?
15:45 buu joined #mojo
15:48 jberger s1037989: because its awesome? do you need any more reason?
15:49 * sri throws away the Mojo::Pg+JSON branch
15:50 jberger sri: sorry, I haven't had time to look it over, but I also have absolutely no basis for comparison of an api of that sort
15:51 sri usually when there is total silence after a proposal, it just was a bad idea
15:54 buu joined #mojo
16:02 jberger who would be qualified to comment? tempire?
16:02 jberger I know he has been working on some postgres
16:02 jberger I'm unfortunately trying to get my head around SQL of any kind
16:02 jberger $work uses MySQL
16:03 good_news_everyon joined #mojo
16:03 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/GPdMcg
16:03 good_news_everyon mojo/master e131ce2 Sebastian Riedel: happy new year
16:03 good_news_everyon left #mojo
16:03 mst I enjoyed 'The Art of SQL'
16:04 mst in that it made me think about stuff
16:04 sri that book didn't work for me
16:06 * sri had more luck with the SQL Cookbook
16:07 denis_boyun joined #mojo
16:09 mst yeah, I think the Art was only good because I'd already spent years doing database heavy stuff
16:09 sri this was the branch btw. https://github.com/kraih/mojo-pg/compare/json
16:09 mst probably not an effective beginner/intermediate book
16:09 mst jberger: take sri's advice now and mine in 5 years, maybe :)
16:10 jberger I can do basic CRUD
16:10 jberger and simple joins (at least for SELECT)
16:11 jberger where do you think that leaves me? at the beginning still probably
16:15 preaction late beginning, at least. for normal, everyday operations, that's about all you need. next up: the differences between joins, and aggregate functions
16:15 mst jberger: learn to love LEFT JOIN
16:15 mst jberger: then learn how to read EXPLAIN output for when mysql's retarded excuse for a query optimiser shits the bed
16:15 preaction i thought mysql's default join was a left join
16:16 preaction but i haven't had to deal with mysql in years
16:17 sri mysql, the mongodb for old people
16:17 preaction but yes, explain is awesome. read the "high performance mysql" blog (by the makers of percona)
16:17 preaction and mysql has a bunch of times where it is not as strict as you might like about data types...
16:18 mst oh, yeah, DBIx::Class has a pre-pack set of things to run on connect that makes it less stupid
16:19 preaction oh, replication. if you're doing replication, make sure you read about how that works, and never _Ever_ write to a slave
16:26 jberger aaaaand, you are way over my head here ;-)
16:27 preaction as long as you have a dev database, you'll be fine
16:27 jberger we do at least have that
16:27 preaction and a DBA to run things by (even if they have multiple other hats)
16:27 preaction the DBAs at $work expect you to write the right SQL for them, all they can do is run it
16:29 jberger remember very small shop
16:30 jberger given that I'm only the second backend dev, the "DBA" would be the guy who wrote it all
16:32 preaction yes, him
16:33 preaction but, i mean, it's like rm -rf /, everybody does it once in a while. that's what backups are for
16:36 mst jberger: eh, if you need to do complex queries, throw Schema::Loader at your database then ask #dbix-class :)
16:37 jberger mst: even if that's on my todo list, I have much much bigger fish to fry
16:38 jberger getting rid of globals
16:38 jberger translating from Mason
16:38 jberger writing tests as I go
16:41 genio Turn off all write privileges on your MySQL slaves.  don't replicate your mysql database either.  but, then you're stuck with crappy ways of telling mysql to replicate this but not that.  you have to read the docs thoroughly on that as things don't work as you'd expect
16:42 genio mysql--  #replication is very... well, I have nothing nice to say
16:43 genio especially when replicating over SSL.  SLOW!
17:00 kwa joined #mojo
17:10 Nemix__ If someone could take a look at let me know why the streams on read handler never gets hit I would appreciate it: http://pastebin.com/NQAcuk0z
17:11 Nemix__ I have used IO::Loop::Stream to read from external command and would expect this to operate the same way
17:16 inokenty Happy New Year! Mojolicious is awesome!
17:16 inokenty \o/
17:31 jberger Nemix__: first of all, you are not adding the stream to the loop
17:32 jberger second, I don't think that if you are just reading a file in, that you need to open it as a stream at all
17:32 jberger streams are like reading from another streaming data source
17:32 jberger why would new data be available from a static audio file?
17:35 Nemix__ I was going to change to using a fifo or some other mechanism to get audio as it is generated from the source.
17:36 Nemix__ for now was usin a static file
17:37 jberger I'm not sure you can test it that way
17:38 Nemix__ ok...and thanks for pointing out I was not adding stream to the loop.
17:38 jberger np
17:39 jberger maybe open a pipe to 'cat myfile.wav' or something
17:40 jberger then again, I'm just guessing at this point
17:41 Nemix__ I played around with cat and will do it again after I get the stream added to to loop
17:41 batman My New Years resolution: work less. Be more active in #mojo.
17:42 batman (Early) Happy new year!
17:42 jberger batman++ happy new year!
17:42 batman ...from a cabin in the middle of Norway.
17:42 jberger nice
17:43 batman Yeah. It's nice: people are preparing dinner. I'm having a beer in the sofa.
17:43 batman I will make dessert: ice cream from the store ;)
17:43 batman -s
17:45 batman I also got a lot of stuff to fix with my modules... I will not start working until the 8th.
17:46 batman Convos, Mojo-MySQL, Swagger2, ReadWriteFork, Mojo-APNS, bunch of failing CPAN tests, ...
17:47 batman jberger: what's your plans today?
17:47 jberger I'm actually still working a bit
17:48 jberger exposing a minion job as an api call, kinda fun actually
17:48 jberger then party at a friend's house
17:48 batman Work work or just fun?
17:48 jberger I hope to have a beer while sitting on a sofa soon enough :-)
17:48 jberger work work
17:48 batman Ok. Sounds nice :)
17:48 purl work work is done, I guess I need to get off the company ssl now..
17:48 batman Hehe
17:48 jberger but I like this $job much better than $old_job
17:49 batman What's your current job?
17:50 mishantil $new_job > $old_job unless $new_job->duration > $old_job->duration ? Isn't that how it usually work?
17:52 sri hmm, i tried converting the minion backend to using the new JSON stuff... but ->val->json->val looks really ugly for real world code :(
17:53 jberger mishantil: probably not in this case, $old_job was rough
17:53 jberger batman: I'm working for a company that is migrating their old web backend from HTML::Mason to Mojo
17:54 mishantil jberger: Glad to hear you've found something better. :)
17:54 mishantil jberger: Also, that project sounds like the basis for a conf-talk.
17:54 jberger batman: also front-and-center is writing tests and making things testable
17:54 jberger mishantil: interesting idea
17:54 mishantil tempire: don't you agree? ;)
17:55 jberger I'm not sure how much of the process has been generic
17:55 jberger I do need to submit a YAPC::NA talk soon though
17:56 tempire html mason!
17:56 tempire That was my first perl "framework"
17:56 tempire rest in pieces.
17:56 jberger tempire: hehe
17:57 jberger luckily a lot of it was JSON api based already
17:57 tempire sri: I like the idea of the json branch, I just wasn't so much a fan of value()->json_value()
17:57 tempire Not that I'm claiming a plethora of amazing ideas.
17:57 neyasov_ joined #mojo
17:57 tempire If it were available, I would give it a try, but I'm not dying for it.
17:57 jberger I'm just having to track down and squash the component loading and turn those into Mojo::Template templates (which isn't that hard)
17:58 tempire It seems like having encode_json's are the simplest things.
17:58 sri tempire: sadly the api doesn't work with perltidy
17:58 jberger tempire: what are you up to for the new year? got a dance you are going to?
17:58 tempire Of course.
17:58 purl Indubitably.
17:58 jberger is purl your date?
17:58 jberger I bet she'd like it
17:58 tempire Actually, it's tradition for my friend and I to go to winco and get lots of cheap bin chocolate.
17:58 tempire is purl a gurl?
17:59 tempire I always thought she was male
17:59 jberger I believe so
17:59 sri as it turns out $db->val(...)->json(...)->val(...)->query('...multi line select statement...'); gets squished together all ugly with wrong indentation
18:00 batman jberger: sounds like fun :)
18:00 tempire Oh, I did just get a text message saying "that's me and my friends pretty much unclothed tell me what you think MY PICS"
18:00 tempire So maybe that's some new new years plans.
18:00 jberger excellent!
18:00 purl Smithers, release the hounds!
18:00 jberger purl: botsnack
18:00 sri botsnack
18:00 purl :)
18:00 purl :)
18:01 tempire So on the matter of fixtures, I've been thinking of using something like Mojo::Template so that I could have an % include directive.
18:01 genio for those wondering, cafeteria chicken parmesan is no bueno
18:01 tempire Maybe ::Template isn't necessary, but I definitely need something along those lines for the next step.
18:01 mst Mason is a perfectly reasonable templating system
18:01 mst unfortunately, it supplies people with far too much rope and they usually manage to cut off the blood flow to their brain with it
18:02 mst which inevitably results in PHP
18:02 batman I'm looking forward to making a swagger2 based API on top of ws and putting react on the client side with M::P::Browserify
18:02 tempire Indeed.
18:02 tempire I did that.
18:02 tempire It was a beautiful monstrosity.
18:02 batman Only problem is that I'm not sure how to test js :P
18:03 jberger mst: the problem I'm having is that it's partially system-path based routing and partially included by name
18:03 jberger makes it hard to just drop-in
18:03 mst jberger: does it?
18:03 mst Catalyst::View::Mason works fine
18:03 jberger that, plus a decade of cruft
18:03 mst there's no reason you can't do the same thing with Mojo
18:03 jberger mst: I'm assuming this particular usage of Mason in that way is not typical
18:04 jberger but I will look at that module to see what it does
18:04 mst I suspect you're wrong, and you're imagining problems that don't exist because you're unfamiliar with Mason
18:04 sugar__ joined #mojo
18:04 disputin joined #mojo
18:05 * tempire thinks he might not be at yapc::na
18:05 tempire It's the same week as wwdc
18:05 jberger mst: also entirely possible
18:06 jberger tempire: dude!
18:06 dotandimet joined #mojo
18:08 tempire !
18:09 genio $work won't let me count YAPC::NA as part of my annual training.  They make me go to less fun things
18:09 tempire What's a less fun thing?
18:09 tempire PHPcon?
18:09 genio nah, OSCON and the like
18:10 sri grrrrr
18:10 sri https://gist.github.com/anonymous/2397c84a89af1e4dfd06
18:10 sri i hate how the original is still the best
18:10 tempire yep
18:11 tempire Whatever happened to the Perl version linq that was rumored several years ago?
18:11 sri only automatic decoding of json "just works"... but only having that is so inconsistent :(
18:12 genio sri: isn't it time for you to stop working and start getting entirely too intoxicated because New Year
18:12 sri genio: not yet
18:12 mst tempire: I got the guts basically working but haven't got around to building anything on top of it
18:12 tempire Seriously, it's already 7pm
18:12 * tempire is disappointed in sri
18:13 mst hey, I probably won't start drinking until at least 9
18:13 mst otherwise I might have to stop before 4
18:13 Nemix__ if you are going to celebrate make it for the last time zone to cross over..show some support
18:13 genio That's a lot of drinking you have ahead of you
18:14 tempire I hope sri will be in traditional german beer costume
18:14 tempire http://hiddenidentitycostumehire.com.au/wp-content/uploads/2008/08/german-beer-man-sweidas.jpg
18:15 jberger mst: this is excellent, I probably can hack out something like this (C::V::Mason) without too much work
18:15 genio so, deal with OAuth and its required internet facing callback, or deal with SOAP?  Ugh
18:15 jberger and not only that, it gives me a better insight into what are the actual useful bits of Mason
18:16 sh4|2 joined #mojo
18:16 jberger I have been having a hard enough time navigating its docs (probably mostly due to the usual, searching for what I need rather than starting at the top and learning)
18:16 tempire genio: OAuth isn't so bad. It's just the documentation is so abstract that it's hard wrap your head around.
18:16 tempire Well, oauth2
18:17 asarch joined #mojo
18:18 genio the requirement of an externally available web server on HTTPS to be able to auth and grab data is my downside of OAuth2 right now.  It makes my efforts that much more annoying
18:19 tempire oh!
18:19 tempire Everyone's invited to the dance tonight.
18:33 dotandimet joined #mojo
18:52 dotandimet joined #mojo
18:59 punter joined #mojo
19:26 alnewkirk joined #mojo
19:55 disputin joined #mojo
19:59 disputin joined #mojo
20:01 Eke- joined #mojo
20:02 briandfoy joined #mojo
20:36 asarch joined #mojo
20:38 dotandimet joined #mojo
20:40 Grinnz pssh, its not the new year here for another 8 hrs
20:44 mst 3.25 hours to go here
20:46 Grinnz https://github.com/Grinnz/POE-Loop-EV last night i got this to pass all the tests except one that hangs and a couple that skip a test... getting closer
20:50 mst awesome
21:24 asarch joined #mojo
21:33 sivoais mst: it looks like tobyink was working on something LINQ-like <https://github.com/tobyink/p5-linq>. I assume yours is Data::CapabilityBased?
21:34 preaction ooh, where? i'd love to add that to my current project
21:35 stephan48 Grinnz++ # thanks!
21:37 mst sivoais: likely
21:43 dotandimet joined #mojo
21:46 asarch Any Convos user?
21:47 asarch What is  "sidebar://div.notification-list"?
21:47 asarch Not even on the live demo works
21:50 jberger asarch: that's the little bell icon
21:50 jberger what do you mean "works" it works fine for me
21:51 jberger I'm not on the demo though, I use my own instance
21:51 jberger batman or marcus are the ones to ask if you can figure out some problem
21:52 doby joined #mojo
21:54 asarch Let me paste a screenshot
21:58 asarch Chek it out: http://es.tinypic.com/r/2uhlev4/8
22:07 jberger asarch: and how do you get that?
22:07 asarch When I press the configu button (the gear button)
22:08 jberger not when you press the bell?
22:08 jberger oh
22:08 jberger see that's not the same sidebar://
22:08 asarch Yeah, even the bell
22:08 jberger what version of firefox?
22:09 jberger is it ancient? are you blocking javascript?
22:09 asarch Firefox ESR 31.3.0
22:09 asarch Not that I know
22:10 asarch It doesn't even work with Google Chrome
22:10 jberger when you load the page with firebug open, do you see warnings?
22:10 jberger or chrome dev tools
22:10 purl hmmm... chrome dev tools is http://www.youtube.com/watch?v=N8SS-rUEZPg
22:11 asarch Firebug?
22:11 purl i heard Firebug was http://www.joehewitt.com/software/firebug/ or getfirebug.com or a realtime web dev tool
22:11 asarch No, I don't use it
22:11 jberger then use chrome and open chrome dev tools
22:12 jberger and then reload the page
22:12 asarch Ok
22:12 jberger that shouldn't be trying to open a new page, it should just slide open a sidebard
22:12 jberger sidebar
22:12 jberger which makes me think that some javascript is busted
22:13 mst right, it's an href for a javascript link, there to be informational
22:14 mst I guessed that already in #perl-help :)
22:14 asarch Ok
22:14 asarch What' exactly are you looking for?
22:15 jberger errors in the console
22:15 asarch Where can I send you the logs?
22:15 jberger pastie?
22:15 purl pastie is ok
22:16 jberger convos isn't my project so I'm not likely to know much if there isn't some giant error spewed about
22:16 asarch Sorry, #mojo is not listed here: http://paste.scsys.co.uk/453288
22:17 jberger you can still paste there and then post the link
22:17 jberger it just doesn't have an irc bot
22:20 asarch From Firebug: http://paste.scsys.co.uk/453289
22:21 asarch The former one was from Google Chome
22:23 dotandimet joined #mojo
22:24 neyasov_ joined #mojo
22:24 muraiki_ joined #mojo
22:25 asarch So, somehow, the cpan Convos installation forgot to install jQuery for itself
22:26 jberger that's what it looks like to me
22:27 jberger you could try manually injecting it now
22:27 asarch How?
22:28 neyasov_ joined #mojo
22:29 asarch Convos was installed at /usr/local/share/perl5/Convos
22:29 asarch I could grab a copy of the recent jQuery release and the expand it in the Convos tree
22:29 asarch *manually*
22:32 jberger asarch: wait, are you using the demo or a local convos?
22:34 asarch My local convos
22:35 jberger and when you search in the directory do you see jquery?
22:36 jberger also do you see 404 errors when it attempts to load jquery?
22:36 jberger how did you install Convos at that path?
22:36 jberger is it packaged by a system packager?
22:36 * jberger worries
22:37 asarch This is the only warning I get from CLI: Mojo::Reactor::Poll: Read failed: Can't call method "_return_command_data" on an undefined value at /usr/local/share/perl5/Mojo/Redis.pm line 37.
22:37 jberger yeah, Mojo::Redis kinda sucks
22:37 asarch No, it isn't packaged by a package manager, I get it by doing (as root): cpan install Convos
22:38 asarch And, as root, I convos daemon --listen http://*:8080
22:38 asarch In my Slackware for i386-based system
22:38 jberger (Mojo::Redis2 is much better)
22:38 asarch No, I don't get any 404 erros at all
22:38 asarch Just the screenshot I send
22:38 jberger then I don't get what is going on
22:38 asarch (When I press any button)
22:38 asarch Oh...
22:40 jberger type this into the javascript console
22:40 jberger 'jQuery' in window
22:42 asarch false
22:42 jberger ok
22:42 jberger so I'm thinking that probably that the AssetPack is failing
22:44 asarch This is the installed structure
22:44 asarch http://paste.scsys.co.uk/453293
22:44 asarch There is, actually, a js dir on it
22:45 jberger yeah, try with this set restarting convos: MOJO_ASSETPACK_DEBUG=1
22:48 jberger or else maybe try with MOJO_MODE= development
22:48 asarch http://paste.scsys.co.uk/453295
22:48 asarch Oh, ok
22:49 jberger oops, no space in there
22:49 jberger obviously
22:49 jberger MOJO_MODE=development
22:49 asarch Using both vars: http://paste.scsys.co.uk/453296
22:50 jberger interesting, seeing as you misspelled development :-)
22:50 asarch D'oh!
22:51 asarch Wrong paste
22:51 jberger still, though it seems like its packing jquery
22:51 jberger which was my fear
22:52 asarch http://paste.scsys.co.uk/453297
22:52 asarch Does it matter if you change the listening port?
22:53 asarch In the beginning I had to change it because actually I am running an Apache Tomcat web server session
22:53 jberger I shoudn't think so
22:53 asarch Both Convos and Tomcat share the same port: 8080
22:53 jberger hmmmm, that sounds odd
22:53 jberger try it on 8081
22:54 asarch I even deleted the Radis database file located at /var/lib/redis/dump.rdb
22:54 jberger the redis db shouldn't matter yet
22:54 asarch So I could start a "fresh" session
22:54 asarch Ok
22:55 jberger after that, I want to navigate you through the sources in the dev console
22:55 asarch Ok
22:56 jberger by any chance did it work better on port 8081?
22:56 asarch Actually, with MOJO_MODE=development it doesn't even start
22:57 asarch The last line I get is: CONVOS_REDIS_URL is not set. Run 'perldoc Convos' for details.
22:57 jberger and it works without that?
22:58 asarch Yes, it works if I remove "MOJO_MODE=development"
22:58 asarch But, the buttons don't
22:59 jberger ok, well, with the server running
22:59 jberger open chrome dev tools
22:59 jberger click on network
22:59 jberger and reload the page
22:59 asarch Ok
22:59 jberger do you get any 404s
22:59 jberger ?
23:00 jberger or timeouts would be as bad
23:02 asarch Take a look: http://img.ctrlv.in/img/14/12/31/54a4809062787.png
23:03 asarch A picture worth than thousand words
23:05 jberger yeah, some javascript parse error
23:05 jberger when you click on the error, is the thing it takes you to anything like readable?
23:11 asarch http://img.ctrlv.in/img/14/12/31/54a48293538d8.png
23:11 asarch By clicking on the first error
23:13 asarch It seems that those are the two errors
23:14 jberger but you know what's odd
23:14 jberger I have that same first error
23:14 jberger and it works fine
23:14 jberger so lets assume that that is a red herring
23:14 jberger open the packed js file
23:15 jberger click sources, then under packed on the left side
23:15 jberger do you see jquery in there
23:15 jberger ?
23:15 jberger I clearly do see it in mine
23:17 jberger anyway, my only thought if its not there would be to remove the Convos directory entirely, and then reinstall it
23:17 jberger something either went wrong with installation or js compression, either way that should fix it
23:18 asarch I can't find "sources"
23:18 asarch Where is that option?
23:18 jberger in your screenshot you are already in it
23:18 jberger on the top
23:20 jberger I need to start cooking, I will be in and out for a bit
23:20 jberger try removing the installation directory and reinstalling
23:21 asarch Yes, I can open the source code: http://img.ctrlv.in/img/14/12/31/54a484e216e68.png
23:25 mishantil Huh. The logs now say 2015-*. Happy new year I guess?
23:29 asarch Happy new year!
23:29 purl Akemashite Omedetou
23:29 asarch Akemashite to you purl
23:29 asarch *to you too
23:38 mishantil purl should be exposed to the twittermachine. I bet hilarity would ensue.
23:38 purl mishantil: what?
23:38 mishantil purl: butthurt
23:38 purl mishantil: excuse me?
23:38 mishantil purl: no exuses
23:38 purl mishantil: excuse me?
23:38 mishantil :)
23:40 asarch purl: arremangala arrempujala
23:40 purl asarch: excuse me?
23:41 asarch purl: https://www.youtube.com/watch?v=B4cyMkqk7xQ
23:41 purl asarch: huh?
23:41 asarch :-P
23:42 asarch Let's dance purl

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