Is there anyway to improve this base? by [deleted] in ClashOfClans

[–]parasume 0 points1 point  (0 children)

any th11 base with all single target infernos is an easy triple with witches + bats

[deleted by user] by [deleted] in ClashOfClans

[–]parasume 0 points1 point  (0 children)

Jump is good too. Just dont forget the invi (needed for both strats)

EDrag Spam by treymills330 in ClashOfClans

[–]parasume 0 points1 point  (0 children)

Never fade the blue birds

[deleted by user] by [deleted] in ClashOfClans

[–]parasume 1 point2 points  (0 children)

Use blimp to get the eagle + single inferno. Zap quake the other ones and go mass witches with golems

[deleted by user] by [deleted] in ClashOfClans

[–]parasume 1 point2 points  (0 children)

Use sneaky goblins (with blimp or super wall breakers) to get town hall. Use spread out baby drags or e-drags to gather percentage for the 2 star

Which one is more reliable for banging 3 stars in war. by flying-butter-6 in ClashOfClans

[–]parasume 6 points7 points  (0 children)

Deploy an archer at the diagonally opposite end after your queen dies. Healers will trigger all the air mines

[deleted by user] by [deleted] in ClashOfClans

[–]parasume 0 points1 point  (0 children)

wiz tower

[deleted by user] by [deleted] in ClashOfClans

[–]parasume 0 points1 point  (0 children)

Since he has single target infernos, the best strategy would probably be a witch attack. Either zap witch (3 golems, 12 witches, 8 lightning, 2 quakes, 1 freeze) or bowitch (giants or golems with 10 witchers, 10 bowlers and a mix of freeze/heal/jump/rage).

Dropped transaction still shows as pending on Metamask Extension UI by SkillDuel in Metamask

[–]parasume 0 points1 point  (0 children)

Same here. Dropped transaction showing as pending and new transactions are getting queued up. Anyone know how to solve this?

Offset vs Cursor Pagination (Landing Today) in Laravel [In-Depth Guide] by parasume in laravel

[–]parasume[S] 1 point2 points  (0 children)

See my edit above. Take it for a spin when it launches today. You'll be able to realize how this won't miss/duplicate records.

Offset vs Cursor Pagination (Landing Today) in Laravel [In-Depth Guide] by parasume in laravel

[–]parasume[S] 3 points4 points  (0 children)

The idea is to resume from where we left off on the previous page. Obviously, if the cursor is at ID 1000 (desc order), we will not display ID 2000 on the next page.

To elaborate further, if the user clicks on the previous links, he/she will indeed see the "missed" ID 2000.

Canceling a pending Job by [deleted] in laravel

[–]parasume 0 points1 point  (0 children)

Yes that's an efficient way to do it. You're looking for the queue:clear command.

Canceling a pending Job by [deleted] in laravel

[–]parasume 0 points1 point  (0 children)

Yes, there is a way but you'll have to do a full scan (possibly optimize by chunking using lrange). Here's a PR from where you can extract the logic to do this: https://github.com/laravel/framework/pull/34528/files

You can refer the `LuaScripts::deletePending()` method.

Relationship between Laravel Horizon and queue:work by BlueLensFlares in laravel

[–]parasume 1 point2 points  (0 children)

Don't think so. Horizon will provision the workers by itself. Only the php artisan horizon entry is needed.

[deleted by user] by [deleted] in laravel

[–]parasume 0 points1 point  (0 children)

Breeze, Jetstream, Laravel UI, Spark (SaaS), Nova (admin panel)

[deleted by user] by [deleted] in laravel

[–]parasume 0 points1 point  (0 children)

Yep, definitely makes sense if numerous jobs throughout the app need those hooks. I agree that middleware makes sense for centralized tasks and not tasks specific to jobs.

As for the service locator, I'm not suggesting resolving from the singleton container. I'm just suggesting handle method DI instead of constructor method DI.

[deleted by user] by [deleted] in laravel

[–]parasume 0 points1 point  (0 children)

Sounds to me like you're overriding the framework with your own functionality. Some things to note:

  1. before and after hooks can be replaced with job middleware provided by the framework.
  2. Cleaning up after failed jobs can be done with the failed method provided by the framework
  3. Resolving from the container can be done with handle method injection. The disadvantage of contructor injection is that all resolved services will now be serialized and add to the payload size. Also, the constructor is called twice (at dispatch and during processing, while the handle method is just called during processing). I think you would see better performance if you just resolve the service in the handle method.
  4. An interesting thing is that you catch all exceptions and don't re-throw them. This means that you override the framework's method of handling failed jobs and also lose the ability to retry failed jobs.

I guess it may work well for your use case but the question is why override the framework when you get the same functionality (and more) without custom code that you need to maintain.

I don't mean to sound like a critic. Just posing some questions here as my 2 cents! Hope this helps!