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

IRC log for #mojo, 2017-06-13

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

All times shown according to UTC.

Time Nick Message
00:10 arcanez interesting how things like that 'happen'
00:53 zivester joined #mojo
01:08 aborazmeh joined #mojo
01:17 stryx` joined #mojo
01:19 jabberwok left #mojo
01:19 jabberwok joined #mojo
01:23 jabberwok joined #mojo
02:36 noganex_ joined #mojo
03:15 Peppard joined #mojo
03:44 tencendur joined #mojo
04:04 dboehmer_ joined #mojo
04:50 stryx` joined #mojo
05:11 ferminter joined #mojo
05:47 dod joined #mojo
05:47 inokenty-w joined #mojo
05:54 dod joined #mojo
06:37 dod joined #mojo
06:47 AndrewIsh joined #mojo
07:19 karjala_ joined #mojo
07:19 dod joined #mojo
07:28 prg joined #mojo
07:37 zen Goodmorning ppl, I see at http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Large-file-upload you can set a max_response_size to support big file download from mojo: however I would like to upload big files using mojo: at the moment I am able to upload files around 400 mb without problems but when I try uploading a file of 500 mb it doesnt work: is there a similar setting regarding uploading filesize?
07:37 zen I tried searching the docs but cannot find anything about it: thanks in advance
07:38 pink_mist yes, there's a similar setting for the useragent
07:41 trone joined #mojo
07:41 pink_mist it should by default be 2GB though, so that's probably not the setting you're having an issue with
07:43 zen alright, thank you: there is enough space on the system for the file so I guess I better find out what the issue is regarding this limit I am encoutering
07:43 dabudabu 07:44 < pink_mist> sri: haha, I had to comment on the issue :P <-- You got like a million downvotes
07:46 pink_mist dabudabu: oh yes :P my opinion was not popular at all :P
07:47 mattp_ joined #mojo
08:04 coolo joined #mojo
08:17 salv0 joined #mojo
08:47 venus joined #mojo
08:49 venus o/
08:49 CandyAngel Heyas venus
08:50 venus Hey CandyAngel
08:50 purl rumour has it CandyAngel is correct, you need that information to prevent endless restarting
08:50 rshadow joined #mojo
08:50 CandyAngel purl forget CandyAngel
08:50 purl CandyAngel: I forgot candyangel
08:51 gregf_ joined #mojo
08:51 CandyAngel How are things going venus?
08:52 venus pretty ok and yourself ?
08:52 CandyAngel Really good :)
08:53 venus that's really good :)
08:53 CandyAngel Yup
08:53 CandyAngel Project I am working on is making really quick progress
08:53 venus awesome
08:53 purl awesome is a highly configurable, next generation framework window manager for X, at http://awesome.naquadah.org/
08:56 venus i am pretty new to mojo and perl
08:56 stryx` joined #mojo
08:57 CandyAngel Ah coolies! Welcome!
08:57 CandyAngel I shall warn you right now that Mojolicious is one of the tools I fangirl over :|
08:58 CandyAngel It is *amazing*
08:59 venus ok you are getting me a little over excited about it :D
09:01 venus any advice ? , i always jump in head first  , i am using it for a project currently
09:02 CandyAngel headfirst is how I work too
09:02 CandyAngel So I totally understand :)
09:02 CandyAngel The old advice: read the documentation
09:02 CandyAngel And you have to read it, don't skim. If you skim, you miss important information. There is no/minimal "fluff"
09:03 venus ok good advice , i had already started skimming
09:03 venus any project based books you know of ?
09:04 CandyAngel Books about Mojolicious?
09:04 ashimema thinks there's been talk about writing a book for ages but one hasn't materialized yet
09:04 CandyAngel Yeah
09:05 ashimema A few people have sorta started.. sure there's some on github.. but they're not especially up to date if my memory serves
09:05 venus oh ok
09:05 venus i will stick with the docs for now :)
09:05 CandyAngel Also, Mojolicious can change quite a bit between versions
09:06 ashimema I tend to start with the Cookbook myself, then delve deeper into the docs after: http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Subprocesses
09:06 CandyAngel So make sure you are using the latest or specify the version, if you are asking questions
09:06 CandyAngel Also: don't be afraid to ask questions
09:06 ashimema or guides in general: http://mojolicious.org/perldoc/Mojolicious/Guides
09:06 venus ok thanks :)
09:06 ashimema they're very friendly here.. :)
09:07 CandyAngel They put up with me, so yeah :)
09:07 venus <3
09:07 * CandyAngel abuses Mojolicious a lot
09:08 sri CandyAngel: think we are past big changes now though
09:08 CandyAngel Like all software I use, I use it in unintended ways
09:08 CandyAngel Which just makes it even more amazing, because it is capable of doing that!
09:08 CandyAngel Oh
09:08 CandyAngel *big* advice: read the mojolicious code itself
09:09 CandyAngel My own coding vastly improved when I started doing that
09:09 ashimema CandyAngel++ on that one.. mine too
09:09 venus awesome ,
09:10 venus thanks <3
09:10 CandyAngel Oh, and don't suggest UserAgent gets split from Mojolicious :P
09:10 * sri grabs his pitchfork
09:11 venus will remeber that :)
09:11 CandyAngel Err.. what else
09:12 ashimema hehe
09:12 CandyAngel If you want to request new functionality, you need a few usecases to justify it being added/maintained
09:12 sri and for bug reports we really like test cases
09:12 CandyAngel Yup
09:13 * ashimema feels that it's 'the right time' to write a book on mojolicious.. it's feeling super stable these days..
09:13 sri ashimema: yes
09:13 * ashimema wishes he wasn't still such a perl n00b.. else he'd try stepping up.. it's very tempting..
09:14 CandyAngel ashimema: Do it anyway
09:14 ashimema haha
09:14 CandyAngel Headfirst!
09:14 purl well, headfirst is how I work too
09:14 * ashimema is re-reading Modern Perl and a few other books to remind himself what a technical book looks like first ;)
09:15 ashimema sri, did you have a vision for how a mojo book would fit together at all?
09:15 sri and my promise still stands https://twitter.com/kraih/status/764068310644240384
09:16 * sri would advertise any book the team approves of on mojolicious.org too
09:17 CandyAngel And you know we would all help :)
09:18 sri ashimema: no vision, i did like the flask book though and how it grew out of a tutorial https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
09:20 ashimema coolios.. that's a helpful pointer
09:20 sri of course that's more simplistic... no websockets, event loops and so on... but the basic structure is good
09:20 ashimema I'll keep mulling this around in my head for a while.. so busy with work at the moment it's a non starter untill I really schedule some time out for it.
09:21 ashimema indeed
09:25 venus awesome stuff
10:17 Sebbe joined #mojo
11:04 tchaves joined #mojo
11:42 AndrewIsh joined #mojo
11:55 faraco joined #mojo
12:11 tencendur joined #mojo
12:33 gizmomathboy joined #mojo
12:44 esh joined #mojo
12:48 esh joined #mojo
12:49 fuogo joined #mojo
12:50 sri anyone else notice that we've gotten much less lite/full-app confusion here since thos section was added? http://mojolicious.org/perldoc/Mojolicious/Lite#GROWING
13:00 aborazmeh joined #mojo
13:38 zen im trying to upload a file with the following code
13:38 zen my $file = Mojo::Asset::File->new;
13:39 zen $file->add_chunk($_->{file});
13:39 zen $file->move_to("/path/i/want");
13:40 zen (I loop through a array of files around this code)
13:40 zen however when the file gets bigger it doesnt get written, what am I doing wrong? Thanks in advance
14:52 disputin joined #mojo
15:04 zen 82 mb works, 200mb doesnt work
15:04 zen so the code isnt really broken or anything, guess I'm just missing something for bigger files?
15:05 pink_mist how much space do you have in your /tmp ?
15:05 pink_mist free space, that is
15:07 zen 5.7G
15:08 zen one mountpoint for /
15:16 zivester joined #mojo
15:37 jberger I sooo wish I had time to write a book. I have lots of ideas
15:37 jberger I should just do that mega-post-as-book plan, but I've barely had time for blogging lately :(
15:37 jberger after <s>YAPC</s> TPC I should have some more time
15:37 * jberger has said that before though
15:39 sri you keep saying that
15:40 jberger I DO, it makes me very sad
15:40 haarg i'm sure i'll have some free time any day now...
15:40 jberger haarg: you have more projects than I do!
15:46 arcanez jberger: that you have a talk about vue.js, does that mean you like it?
15:47 jberger yes I do
15:47 sri #mojo likes vue.js
15:47 jberger sri: I know batman and I do, are you on board too?
15:47 arcanez I can't keep up with which js 'framework' or whatever they are is the one to use
15:47 sri jberger: not using it much, but yea
15:48 jberger arcanez: I like vue because it is very lightweight, add a little at a time kinda thing
15:48 jberger doesn't need a preprocessor
15:48 jberger and DWIM
15:48 arcanez it's one of those that I've peeked at to stay current but sadly haven't had cause to use :(
15:48 jberger yeah, its hard to keep up
15:48 jberger I can't say that I do that well either
15:49 arcanez I'm just happy $WORK has ES+Kibana now so I can get that experience on my resume, among other things
15:49 PryMar56 joined #mojo
15:49 sri too bad we can't make a fancy acronym with Vue, Mojo, Perl, Postgres...
15:49 jberger :o
15:49 jberger VMPP stack ...
15:49 jberger Nginx doesn't help that either does it? :-P
15:50 jberger WE NEED MORE VOWELS!
15:50 sri VNMPP
15:50 arcanez post-gress or post-grey?
15:50 jberger maybe that's why everyone liked Apache
15:50 preaction ask Pat Sajak if you can buy them
15:50 jberger I say post-gress
15:50 jberger but who knows ;D
15:50 jberger preaction++
15:50 arcanez jberger: glad you said liked. <3 nginx. glad lighttpd faded. wish I had openssl 1.0.2 to do http/2 with nginx though
15:51 pink_mist arcanez: if it was post-grey, it would be po-grey
15:51 arcanez :P
15:51 arcanez sri: you were not correctly considering proper acronyms when you named mojo
15:52 jberger in my limited view lighttpd did one thing, it put a crack in the "everyone uses apache" mindset
15:52 arcanez lol
15:52 jberger which paved the way for nginx and others
15:52 sri arcanez: pfff... all the cool kids use QUIC now!
15:53 arcanez I've almost got a monolithic HTML::Mason app running under nginx+PSGI, but handling all the Apache mod_perl-centric code is terrible
15:53 * arcanez has a swear at $r
15:53 jberger I converted a codebase like that
15:53 jberger $r was the worst
15:53 sri dark times
15:53 arcanez sri: does nginx 'support' quic?
15:53 jberger once I got rid of that, the rest was a giant wrapper of localizations and dispatch
15:54 jberger but $r had to be killed with fire
15:54 arcanez jberger: I've just been creating fake packages that extend the fake ones presented in HTML::Mason::PSGIHandler (which extends ::CGIHandler), which kinda works
15:54 arcanez but yes, code base changes would be optimal
15:54 arcanez `$r->log->warn` is/was pretty handy though
15:54 arcanez aside from dirtying the error_log :)
15:55 jberger arcanez: yeah mimicking interfaces can def help with the porting
15:55 jberger I wonder if I can show some of my code, it was fun
15:56 arcanez right now, I'm stuck on sending an image. rrdtool generates it (based on url, we read the file in, send back Content-Type: image/png (or whatever) and the image)
15:57 CandyAngel What's wrong with VMPP? Obvious logo is obvious. Oneee.. ah ah ahhhh.. twoo.. ah ah ahhh
16:02 jberger arcanez: https://gist.github.com/jberger/aff30b06fb39903196625bb9734e546c
16:02 jberger some quick pulls from the porting of that project
16:02 jberger obviously it would depend a lot on your existing code
16:03 jberger this project was mostly a giant file full of coderef-as-api-endpoints that a dhandler file would load to dispatch to
16:04 jberger so this wrapper took its place, localized the globals and did the dispatch
16:04 jberger it was a few years ago, I might have done a few things a little differently now, but you can see a lot of how it worked anyway
16:07 karjala_ joined #mojo
16:07 jberger CandyAngel++ # haha, took me a while, but I like it
16:09 pink_mist P MVP
16:10 CandyAngel ^_^
16:14 vicash PVMP (pronounced: pump)
16:14 vicash archaic english used to use V as U
16:14 maschine it's leaving out nginx though :p
16:15 vicash VAMPP (vamp) if Apache and PVMPN (pumpin')
16:23 maschine I haven't tried Vue.js yet - sounds like I should (everything else reccomended by the Mojo team has worked out great)
16:24 maschine Next, we need a 'stackronym' for Minion. :)
16:30 dod joined #mojo
16:32 ndiewald joined #mojo
16:35 jabberwok vicash:  "WILLIAM BARTON ROGERS FOVNDER"   confused me as a kid in Boston
16:36 zen ok, when I use perl's open($fh way of writing to a file
16:37 zen 400 mb is no problem, no when I try to do this through Mojo::Asset::File->new
16:37 zen with $file->add_chunk and $file->move_to I only am able to upload files up to 82 mb
16:38 zen what am I doing wrong / overlooking?
16:38 jberger jabberwok is there a city that you haven't lived in ;D
16:39 jberger zen are you using Mojo::Asset::File to open a temp file for you or are you specifying a path/handle?
16:41 arcanez jberger: ah you went a step further and made it a Mojo app
16:41 jberger arcanez: yes
16:41 jberger the idea was to port the application to Mojo entirely
16:41 jberger so this was a shim to get it there quickly "by hook or by crook"
16:41 jberger and then we could back things into proper mojo style in small chunks
16:42 jberger not sure that's appropriate for all codebases, but for this one it was
16:44 arcanez at this point, I'd like something that isn't as tied to apache. we put it on a new box which had apache 2.4 instead of 2.2, which involved some configuration changes that weren't expected (mostly the Allow from all, Deny from all is different)
16:45 arcanez being able to throw up starman (or hypnotoad) anywhere and have it easily be a backend would be neat
16:46 jberger I was lucky, this codebase had some $r but mostly in older lesser-used bits
16:47 jberger much of which I was able to throw out
16:47 jberger the few remaining places I went in and changed it
16:47 zen jberger: im using Mojo::Asset::File->new, whereupon I call the add_chunk to finally do a move_to a specific path
16:47 jberger zen: ok so in that case what is happening is that it is writing to a temporary file
16:47 jberger and then you move it
16:48 jberger try once setting $file->path before writing,
16:48 zen jberger: thank you, will try
16:48 jberger which is more comparable to using open
16:49 zen I dont see a write action in Mojo::Asset::File
16:51 zen my $file = Mojo::Asset::File->new;
16:51 zen $file->path($LABS::Common::labs_tftp."/os/test");
16:51 zen $file->add_chunk($_->{file});
16:51 jberger yes, add_chunk is what I meant
16:52 jberger also, please don't paste into the channel
16:52 zen my bad
16:52 jberger everybody gets one ;-P
16:53 zen thank you :) so add_chunk will take care of the writing because the path has already been set: do I understand this correctly?
16:53 jberger yes
16:53 zen cool
16:53 jberger it was writing with add_chunk before too, but it was writing to a file in a temporary directory
16:54 zen aha, yeah now you explain it like that didnt really make sense
16:54 jberger can I ask why you are using Mojo::Asset::File to write to a local path?
16:54 jberger it isn't necessarily wrong, but perhaps there is something more "right"
16:55 zen there is no specific reason: I came across this and thought this would be the right thing to do
16:56 zen we have a web frontend which takes big files to upload to our system and we need to be able to handle big files
16:56 zen so if there is anything more suitable please let me know
17:00 stryx` joined #mojo
17:01 trone joined #mojo
17:17 jberger ah, no that's probably the right use-case
17:18 jberger though usually you shouldn't have to create the object itself, the fact that they uploaded a file should create the object
17:19 jberger http://mojolicious.org/perldoc/Mojolicious/Guides/Tutorial#File-uploads
17:19 zen oh wow :o
17:21 maschine Yeah, I just pass the uploaded object straight to "get_chunk()" and it works fine
17:22 maschine in my case I'm not saving the uploaded file, but rather parsing it and recompiling it so not having to save a copy of it somewhere is nice
17:25 maschine actually that's not true - following the tutorial example, I'm passing $example->asset to get_chunk()
17:25 jberger maschine: if you already have the asset, why are you passing it to some other's get_chunk?
17:26 rshadow joined #mojo
17:26 jberger perhaps I'm misunderstanding
17:26 maschine I don't need the whole file
17:26 jberger ah, well that's probably a more rare case
17:27 maschine yeah, I only need a range of the file (it's an embedded computer dump), i could of course load the whole thing into my routine but it just takes more memory that way. :)
17:29 maschine I'm calculating MD5, CRC32 and an RSA signature on the binary data, so not loading the whole file makes it easier too
17:29 maschine this probably seems trivial to the perl experts but I'm really proud of this line:
17:29 maschine $md5->add( pack('C*', hex($binfile->{$segmentstart}) ));
17:30 maschine I don't know why but it makes me warm inside :p
17:30 sri jberger: i actually disagree, there are very very very few reasons to use Mojo::Asset::* directly
17:31 jberger especially with Mojo::File now
17:31 sri yea
17:31 jberger I'm not saying I necessarily agreed, just that I understood
17:31 jberger I probably wouldn't have done it like that myself (but I can't say for sure, I don't get file uploads often)
17:32 Grinnz maschine: i consider myself a perl expert but I still have no idea how to use pack or unpack
17:32 maschine for binary stuff it's a must.  I don't really know how to use it either, but I can make it do what I need to. :p
17:32 maschine 10 years ago, that string would have probably taken me 10 lines of code.
17:33 maschine maybe even 6 months ago :p
17:34 sri i know enough to be sceptical of the use of pack 'C*' there
17:35 sri of course i have no clue what $binfile->{$segmentstart} is
17:40 maschine well, $binfile was "unpacked with C* (so I can ultimately use it in hex format), but $md5 needs it in binary, so I'm packing it back in C* :)
17:40 maschine I dunno, I'd love to know more about how it works - but it's serving it's purpose
17:42 karjala_ joined #mojo
17:51 Pyritic joined #mojo
18:07 karjala_ Vue rocks
18:07 karjala_ I used to work with AngularJS (v1) but Vue is a million times better
18:07 karjala_ Angular 2 seemed too hard to use
18:08 karjala_ Vue looks simple, and is simple to use, but is very powerful
18:09 jberger I didn't like that Angular 2 uses so much typescript and other preprocessor-based js that I could barely read it
18:10 jberger I'm sure it is good for everyday js devs but it was too much for me to grok while also learning a framework
18:12 dod joined #mojo
18:17 Armen karjala_: I started looking at Vue for my next project as well. I've spent a lot of time looking at Angular2, but I just don't see an Angular2 workflow that is compatible with the way I like to do things
18:18 Grinnz I should probably try vue for something, since you guys talk it up so much :P
18:18 Armen definitely worth a look
18:34 CandyAngel Out of curiosity.. would it even be possible to make it so UserAgent can handle custom protocols, like the generators in UA::Transactors?
18:34 CandyAngel $ua->protocol_handler(http => ...)
18:34 jberger short answer, no, I think there is probably too much http specific code in there
18:34 pink_mist aside of websockets, that sounds way out of scope
18:35 jberger but longer answer, perhaps as a part of http/2 abstraction ... maybe possible but still probably out of scope
18:36 pink_mist has there been any progress on the http/2 front lately?
18:36 pink_mist (by lately I mean in the past 3-4 months)
18:36 jberger only a mention of the channels branch that is stalled
18:36 CandyAngel the worst thing is.. if it can/does get done.. the calls to split out UA will increase :P
18:37 jberger not a chance
18:37 CandyAngel I didn't mean by me :P
18:38 CandyAngel I've just.. kinda done it? My custom UA accepts an URL, just with a different schema
18:38 CandyAngel Er
18:38 CandyAngel protocol, not schema
18:38 pink_mist urls have schemas though?
18:38 jberger I take it back, I can't really imagine there being anything generic enough to handle other protocols and still be sane
18:38 jberger it would just end up being a TCP client, which we already have
18:39 CandyAngel That's fine. As I said, I was just curious :)
18:39 jberger no, it was worth asking
18:40 pink_mist is there an UDP client though? (quic)
18:40 CandyAngel I'm still making a UA for this TCP client, because how it sets up sessions is pretty websocket-y
18:46 CandyAngel Even though I am going to end up with a weird kind-a-Mojolicious clone, at least I'll understand Mojolicious' internals a bit more :)
18:46 CandyAngel sri should probably avoid looking at the code if he doesn't want to cry and despair
18:59 sri CandyAngel: MY EYES!!!1
18:59 sri what should i look at?
18:59 CandyAngel I'm actually hoping you'll be either neutral or proud.. I can dream :P
19:00 CandyAngel The server/client I'm coding at the moment
19:02 sri re more protocols, i would hope that our http/2 abstraction enables more protocols too
19:03 sri you might want to take a look at this branch https://github.com/kraih/mojo/compare/channels/master#diff-f3aa9989ea4ef55810156d7317822647R1
19:03 sri it needs to be rebased on master though
19:04 sri half of it has already been merged into master in some form
19:06 zen jberger: sorry for bothering you again but I just came back from pizza, when I try setting the $file->path first whereupon doing the add_chunk call doesnt write the file at all
19:06 sri zen: don't use Mojo::Asset::*
19:06 sri it's not what you think it is
19:06 zen ahh
19:07 sri all valid uses for it are in the guides
19:07 sri and that's very few
19:09 * zen tried to fix existing code from a co-worker, assuming he did his homework: bad assumption
19:13 Pyritic joined #mojo
19:13 itaipu joined #mojo
19:13 good_news_everyon joined #mojo
19:13 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vH7rM
19:13 good_news_everyon mojo/master fb3caad Sebastian Riedel: load all modules we use explicitly
19:13 good_news_everyon left #mojo
19:13 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Custom-responses
19:14 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Content-generators
19:14 sri only valid use
19:15 sri btw. wonder woman is a really good movie
19:15 sri first dc movie i liked since dark knight
19:16 Grinnz i've heard that
19:17 Armen I thought suicide squad had its moments
19:23 Eggplant joined #mojo
19:45 PopeF joined #mojo
19:49 sri it's amazing to see twitch chat comment on politics
19:49 sri what a time
19:49 purl rumour has it a time is 14:49:35 2017 and (did you mean "clock"?) or flowing like a river or the fire in which we burn or flies like an arrow; fruit flies like a banana
19:49 * sri thinks it's awesome this exists https://www.twitch.tv/news
20:10 maschine zen:  try Mojo::Upload instead - http://mojolicious.org/perldoc/Mojo/Upload#asset
20:11 maschine I think it does basically the same thing, but you're not using the Mojo::Asset directly (I think?)
20:11 sri no, that's even more wrong
20:12 maschine When you upload a file, you get a Mojo::Upload object back right?
20:12 sri you never ever make your own Mojo::Upload objects
20:13 sri that's that we are talking about
20:13 maschine right, it's created automatically
20:13 zen well I just found out how my coworker puts the whole uploaded file in a json object and then sends it to the controller
20:13 zen so im going to have a word with him about this first thing tommorrow
20:14 maschine sri: isn't the
20:14 purl isn't the is probably => setter/getter stuff in the meta-attr class now?
20:14 maschine oops
20:15 maschine I think I'm using it differently from Zen, looking at it again all he needs to do is Mojo::Upload::move_to() correct?
20:15 maschine I'm not actually saving the file, which is why I'm using the asset attribute
20:31 sri using existing objects is most definitely the right answer
20:32 itaipu joined #mojo
20:38 stryx` joined #mojo
20:48 hkclark joined #mojo
20:51 CandyAngel TMW someone youtube famous moves into your town
20:56 CandyAngel Also, in ::UserAgent::write(), the debug output is before the returning if there is no chunk to write.. is that intentional so you can see a _write call even if there is no chunk?
21:05 ferreira joined #mojo
21:12 zivester joined #mojo
21:28 genioweb joined #mojo
21:33 Grinnz also re: wonder woman https://www.penny-arcade.com/comic/2017/06/12
21:35 nic I think it might be a lego movie where someone borrows/steals her jet until someone else points out you can still see the person inside
21:36 nic <3 lego movies
21:54 nicomen joined #mojo
21:56 Craftsmanship joined #mojo
21:57 Craftsmanship I'd like it if there were a nice way to do translations with mojo::template, is there a ticket / discussion about that?
21:58 Craftsmanship <%% "I speak french" %> ... or something?
21:59 pink_mist I don't think that's something mojo considers in scope, but you could certainly look for a plugin that does it
22:00 pink_mist or write one
22:00 purl Hey, why not write two?  One for the week and one for Sunday best!
22:03 CandyAngel Hm.. I'm not actually sure where to put the parsing for the packet body
22:03 CandyAngel I guess it should be done as Mojo::DOM is..
22:05 CandyAngel Or make ::Transaction::PacketType and have some method (like ->json) that gives the parsed data out
22:05 sri Craftsmanship: way out of scope
22:05 sri that's why i made the plugin back in the days
22:05 CandyAngel Er, not Transaction.. Message :P
22:05 sri <%=l 'Some string to be translated' %>
22:05 sri (note the l() helper)
22:06 Grinnz and then it contacts a translation api or something? o_0
22:06 sri yea
22:07 maschine There's a perl module for Google Translate
22:07 sri https://metacpan.org/pod/Mojolicious::Plugin::I18N
22:07 Grinnz google translate isn't free
22:07 Grinnz bing translate is, but requires an azure app
22:07 maschine it works,well, but it's not free.
22:07 sri you can't do automatic translations
22:07 maschine google translate does
22:07 sri translation apis don't allow it anymore
22:08 Grinnz thats why i was confused, that would be a *lot* of hits to whatever api you wanted to use :P
22:08 Grinnz but with prewritten translations that makes sense
22:08 sri we once had a twitter bot here that posted tweets and translated automatically with google translate
22:09 maschine yeah that api is closed, it's still there but it costs money.. people abused it unfortunately
22:09 Grinnz my bot could do that, as long as it was only like 100 tweets a month :P
22:09 sri then google changed their terms of service once they realized that those kinda uses messed up the translation ai
22:09 Grinnz bing hasnt seemed to care so far
22:10 sri apparently google has a very good translation ai that learns by indexing text on the web
22:10 sri problem is that people started automatically translating their websites with the google api
22:10 Grinnz heh
22:11 sri and the ai would learn its own shitty translations, and quality degraded
22:11 Grinnz interesting
22:11 sri that's why they added those harsh limits
22:13 sri Mojolicious::Plugin::I18N was in core once
22:13 sri one of the first to get removed
22:14 Craftsmanship A helper.
22:14 purl rumour has it a helper is a thin wrapper for Schema::Loader
22:16 arcanez purl: forget a helper
22:16 purl arcanez: I forgot helper
22:18 batman jberger: "problem" I have with vue/whatever is that I want server rendering
22:18 batman Seems like vue only supports this for node backends. (Based on a long PHP thread I read)
22:19 batman Thread = issue on GitHub
22:21 sri batman: you're a weirdo
22:22 arcanez no, he's batman
22:22 arcanez though the voice doesn't translate well over irc
22:23 sri more lego batman than dark knight though :p
22:23 Grinnz impossible to find now but i saw a gif yesterday. someone was named batman in an overwatch game. someone said "Hi Bruce" in chat. he left the game
22:26 sri no wait... this is him https://media.giphy.com/media/zNzslI29dlayk/giphy.gif
22:27 pink_mist rip
22:28 Grinnz hmm have they announced a new arkham game yet?
22:28 Grinnz though i'm kind of annoyed at WB for shying away from PC releases
22:30 * sri plays mostly on console these days
22:31 Grinnz there are probably two game series that could convince me to get an xbone or ps4, and as far as i know they're still releasing on PC
22:31 Grinnz so its just a waste of money for me at this point
22:37 Pyritic joined #mojo
22:37 arcanez xbonex
22:39 Grinnz yes, as a recent penny arcade newspost said, "Xbox Two would have been just fine, everybody.  I’m not saying it’s good, I’m saying it’s better than one they went with."
22:40 Grinnz instead, now their console's abbreviation is an edgy 12 year old's gamertag from 2005
22:41 arcanez sony has just incremented their PlayStation number and no one seems to care. like iPhone and (previously) Pentium
22:41 arcanez Xbox -> Xbox 360 -> Xbox One is an odd way to go
22:43 Grinnz i mean, this is the company that did windows 3.1 -> 3.2 -> 3.5 -> 95 -> 98 -> ME and separately NT -> XP -> Vista -> 7 -> 8 -> 10
22:43 Grinnz oh and 2000 in there
22:44 pink_mist 0_o 3.2? 3.5? I remember 3.0, 3.1, 3.11
22:45 Grinnz 3.2 was apparnetly chinese only
22:45 Grinnz i may be looking at a list on wikipedia :P
22:46 Grinnz and 3.5 was NT, so my mistake
22:46 Grinnz (the NT before NT)
22:46 pink_mist ah yeah, I remember using an NT 3.51 or so once
22:47 arcanez how can one forget win2k, that was a good os, but not a great gaming one. but comparing it to 95/98/ME isn't fair :)
22:47 Grinnz yes, 2000 goes in the NT branch of non-horrible ones :P
22:47 arcanez 'built on NT Technolgoy'
22:53 CandyAngel Win2K is best Windows OS
22:53 CandyAngel Silly SLI making me switch to XP
22:54 Grinnz IMO 7 is the best overall. 8 and moreso 10 went off the rails again
22:54 Grinnz but i'd rather not use any of them, if i could get away with it (and I might have to in a couple years when games are all for windows stupid thing)
22:54 * arcanez huggles his mbp
23:02 batman sri: why weirdo?
23:09 sri batman: server-side rendering
23:09 maschine I was reading about that yesterday - I don't get it either.
23:09 sri Grinnz: horizon zero dawn is soooooo worth it
23:09 sri best game i've ever played
23:10 maschine I guess it would make people like CandyAngel happy since they wouldn't need js to see your site. :p
23:10 CandyAngel \o/
23:10 CandyAngel Oh
23:10 CandyAngel For a second then, I thought purl was saying that :P
23:10 Grinnz mm, there are some exclusives i wish i could have played over the years
23:10 Grinnz but alas
23:11 Grinnz when the price of a single game becomes $400+ i'm a bit unmotivated to try it :P
23:12 Grinnz the only game i've spent that much on was rock band 1, and that drumset worked fine on 2 and 3 and still works for my customs :)
23:13 Grinnz (might have been rock band 2 before i bought it... dont remember)
23:25 ashimema joined #mojo
23:30 arcanez customs?
23:30 purl customs is probably now under Homeland Security, not Commerce, but the Secret Service is still under the Treasury?
23:31 Grinnz custom rock band drum charts
23:32 arcanez didnt know that was a thing
23:33 Grinnz it was... on rock band 2 and 3 on xbox 360 only
23:33 arcanez I have
23:34 arcanez I suck at drums but love it
23:35 trone joined #mojo

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