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
>
> 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
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
> 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
> 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
> 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
> 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
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
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
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
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
> 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
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"
> $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
> 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
> $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
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
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
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
> 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:
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
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
> 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
> 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
> 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
> 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
> > 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
>> 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"
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
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
>
> 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
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
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
>
> 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
>
> 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
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
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
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
>
> 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
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
>
> 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
>
> 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
>
> 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
>
> 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
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
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
>
> 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
>
> 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
>
> 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
>
> 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
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
>
> 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-
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
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
>
> 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
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
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
57 matches
Mail list logo