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

IRC log for #mojo, 2017-06-02

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

All times shown according to UTC.

Time Nick Message
00:04 castaway joined #mojo
00:10 gizmomathboy joined #mojo
00:32 kiwiroy joined #mojo
01:57 aborazmeh joined #mojo
02:03 PopeFelix joined #mojo
02:49 noganex joined #mojo
02:55 aborazmeh joined #mojo
03:04 zivester joined #mojo
04:04 dboehmer joined #mojo
04:45 aborazmeh joined #mojo
05:30 kivilahtio joined #mojo
05:30 lari joined #mojo
05:33 dod joined #mojo
06:06 dod joined #mojo
06:09 inokenty-w joined #mojo
06:35 Vandal joined #mojo
06:48 karjala_ joined #mojo
07:03 AndrewIsh joined #mojo
07:28 Djez joined #mojo
07:31 Petru_ joined #mojo
07:32 simbabque is there a standalone dist for mojo::template?
07:57 salv0 joined #mojo
08:39 rshadow joined #mojo
09:16 batman simbabque: no
09:17 batman simbabque: https://metacpan.org/search?size=20&q=Mojo%3A%3ATemplate
09:58 kiwiroy joined #mojo
10:53 kiwiroy joined #mojo
10:59 aborazmeh joined #mojo
11:04 prg joined #mojo
11:14 tchaves joined #mojo
11:21 kiwiroy joined #mojo
11:57 coolo_ joined #mojo
11:59 kiwiroy joined #mojo
12:16 kiwiroy joined #mojo
12:24 gryphon joined #mojo
12:24 karjala_ joined #mojo
12:25 sri anyone else care about this? https://github.com/kraih/minion/issues/50
12:39 VVelox joined #mojo
13:03 zivester joined #mojo
13:08 marty joined #mojo
13:09 aborazmeh joined #mojo
13:10 maschine joined #mojo
13:30 Pyritic joined #mojo
13:40 kes joined #mojo
13:40 jnap if anyone is interested I'm working with a subclass of Mojo::DOM to make it easier to find/fill form elements.  Ideally I'd be able to contribute that back if it was a API you all liked
13:40 jnap if anyone did prior art on that or talked about it I'd love to hear about it
13:47 sri jnap: extracting form values is a planned feature
13:47 sri there was prior art
13:47 jnap sri: is there a discussion somewhere I can look at?  I'd prefer not to invent my own thing nobody wants :)
13:48 jnap FWIW this is art the work I'm doing on Template::Lace so its aimed at template generation more.
13:49 VVelox joined #mojo
13:49 sri let me search the channel log
13:50 sri form filling is not a planned feature btw., since we handle that differently in the framework
13:50 jnap I understand, not all parts of my work will be interesting to you, but for the overlap I thought it worth the attempt at collaboration
13:51 jnap and its still not impossible before I am done with that I need a more custom DOM anyway
13:52 jberger sri i think it might be helpful at times but I also think that only certain backends can benefit
13:53 jnap and still not impossible I just give up on it, you never know :)  Sometimes things that seem like a good idea turn out not to be when you are using non toy code
13:53 jberger Not sure its worth it
13:54 jnap jberger: yeah I mean I think Mojo::DOM is aimed more at the scrapping task where Template::Lace is aimed at creating web pages from a template via code.  but there still could be some overlap
13:55 jberger jnap sorry, my comment was in reference to minion #50
13:55 jnap cool
13:57 jberger Some people do build up pages with Mojo::DOM  but I haven't gone that far, I don't have the faintest idea what could improve that process
13:58 nic re #50, the proposer could share benchmark results
13:58 jnap jberger: possible its a bad idea :)  I'm trying to see
13:58 gizmomathboy joined #mojo
13:58 jberger Who knows? Give it a try!
13:59 jberger nic i don't think there's any doubt that 1 roundtrip to a db is faster than N for large N
13:59 jnap jberger: when I did Template::Lace I was aiming it at Catalyst but I deliberately gave myself a harder task of making it stand alone with the assumption I'd like to be able use other frameworks someday
13:59 sri jnap: Mojo::DOM::val already exists, the idea was to make it handle <form> elements too, and extract current values into a hashref
14:00 jnap sri: I'll look at that, thanks
14:00 sri it existed in some forms before https://github.com/kraih/mojo/commit/3564dd174aedd8cc1b13254a879004bfb060ae34
14:00 sri the main problem is that you need to select a button to extract those values
14:01 sri my $hashref $dom->at('form')->val('#second-button');
14:01 sri *+=
14:02 jacobydave joined #mojo
14:02 sri that is the first part i'd like in mojolicious
14:04 sri the second would be a Test::Mojo method to submit forms $t->get_ok('/some_form')->status_is(200)->submit_ok('#first_button' => {override => 'value'})->...
14:04 sri or rather $t->get_ok('/some_form')->status_is(200)->submit_ok('form', '#first_button', {override => 'value'})->...
14:04 jnap so $dom->at('form #login')->val  => +{ field_name => value, ... } ?  where we do the right think for boolean fields, etc?
14:04 sri but i guess it could select the <form> based on the button
14:05 sri jnap: yes, that was the idea
14:05 sri jnap: i think it already does the right thing for boolean fields
14:05 jnap and for form elements that are lists like radio and select that value would be an array
14:05 jnap yeah I saw, that's handy
14:05 sri already does that
14:06 sri the disabled attribute needs to be handled though i think
14:06 jnap but I mean continue to do it when returning the hashref.  looks like the current version only works at the field level right?
14:06 sri right, you;d add the <form> level
14:07 sri and just reuse the field stuff
14:07 jnap right and its not 100% clear to me for the list like fields (select, radio) how we are handling selected / checked verses not
14:08 sri select with multiple is already handled i believe
14:09 jnap I mean for the case where the field is select and there's 5 options and 2 are selected what does ->val return?  just the selected ones or all?
14:09 jnap I think it returns only the selected ones
14:09 jnap I imagine type=radio is the same
14:09 sri only selected of course
14:10 sri if you want all possible options extracted that's a different topic
14:10 jnap for my work I need 1) a way to set the options /radio list and 2) set which of the list is selected /checked
14:10 sri ok, i think you want something else then
14:10 jnap but let me ponder the contrib for the first part
14:10 jnap because I need that as well
14:11 sri that goes past what we want in core
14:11 jnap would you be interested in something like that as a Role::Tiny ?
14:12 sri how do you mean?
14:13 sri speaking of roles, zoffix made this related one https://github.com/zoffixznet/Test-Mojo-Role-SubmitForm
14:13 sri (no idea how good it is)
14:14 jnap I'll look at all that stuff
14:14 jnap I was just thinking some of the stuff I am putting into Template::Lace::DOM might be better on CPAN as a collection of roles.
14:14 sri we do not bundle roles with core mojolicious, if that's what you meant
14:14 jnap if there's interest
14:15 jnap no I mean standalone on CPAN for people that are interested
14:15 sri sure, doesn't hurt
14:17 jnap I'll look over the prior art you showed me and then share again.  For doing roles but as stand alone on CPAN the Mojolicous community prefers Role::Tiny or something else?
14:17 sri some discussion on the last iteration of Mojo::DOM::val started here https://irclog.perlgeek.de/mojo/2015-09-21
14:18 sri yes, Role::Tiny https://metacpan.org/release/Test-Mojo-WithRoles
14:18 sri we don't use it in core, but encourage it for 3rd party modules
14:25 sri one more special case to consider https://irclog.perlgeek.de/mojo/2015-09-23#i_11260518
14:30 Petru_ joined #mojo
14:30 jnap got it
14:31 sri very good observation by Ovid https://twitter.com/OvidPerl/status/870632116643561472
14:31 sri say what you will about tiobe, but this graph makes perfect sense https://www.tiobe.com/tiobe-index/perl/
14:33 jnap the biggest problem I run into on the job nowadays is whenever I'm told we need to integrate with some third party XaaS type service when you go to the website there's no Perl support
14:34 sri but who cares?
14:34 purl not me
14:34 jnap I mean its always easy to roll your own, but it speaks to the mindset when they have examples of Ruby, PHP, Go and so forth but not Perl.
14:34 sri XaaS service uses some REST api with XML or JSON
14:34 jnap sri: Its bad PR.
14:35 jnap the fact they didn't bother to support indicates they think its not important.  Which reflects the general thinking of people outside the community.  At least in the US
14:36 sri it's not something you can change, no point to get upset about it
14:36 sri those will always be hype oriented
14:37 sri change the things you can change
14:37 purl sri: that doesn't look right
14:37 sri purl: oh shut up you
14:37 purl Yes, sir.
14:37 jnap its just depressing on the job is all.  wears you down after a while
14:38 sri not to me anymore
14:39 jnap glad to hear it
14:40 sri adjust your expectations to match reality, and you'll be happier
14:42 jnap will do buddha sri ;)
14:42 sri guess what, people who run after the latest hype are not happier either
14:45 sri they are scared to miss the next fad
14:46 sri or fight with hourly breaking changes in the framework they picked up on hackernews last week
14:48 sri Perl is not going back to 10% marketshare, but it has a stable position at 2.5%, and that's fine
14:49 maschine There probably won't ever be one language that dominates everything on the web again like Perl did in the late '90s anyway.
14:49 jnap I'm just saying I'm tired of having to tell my boss we don't have to rewrite the codebase because Perl isn't supported is all.  Its mostly just a lot of ignorance but it wears you out over time.
14:51 Armen better rewrite everything in C, just in case
14:51 sri the market is growing a lot, so a stable position at 2.5% means Perl is growing
14:51 sri many people don't get that
14:52 jnap its just a little scary to a lot of us that are normal programmers and need 20 more years of working life before we can retire.  I'd help if there was useful stuff for me to help with
14:53 Armen what bothers me is that perl6 looks like a fine collection of terrible ideas... so what does that mean for the future of perl, growing or not?
14:57 sri jnap: it's not like there are many programmers that only do Perl
14:57 sri at the very least you know JavaScript and Shell too
14:58 Armen are there *any* programmers that work exclusively in perl? That sounds like a dangerous gamble
14:58 sri if you want to feel more safe improve your skills in those two
14:58 Armen not saying perl might disappear, but your next employer might not require it
14:58 sri and any remotely decent programmer van be proficient in Python in a matter of weeks
14:58 jnap its a good point but also at a certain stage in your career you tend to specialize based on hiring and what they pay you.  I could do Javascript but its all lower paying than Perl for me right now.
14:59 jnap sri: right but then you end up a junior Python programmer...
14:59 sri Armen: i don't think Perl 6 has any chance to reach critical mass
14:59 Armen is it really?
14:59 Armen I've considered my pay reasonable as a javascript dev, but I maybe I'm more underpaid than I know...
15:00 sri jnap: then do some Python open source stuff now
15:00 jnap Armen: lol, yeah we hide salaries today like people were in the closet 50 years ago right
15:01 sri just look on glassdoor
15:01 jnap sri: its not so easy for those of us that are not super programmers...  There's only so much time.
15:01 sri i was job hunting last year, and glassdoor turned out to be fairly accurate
15:02 sri which reminds me, facebook seems to be recruiting perl programmers, anyone know what that's about?
15:03 jnap yeah I wonder if P6 is scratching the itch people need in a language today.  most of the job postings I get are 'micro services' stuff.
15:05 jnap sri:  no idea about now but last time I heard from a FB recruiter that saw 'PERL' (as he wrote in th email to me) it was about system scripts, 1990s stuff not web development
15:06 sri jnap: nope, something about distributed systems with Perl
15:06 jnap cool
15:07 jnap I can't find the job post
15:08 sri dunno if there's a job post, recruiter just asked me for recommendations
15:09 sri didn't mention much details
15:09 * sri shrugs
15:09 sri Perl 6 has some nice features, but none of it is a game changer
15:10 sri personally, i'd rather get better at Python than invest in Perl 6
15:11 jberger one of these days I'll go back and learn "yield from"
15:11 jberger and yes, I'm living proof that you can move from Perl to Python in a matter of weeks (and then back again too)
15:12 jberger there are only a few gotchas, and yes, even a few things you miss when you move away from it again
15:12 jberger "with" blocks
15:12 jberger set types
15:18 jberger I'm kinda surprised that I can't find a with-like module on cpan
15:25 kgoess hi, I've got a Test::Mojo test throwing an exception, but only as the pretty mojo html debug document, is there a way to actually see the exception?
15:25 kgoess minimal test case https://gist.github.com/kgoess/e4e4191c364198de044e9760fff4a684
15:26 kgoess I suspect I'm Doing Something Wrong
15:29 PryMar56 joined #mojo
15:29 sri kgoess: ->or(sub { diag shift->tx->res->dom->at('#error')->text })
15:29 sri something like that perhaps
15:31 kgoess aha! "->or"! woot, thanks, sri!
15:32 kgoess wow, I learned about fourteen things in that line of code
15:32 sri :)
15:47 jberger zoffix had some nice role for that too
15:47 jberger https://metacpan.org/pod/Test::Mojo::Role::Debug
15:47 kgoess ooh, that *is* nice
15:48 kgoess though at some point I'll need to figure out how to make this json endpoint only ever return json, not html
16:00 jberger IIRC I think I tried to talk zoffix into trying to make ::Debug DTRT on json vs html
16:00 jberger but it isn't purely trivial
16:01 kgoess ah, ok
16:01 jberger you'd have to check the Content-Type or else try to decode as json first or something
16:01 jberger nothing hard, but also not quite as simple as what he has
16:42 romel joined #mojo
16:52 mba joined #mojo
16:57 rshadow joined #mojo
17:00 mba Hello.  I'm new to IRC so not exactly sure how this works.  Is there anyone out there?  -Marc
17:00 karjala_ joined #mojo
17:00 perlpilot mba: just assume that there are people around, but not that they are looking at IRC "in real time"
17:00 Grinnz yes. it's just asynchronous chat, no need to sign your messages, just ask what you want to ask and somoene will respond if they can
17:01 perlpilot So, you may have a conversation over several minutes
17:01 mba O.K.  I was wondering if anyone has written a shopping cart based on Mojolicious.
17:06 mba My searches haven't turned up anything, but since Mojolicious has been around awhile now, I was thinking that someone must have at least started one by now.
17:07 Grinnz i don't know, but i think someone has asked about that before
17:10 jnap I thought I saw something float by CPAN recently
17:11 jnap FWIW I generally find by the time you customize that stuff you end up with something that took longer and looks worse than if you'd done it yourself.
17:12 jnap if you really want a roll and go shopping cart might be better to use a PaaS provider like BigCommerce or similar that will let you create an online shop with a web interface.  Just my opinion
17:12 jnap I think there's two attempts of this in Catalyst on CPAN and both ended up abandoned :)
17:13 Grinnz the only one i really know of is https://metacpan.org/release/Handel
17:13 Grinnz and yeah, seems abandoned
17:14 mba Yeah, I saw those, too.  I wonder why there's a dearth of OSS shopping carts in the Perl universe.
17:14 Grinnz it either hasnt been needed, or the people who wrote something for it didn't open source it
17:16 romel hello folks. is it possible to start watching completely separate directory tree for file changes and assign arbitrary callbacks on change events within morbo powered app?
17:17 Grinnz you can't currently access the morbo server from within the app, no
17:17 romel i see
17:17 romel thanks
17:19 maschine sri & jberger - I presume you're willing to accept contributions for the documentation?
17:19 maschine for example, http://mojolicious.org/perldoc/Mojolicious/Guides/Tutorial#File-uploads
17:19 maschine the example doesn't actually work - the upload does, but the redirect_to doesn't happen if there's no file selected
17:20 maschine also, the example is a bit thin - what do I do with the $example object after I've submitted it? (I figured this out, but it would be better in an example).
17:25 mba I thought about going with Catalyst awhile back because of Handel, but it seemed too big for my needs.  Mojolicious seems to be a better fit.
17:26 jnap Grinnz: there was this project called Mango that never made it to CPAN
17:27 Grinnz that sounds vaguely familiar, the "other" mango :P
17:28 jnap mba: Mojolicious clearly is getting active development, for something brand new it would be important to me.  Saying that as someone that used Catalyst 10+ years.
17:29 jnap Grinnz:  http://www.catalystframework.org/calendar/2007/12  yeah I remember like 10 years ago
17:30 mba jnap: Sorry, but I don't understand the "something brand new" comment.
17:31 jnap I mean if you are building a new project from scratch.
17:31 mba Got it. :)
17:35 maschine https://tinyurl.com/y8noohvw - I guess I'd have to learn how to submit a pull request? :)
17:37 marty mba: I built a shopping cart from scratch using Mojolicious.  Been running in production for about 4 years.  Mojolicious has never, ever let me down.
17:39 mba sounds like a vote of confidence.  ;)
17:41 sh14 joined #mojo
17:41 maschine I couldn't even get Catalyst to run lol.  Well, I did eventually, but it was super painful - I pretty much built a Mojo app from scratch (including learning it) in the same time I spent just trying to make Catalyst work.
17:43 jnap maschine: I'm assuming that was 'couldn't get the dependencies installed, is that the case'?
17:44 maschine basically - I mean I did, but it took a long time, and there was a million of them - it seemed like there was always something that wouldn't compile, had some other issue, or I had to force it without tests.
17:45 jnap maschine: thanks :)
17:48 maschine The documentation is very poor as well (mostly it's just outdated and not maintained)
17:48 schelcj joined #mojo
17:52 jberger maschine: fyi, jnap is a lead developer/maintainer of catalyst
17:54 jnap I definitely aware the tutorial is long in the tooth :) I was considering applying for a grant to work on it, but not 100% its a good use of money/time
17:56 jberger jnap: IMO the more healthy web frameworks we have in Perl the better
17:56 jberger doesn't hurt to ask
17:57 jberger we're always up for healthy competition
17:57 jnap jberger++
18:00 maschine oh, sorry - no offence meant.  but to give you an example, one of the tutorials (not sure if it's yours) has a linux virtual machine image to get you up and running
18:00 maschine well, the version of linux is outdated, and you can't use it - I wasted hours trying to fix it so I could download whatever modules etc. I needed.
18:01 maschine I sent emails to the ones listed on that page and got no response..  never checked back to see if it had been fixed.
18:01 jnap lol my old boss made that VM like in 2008 I think...
18:01 jnap no doubt during the frameworks heyday a lot of stuff got made that couldn't be maintained as volunteers drifted away
18:02 maschine it just made it a super frustrating experience
18:02 Grinnz now its all about optimizing for low maintenance
18:02 maschine all I was trying to do was follow the tutorial. :p
18:03 maschine I eventually completed it, but then hit some other dead end.
18:07 jnap its another possible grant proposal, if I feel like people would actually be interested.  Maybe next week I'll write it up, after my son goes back to college
18:09 ranguard knowing nothing about these things... wouldn't cat-a-docker be the way to go for tutorials these days :) ?
18:10 Grinnz probably. find someone who knows both docker and catalyst!
18:12 dod joined #mojo
18:14 maschine jberger / sri did you see this?  https://tinyurl.com/yd82tlf7 - whats the appropriate way to submit comments on documentation?
18:17 jberger maschine: you were right to mention it here, but if it just falls off the backlog then open an issue/PR on github
18:23 maschine here right?  https://github.com/kraih/mojo  (sorry, never had a github account until recently)
18:27 jberger yep
18:27 jberger <3 github
18:29 maschine cool - I'm probably not competent enough to contribute much code, but I read/use the documentation a lot - sometimes when I'm just bored. :p
18:30 jberger documentation curation is always helpful
18:30 jberger and almost by definition it is easier for a newcomer to help
18:30 jberger not just because contributing to code takes more depth, but because once you have the depth the documentation becomes almost second-nature
18:31 jberger i.e. it is harder for us to see when the docs are wrong
18:32 maschine right, because you just understand it without thinking about it.  I work in engineering, and we do outside 'independent checks' for that reason.
18:37 * sri went cycling for a bit, nature is really nice around here this time of the year http://i.imgur.com/drcmTTq.jpg
18:45 Grinnz looks like iowa :P
18:46 jberger sri looks very nice indeed
18:46 Grinnz all i remember from driving through iowa is that i could have fallen asleep while driving and woken up still on the same road without hitting anything
18:46 Grinnz an hour later
18:47 sri haha
18:47 jberger s/an hour/hours/
18:47 jberger and if you include western illinois and eastern nebraska it gets even worse
18:48 sri bet we have more windmills though
18:48 sri they are absolutely everywhere now
18:49 sri surprised there is only like ten in that picture
18:50 jberger we have quite a few, but there is plenty of space between them
18:50 jberger I'm sure your density is higher
18:51 sri maybe... http://www.gegenwind-husarenhof.de/Bilder/Blick_nach_Dithmarschen_.jpg
18:53 Petru_ joined #mojo
18:53 Grinnz haha
18:55 Grinnz but what will we do when the windmills use up all the wind????
18:56 sri Sad.
19:14 disputin joined #mojo
19:14 itaipu joined #mojo
19:22 mba I don't know where sri is from, but I've been through Austria and I couldn't believe how many windmills there were.  And that was 18 years ago!
19:25 * sri is from northern germany
19:27 mba Is the lanscape similar to Austria?  That was probably the most beautiful countryside I've ever seen.  It was even greener than the Pacific NW here in America!
19:27 mba There's probably less  mountians there...
19:37 sri the south of germany is just like austria
19:37 sri but the north is totally flat, see my cycling picture above
19:38 sri very similar to the netherlands if you've been there before
19:41 pink_mist or denmark
19:41 * sri nods
19:49 rshadow joined #mojo
19:59 chandwki so I am using DBIx::Class in my mojolicious app, I am trying to decide if I should use the App::Schema::Result::* modules as my models in the controller classes
19:59 chandwki or should I create App::Model::* classes that use the result modules and call methods on them
20:00 preaction i would use App::Schema::ResultSet classes as your model classes
20:00 chandwki either works, I guess I am trying to decide on the "correct" organization for using DBIx in mojolicious
20:00 preaction so App::Schema::ResultSet::* rather
20:01 chandwki that's what I was leaning towards
20:01 chandwki wait... so ORMs are kinda new to me, I used dbicdump to generate my classes
20:01 chandwki it generated it under the 'Result' namespace
20:02 chandwki what is ResultSet?
20:02 purl hmmm... ResultSet is a resultset, not data. or http://blog.hide-k.net/archives/2008/10/dbixclassresult_1.php or use_namespaces => 1 you just put my class into ResultSet/Foo.pm then you can do  $c->model('MyDB::Foo')->some_method_in_foo_pm(...) or an iterator. L</next> is used to return all the L<DBIx::Class::Row>s the ResultSet represents.
20:02 preaction ... lord do i hate that bot...
20:03 preaction when you do $schema->resultset( 'MyResult' ). you get a DBIx::Class::ResultSet object, correct? however, if you have App::Schema::ResultSet::MyResult, you get an object of that class instead
20:04 preaction https://metacpan.org/pod/DBIx::Class::ResultSet#Custom-ResultSet-classes
20:04 preaction basically all your business logic should be in your model layer, which is completely in your DBIx::Class stuff
20:04 chandwki huh, I clearly need to do some more reading, dbicdump only generated Result modules, it didn't generate any ResultSet
20:05 preaction it won't. it can't. like i said: if DBIx::Class doesn't find a specific ResultSet class, it uses the generic one
20:06 chandwki oh, so I make my own and put methods for accessing the collection in there?
20:06 chandwki and methods related to the specific row go in the Result modules?
20:06 chandwki so like I might make a ResultSet class for a table and put a "
20:06 chandwki put a "list" method?
20:06 preaction yes
20:06 chandwki ah!
20:07 sri if you don't like ORMs, many of us prefer modules like Mojo::Pg, Mojo::SQLite and Mojo::mysql
20:07 chandwki I have been enlightened
20:07 preaction though that's kind of weird as $schema->resultset( 'Foo' )->all will get you all the things
20:07 preaction what you want to do is do like: sub since( $date ) { ... } and sub by_author( $author ) { ... }
20:07 chandwki I was using App::Model::* classes as sort of what the ResultSet classes were intended to do
20:08 preaction right, that's a common mistake to make with DBIx::Class
20:08 sri real $gender use hand optimized SQL!
20:09 sri which reminds me that i wanted to bug mst about LIMIT/OFFSET in SQL::Abstract
20:12 chandwki preaction thanks for your help!
20:13 preaction no problem, good luck, have fun, any other questions feel free.
20:13 arcanez huh, I guess LIMIT/OFFSET aren't handled in SQLA, but in DBIC
20:14 preaction there's a specific set of plugins that does it, but i thought they were in SQLA
20:14 Grinnz yes, they used to be pretty fucky in databases that werent postgres/mysql/sqlite
20:15 arcanez preaction: DBIC::SQLMaker::LimitDialects seems to have them
20:15 preaction ... right, sorry
20:15 preaction now i remember... i had to deal with Sybase...
20:15 arcanez my condolences.
20:15 arcanez also, I think SQL::Translator tries to something in this space as well, at least in translating from one DBMS to another
20:16 preaction it was easier just to do it in Perl-space :p
20:16 preaction and there's a SQLMaker plugin to do it that way, even
20:16 arcanez I've only used Sybase to talk to MSSQL
20:17 preaction i... i'm not sure i want to know...
20:18 Grinnz DBD::Sybase is often used to connecto SQL Server
20:18 Grinnz as theyre historically related
20:19 Grinnz and i always forget whether it's SQL Server or Oracle
20:19 Grinnz and then remember i'm really glad not to have to use either
20:19 sri well, mst says maybe
20:19 arcanez preaction: https://twitter.com/dbix_class/status/1667191421
20:19 preaction Grinnz: it's SQL Server. MS bought an old Sybase and forked
20:20 arcanez I'd say Oracle is similar to PostgreSQL (though, I think that is probably blasphemy)
20:20 preaction arcanez: ahh, nice
20:20 preaction it is ;)
20:20 Grinnz ewww
20:20 Grinnz Oracle doesnt even have NULL
20:20 arcanez preaction: I believe all that code is probably gone by now :)
20:22 pink_mist is oracle still making money from their database?
20:23 arcanez mysql
20:23 pink_mist oh right, they did manage to get their grabby hands on that
20:23 Grinnz mysql is a money printer, all those support contracts
20:24 pink_mist I was wondering about oracle db though
20:25 arcanez I'm not sure. mysql/java support & licensing are probably big money makers though
20:25 arcanez $last_job migrated to openjdk so they didn't have to deal with oracle when shipping the appliances
20:43 jberger I think they have a new strategy, buy up small software shops, convert them to oracle db, then spin them off ... into customers
20:43 jberger just a guess
20:44 Grinnz yep glad openjdk is a mature solution... used it to deploy elasticsearch recently
20:46 arcanez ES5?
20:46 Grinnz aye
20:46 arcanez what are you using for viz?
20:47 Grinnz huh?
20:49 arcanez visualization.. kibana?
20:49 Grinnz oh. just some mojo commands i wrote for now
20:50 Grinnz we have no real need for constant visualization of it, so far
20:53 Grinnz i kind of miss sphinxsearch's SQL interface. let me query it just as easily as our database
20:53 Grinnz but my search command is nearly as simple
20:53 preaction i just installed influxdb for cpantesters, and it's got a sql-like language that works pretty well
20:57 sri btw. this popped up again https://github.com/kraih/minion/pull/51
20:57 kiwiroy joined #mojo
20:57 Grinnz i was looking into influxdb and similar, might be useful for us at some point
20:59 preaction yeah, i've got that in mind for a yapc talk, because navigating all the solutions in this space is a real pain...
20:59 preaction (not this year, of course)
21:04 karjala_ batman, I want to use Redis at one of my sites, for pub/sub, but your module (Mojo::Redis2) has no way of notifying the websocket server that Redis has disconnected temporarilly (eg for a restart of the redis server). Hence the subscriptions (that the websocket server will make on Redis) will not be re-established, and furthermore the end-clients (ie the web browsers that use websockets) will have no way of knowing that it's time start
21:04 karjala_ polling at regular intervals because the webosocket connection is useless now
21:05 karjala_ Also I get an error message on the STDERR (I think it's stderr, maybe it's stdout) when Redis server is restarted and there's a subscription going on, from a non-blocking process.
21:05 karjala_ from a process running an event loop, I mean
21:07 batman karjala_: you have the error event.
21:07 karjala_ How do you circumvent these problems, without a on('disconnect') event?
21:07 karjala_ o
21:07 karjala_ thanks
21:08 batman also, I'm not maintaining the module anymore. There's hopefully two new guys who will take it further.
21:08 karjala_ Who are they/
21:08 karjala_ Are they here?
21:08 karjala_ ok, thanks
21:10 batman https://github.com/jhthorsen/mojo-redis2/pull/19#issuecomment-298167072
21:10 kiwiroy joined #mojo
21:10 batman Are you sure the module has "has no way of notifying" ..? Sounds really weird that the error event doesn't get fired.
21:11 karjala_ I didn't check the error event
21:11 karjala_ I only found out about it now. I THOUGHT there was no way of notifying, because I couldn't find a disconnect event
21:17 Bloke joined #mojo
21:35 arcanez Grinnz: not sure how influx performs at scale.. and I'd like to use ES as a TSDB, but I'm not certain it is there yet (it's already clustered, etc)
21:36 Grinnz i'm a bit wary of using ES as more than a way to organize and fulltext search the real database
21:36 Grinnz right tool for each job and all that
21:36 Grinnz the automatic clustering is nice though
21:48 kiwiroy joined #mojo
21:51 mba joined #mojo
21:53 mba left #mojo
22:48 kiwiroy joined #mojo
23:32 sri why did api.metacpan become fastapi.metacpan?
23:34 preaction my guess is it's behind fastly
23:35 sri well, it makes many of our examples clunky
23:35 sri this is a very lazy pull request https://github.com/kraih/mojo/pull/1100
23:40 good_news_everyon joined #mojo
23:40 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vHgXC
23:40 good_news_everyon mojo/master d35caf6 Sebastian Riedel: MetaCPAN broke their old API
23:40 good_news_everyon left #mojo

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