Re: [Mojolicious] Re: Wishlist thread

2014-01-02 Thread Sebastian Riedel
doc/Mojolicious/Guides/Routing#Bridges -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails

Re: [Mojolicious] Re: Wishlist thread

2014-01-08 Thread Sebastian Riedel
> > 1) ... 2) ... 3) ... > That's all one use case really, and i'm not even sure it's a valid one. If someone else has an opinion on this i'd like to hear it. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received

Re: [Mojolicious] Re: Wishlist thread (second edition)

2014-08-02 Thread Sebastian Riedel
age" => "Connect timeout" } I'm unable to replicate your problem. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious" g

Re: [Mojolicious] Is Mojolicious a sensible long-term choice for web services?

2016-03-22 Thread Sebastian Riedel
> An important point: > - will it be around and maintained 5 year, 10 years, 20 years from now? > - will there be maintainers and developers for it? > > How does Mojolicious stand in this respect? It seems to depend on a single > man, Sebastian Riedel. Will Mojo die when he tur

Re: [Mojolicious] Using Mojolicious::Plugin::Coro with Mojo::Redis2

2016-04-30 Thread Sebastian Riedel
> Is there a reason why there is no Mojolicious::Plugin::Coro module on CPAN? Coro doesn't work with Perl 5.22+, so it's basically dead. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subs

Re: [Mojolicious] Morbo errors (unintialized value at Mojo/Server/Morbo.pm line 22)

2016-09-22 Thread Sebastian Riedel
> Is this a known issue, has something changed in how to launch morbo, or is > something else afoot? Nope, this seems highly unusual. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the

Re: [Mojolicious] Re: How does hypnotoad handle the startup function?

2016-10-25 Thread Sebastian Riedel
> Use Mojo::IOLoop::Delay in a statup function, does this comply with the > specification? You'd normally use Mojo::IOLoop->next_tick(sub {...}). -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are

Re: [Mojolicious] Mojo::Pg example Blog

2016-12-23 Thread Sebastian Riedel
sed to teach how to write tests. Maybe some day i'll get around to write them myself. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To

Re: [Mojolicious] Is there any way to execute helper outside the route?

2017-01-28 Thread Sebastian Riedel
http://mojolicious.org/perldoc/Mojolicious#AUTOLOAD -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop

Re: [Mojolicious] Integrating to other event based event based architectures

2017-02-09 Thread Sebastian Riedel
Just use the reactor directly. http://mojolicious.org/perldoc/Mojo/IOLoop#reactor -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+u

Re: [Mojolicious] Intermittent 400's using Mojo::UserAgent

2017-03-10 Thread Sebastian Riedel
MOJO_USERAGENT_DEBUG=1 -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: [Mojolicious] Molicious and Minion help request

2017-06-02 Thread Sebastian Riedel
> Could you please help me what I am doing wrong or what I missed ? Add your task during application startup. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Moj

Re: [Mojolicious] Molicious and Minion help request

2017-06-02 Thread Sebastian Riedel
Actually, it might be best if you start experimenting with the example from the Minion documentation. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious"

Re: [Mojolicious] Minion Locking problem (deadlock) !

2017-06-29 Thread Sebastian Riedel
> $retval->{data}->[0]->{demo_job} = int(rand(1000)); > $retval->{success} = Cpanel::JSON::XS::true(); > return $job->finish($retval); > }); You can't use the finished and failed events from inside the task. -- Sebastian Riedel http://mojolicio.us htt

Re: [Mojolicious] UTF-8 in Mojo::File

2017-10-19 Thread Sebastian Riedel
> Does anybody know why the handling of UTF-8 characters in Mojo::File has > changed? There was a long discussion on IRC. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google

Re: [Mojolicious] Question regarding Mojo::UserAgent non-blocking example

2017-11-02 Thread Sebastian Riedel
> $fetch = sub { > ... > $fetch->(); > > $end->(); > }); > }; I think you are correct, this code is better. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subs

Re: [Mojolicious] Re: how can I mock Mojo::UserAgent in non-blocking request

2017-11-14 Thread Sebastian Riedel
e. Mojo::UserAgent has a pool of keep-alive connections that remain in the event loop, leaving it file descriptors to watch, so it has no reason to stop by itself. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you

Re: [Mojolicious] Re: Error installing Mojolicious-7.56

2017-11-18 Thread Sebastian Riedel
Fix released with Mojolicious 7.57. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails fro

Re: [Mojolicious] Minion::Backend::Redis

2017-12-31 Thread Sebastian Riedel
ent, and i have not heard anything about plans. -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receivin

Re: [Mojolicious] SQL::Abstract::Pg

2018-02-01 Thread Sebastian Riedel
> I spoke with you about this briefly on Twitter, but just figured I'd put it > out here, too. What about multiple record inserts on a single call? > Twitter thread. Yes, it's possible, not sure about how useful it would actually be though. -- Sebastian Riedel http:

Re: [Mojolicious] Uploading "large" files with Mojolicious::Lite not working as expected

2018-02-06 Thread Sebastian Riedel
has to be fully received to be able to send a response, and that's often counterproductive, so a connection reset happens. We've been looking for a better solution for years, but not found one yet. Browsers make it a tricky problem. Sebastian Riedel http://mojolicio.us http://gith

Re: [Mojolicious] Migrations are always run inside transaction

2018-02-07 Thread Sebastian Riedel
enum there are workarounds that work in transactions (rename type, create type, add column, remove column). -- Sebastian Riedel http://mojolicio.us http://github.com/kraih http://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious&quo

Re: [Mojolicious] Re: Looking for volunteers

2018-04-17 Thread Sebastian Riedel
> Oh great! If I wasn't clear about it, the link I provided is my attempt at > #70. > > https://github.com/s1037989/minion/commit/6bc1ca7a40e8b8e38ba683008aab83fedb2d78af That doesn't quite look right. Are you making all pages poll history data even if they don't need it? And i think you're not pa

Re: [Mojolicious] Configuration override via Test::Mojo not being used

2018-09-27 Thread Sebastian Riedel
> Anyone have any ideas? Upgrade Mojolicious? -- Sebastian Riedel https://mojolicious.org https://github.com/kraih https://twitter.com/kraih -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and s

Re: [Mojolicious] Configuration override via Test::Mojo not being used

2018-09-27 Thread Sebastian Riedel
> Config overriding works only for full apps Actually that's not true, but i see this here is a special case. Config overrides only work with full apps and instances of lite apps. Lite apps in classes are a pretty bad hack and do not work here. -- Sebastian Riedel https://mojolicious.o

Re: [Mojolicious] Minion: getting data out.

2019-10-21 Thread Sebastian Riedel
> state=> "inactive", > > "state" => "finished", Look at the different states, the job is simply not finished yet at the time. -- Sebastian Riedel https://mojolicious.org https://github.com/kraih https://twitter.com/kraih -- You received t

Re: [Mojolicious] libcurl via Mojolicious

2019-12-10 Thread Sebastian Riedel
> > Another big disadvantage is that it doesn't use Mojo::Promise. I don't > > think it will attract too many Mojo users without. > > The latest version does, actually. Ah, nice. Then you can simplify your example too. my $promiser = Net::Curl::Promiser::Mojo->new(); my $handle = Net::C

Re: [Mojolicious] Stickers!

2019-12-22 Thread Sebastian Riedel
>> We now have Mojolicious and Perl stickers over on Stickermule, enjoy! :) >> >> https://www.stickermule.com/user/1070707933/stickers Afraid not, Stickermule closed their Marketplace. -- Sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious"

[Mojolicious] Re:

2020-01-21 Thread Sebastian Riedel
Thank you, glad it's working well for you. :) -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this

Re: [Mojolicious] Mojolicious Web Clients Book

2020-02-14 Thread Sebastian Riedel
There's also a PDF version of the book now. https://leanpub.com/mojo_web_clients/ -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+u

[Mojolicious] Re: Best practices for dynamic workflows

2020-02-14 Thread Sebastian Riedel
> > The link between > modules would be a queue, not sure about the backend for those queues > yet, though, perhaps Pg or Celery. > Fyi. Mojolicious has a job queue too. https://github.com/mojolicious/minion -- sebastian -- You received this message because you are subscribed to the Go

[Mojolicious] New server status plugin

2020-02-14 Thread Sebastian Riedel
This week was SUSE HackWeek again. And my main project this time was a rewrite of mojo-status. It got a completely new storage backend based on File::Map, so it should be much more reliable now. And a bit more pretty. https://github.com/mojolicious/mojo-status Since the topic comes up every

[Mojolicious] Re: New server status plugin

2020-02-14 Thread Sebastian Riedel
Forgot to mention that it will now also show you the slowest requests, with a little smiley indicating the urgency of optimising that part of your code. :) -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this gr

Re: [Mojolicious] Re: New server status plugin

2020-02-16 Thread Sebastian Riedel
> > Just curious -- why did you choose to make Mojo::MemoryMap a part of > Mojolicious::Plugin::Status instead of its own stand alone? > For my convenience. Both are being developed together and coordinating multiple CPAN distributions costs time. Unfortunately spare time is a very limited resou

[Mojolicious] Re: $ ->has_error validation method in Mojolicious higher than 8.33 version

2020-04-12 Thread Sebastian Riedel
> > I have installed last version of Mojolicious and I found that the $ > ->has_error validation method was working with an error. > When I send data form with empty field, which must be required full, I get > empty value of $v->has_error. This method worked correctly in previous > version of

Re: [Mojolicious] Re: $ ->has_error validation method in Mojolicious higher than 8.33 version

2020-04-14 Thread Sebastian Riedel
Can you fix it so it worked like in previous versions? Thanks, fixed. https://github.com/mojolicious/mojo-pg/compare/e44efd108841...7a4a016fd69d -- Sebastian Riedel https://mojolicious.org https://github.com/kraih https://twitter.com/kraih -- You received this message because you are sub

Re: [Mojolicious] Problem with streaming...

2020-05-04 Thread Sebastian Riedel
And if you want to stream directly to the browser that made the original request, there are also proxy helpers that do all the streaming stuff for you. https://mojolicious.org/perldoc/Mojolicious/Plugin/DefaultHelpers#proxy-get_p -- sebastian -- You received this message because you are

[Mojolicious] Re: Problem with streaming...

2020-05-10 Thread Sebastian Riedel
Please don't use HTML for formatting, the code is completely unreadable. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@goo

[Mojolicious] Re: mojo async/await with controller

2020-05-26 Thread Sebastian Riedel
> > I am still getting the following. > > Note: my router is > $r->post('/login')->to('sessions#on_user_login_p')->name('do_login'); > > [2020-05-26 23:47:28.06952] [-19048] [debug] Routing to controller > "ConvergeAtCommex::Controller::Sessions" and action "on_user_login_p" > > [2020-05-26 23

Re: [Mojolicious] Async/await in Mojolicious Full App

2020-05-27 Thread Sebastian Riedel
I'll assume it was you who asked the same question on IRC earlier. Had you been sticking around for a bit longer you would have seen my instructions for getting a working application that i tested locally. 14:08 to be sure i did a "mojo generate app" and then replaced the controller with h

Re: [Mojolicious] Async/await in Mojolicious Full App

2020-05-27 Thread Sebastian Riedel
> > Oops! my bad. Apologies! I should have stayed. But, I had to get into a > skype call. > IRC is rarely synchronous, if you can't wait a few hours for an answer just stick to the mailing-list and forget IRC. The friendly folks in #mojo will answer almost any question, but you might have to w

[Mojolicious] Re: multiline %= include

2020-06-16 Thread Sebastian Riedel
> > How can I write a include statement in multiple lines? > Something like this: > <%= include 'breadcrumb', path=> [ { one=> 'first' }, { two=> 'second' } ] %> -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubsc

[Mojolicious] Re: proxy->start_p with custom response body

2020-07-09 Thread Sebastian Riedel
> > I'm setting up an application that needs to proxy a request. > > I found this example and it's working well: > > https://metacpan.org/pod/Mojolicious::Plugin::DefaultHelpers#proxy-%3Estart_p > > I may need to possibly transform the response body (from HTML to JSON). > What would be the best w

[Mojolicious] Re: Where to put view logic?

2020-07-29 Thread Sebastian Riedel
> > The problem is that some of the display logic is fairly complicated: > one of my templates has a 30 line <% %> block before anything can be > displayed. It strikes me that these 30 lines (and others) are better > off in a subroutine or method. But where? MyApp::View? How would I > call it

[Mojolicious] Re: Puzzled by error message in Mojo::IOLoop::Subprocess::run

2020-08-11 Thread Sebastian Riedel
Please open an issue on GitHub, that looks like a bug in Mojo::IOLoop::Subprocess. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsu

[Mojolicious] Re: web cam websocket

2020-09-14 Thread Sebastian Riedel
Then you need to negotiate a subprotocol. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this dis

Re: [Mojolicious] Re: web cam websocket

2020-09-15 Thread Sebastian Riedel
> > Given this, should Mojo even send a response? Or if it does, should it at > least warn “failed to negotiate subprotocol; sending handshake response > anyway”? > So you want Mojolicious to cause a TCP level connection error instead of letting the handshake fail properly? That seems like a

Re: [Mojolicious] Re: web cam websocket

2020-09-15 Thread Sebastian Riedel
> > An HTTP-level error response--maybe 426--would probably be most sensible. > What error would common browsers give in that case? -- Sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receivin

[Mojolicious] Re: How to "connect" embedded user agent to application being tested?

2020-10-22 Thread Sebastian Riedel
> > my $got = $self->ua->get('/welcome')->result->text; > Relative URLs are resolved by the user agent to $self->ua->server->app, which in this case is probably a Mojo::HelloWorld instance. I strongly suggest you use a custom service class with its own Mojo::UserAgent instance

[Mojolicious] Re: Ways of rendering a stream

2020-10-23 Thread Sebastian Riedel
> > Typically, with a stream, you'd just write the HTTP headers, and then just > start writing out your content. I don't understand why it's so challenging > with Mojolicious. I figured finalizing the response headers would be what I > needed, but now I have no idea. > > I'm not trying to do

Re: [Mojolicious] Cancel in-flight HTTP request?

2020-10-23 Thread Sebastian Riedel
You can set a response error on the transaction to cancel it safely. That's what the Mojolicious tests use. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an e

Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread Sebastian Riedel
> > Ok, data is encoded from UTF-8 into bytes when I log a message, > but when this data is printed to STDERR > How make it decoded from bytes to UTF-8 back? > my terminal supports UTF-8 and I want see nice messages instead of ХабР> UTF-8 *is* bytes. If you are encoding already encoded UTF-

[Mojolicious] Re: csrf vs testing

2020-11-03 Thread Sebastian Riedel
These CSRF protection features are mostly legacy features these days for backwards compatibility. Now we have SameSite cookies, to which modern browsers default. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from

[Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-20 Thread Sebastian Riedel
Publishing logs from our IRC channel is against the rules. I'm just giving you a warning for now, please don't do that again. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails

[Mojolicious] Re: Using something like HTTP::Exception for exception handling

2020-11-25 Thread Sebastian Riedel
> > Likewise, is a plugin or documented method for overriding the > `reply.exception` helper to use a specific template/layout when there are > errors? > https://docs.mojolicious.org/Mojolicious/Guides/Rendering#Rendering-exception-and-not_found-pages -- sebastian -- You received this messa

[Mojolicious] GitHub Discussions

2020-12-08 Thread Sebastian Riedel
GitHub added a new feature for discussions. It could be a decent alternative to Google Groups. We are going to test it for a bit to see how it goes. Maybe give it a try with your next question. https://github.com/mojolicious/mojo/discussions -- sebastian -- You received this message becau

[Mojolicious] Re: GitHub Discussions

2020-12-19 Thread Sebastian Riedel
Since everybody seems to like GitHub Discussions so far, we are going to use that as our default forum for a bit. And https://forum.mojolicious.org will redirect to it. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscrib