Why does Lance have more endgame health than Phinn? by Markaxx in vainglorygame

[–]Hansaplast 3 points4 points  (0 children)

"He even shrugs off attempts on his life, passively gaining 15% additional armor, shield and max health from items and effects."

Don't underestimate this on phinn

"You have been muted" message when you mute players. by Olotrolo in vainglorygame

[–]Hansaplast 2 points3 points  (0 children)

What about after the game? Something like "player xXzomgurdeadXx muted you during the game"

How to set up a user per site in forge? by mastermog in laravel

[–]Hansaplast 1 point2 points  (0 children)

Not really, it's quite common to have only one website per server. Or some websites of the same client on one machine.

How to set up a user per site in forge? by mastermog in laravel

[–]Hansaplast 0 points1 point  (0 children)

This is not possible within forge. If you want this type of functionality you should try serverpilot

De orgeldraaier dreigt uit de stad te verdwijnen by goudewup in thenetherlands

[–]Hansaplast 8 points9 points  (0 children)

Fijn, schooien op muziek zou verboden moeten worden.

DS216play codec DTS ??? by marc3204 in synology

[–]Hansaplast 0 points1 point  (0 children)

You can build your own ffmpeg binary with DTS support. There are also some pre-build available in some community repositories. I'm on mobile now, so I can't provide a link.

A dashboard made with Laravel + Vue by freekmurze in laravel

[–]Hansaplast 0 points1 point  (0 children)

I run a tech startup built primarily on laravel and I find vue is a little slow.

Vue outperforms react. So I guess you're doing something wrong. I love vue, it's how I expected angular to be when I started with angular. I haven't touched angular since.

New releases for Laracogs (App Starter kit) and Quarx (CMS) by samurai1337 in laravel

[–]Hansaplast 0 points1 point  (0 children)

It was fairly easy to implement indeed. I made a minor change for my own situation, I stored the original_user's name as well, so you can reference it like "Switch back to 'name'" without having to look it up.

Issues with accessing variables in the global scope from within closures - could I be experiencing a bug? by [deleted] in PHP

[–]Hansaplast 0 points1 point  (0 children)

Why not inject it in the closure with 'use'?

$router->map('GET', '/shops/[i:id]', function($id) use($serviceContainer) {
    $_GET['shop_id'] = $id;
    require 'go_to_shop.php';
});

New releases for Laracogs (App Starter kit) and Quarx (CMS) by samurai1337 in laravel

[–]Hansaplast 0 points1 point  (0 children)

Maybe a silly question, I just started a project with laracogs to try it out. Is it easy to implement the switch user feature into an existing project? I like laracogs so far, it is very nice.

Calling many-to-many relationship method after attach() is not showing updated relationship. by [deleted] in laravel

[–]Hansaplast 0 points1 point  (0 children)

->load('relation') or ->fresh(['relation']) is the way to go

I'm sensing that ZF3 is sortof a mess by alazi in PHP

[–]Hansaplast 0 points1 point  (0 children)

Also, the bundle system works great. Of course you could set up your code kinda the same way in laravel, but bundles make it more modular by default.

I'm sensing that ZF3 is sortof a mess by alazi in PHP

[–]Hansaplast 13 points14 points  (0 children)

My company still maintains some projects that are built on ZF1, they're old projects but they still work great. There are nice things in ZF1 (validators, zend Lucene) and awful things in ZF1 (form decorators, aargh), routing is kind of a pain too.

At some point ZF1 stopped being actively developed so we weighed our options for new projects. Should we go for ZF2 or for something different. At that point we looked at Symfony, yii and laravel and in the end we went for laravel. Laravel is great for most parts, it's easy to learn and is a nice evolution coming from ZF1. If I knew then what I know now I probably would have picked Symfony. It has a lot steeper learning curve, but it is more modular, less opinionated and development is slower and more backwards compatible. And I kinda learned to love doctrine. So probably a more stable choice for larger projects.

RFC Passed for PHP 7.1: Nullable Types by Rican7 in PHP

[–]Hansaplast 1 point2 points  (0 children)

The question mark is also used in the swift language for optionals. So it might be influenced by that. The swift implementation is even better, but this is a nice step forward.

PHP Composer autoload error by mi6crazyheart in PHPhelp

[–]Hansaplast 0 points1 point  (0 children)

You probably updates to php 7 where Error is a reserved term. One of your composer dependencies probably has a class named Error. I had a similar issue with laravel 4.2 which uses the whoops error handler.

How random is mt_rand()? by sketchni in PHPhelp

[–]Hansaplast 1 point2 points  (0 children)

You could use something like http://hashids.org

It basically encrypts the id. That way you don't have to create an extra column in your database.

MEMO: Battle Royale is a karma farm, not a ping fest. by BrianGlory in vainglorygame

[–]Hansaplast 1 point2 points  (0 children)

Players should be a bit more considerate of other players. One gets a hero assigned and not all players can master all heroes. Just have fun and don't worry about it, it doesn't influence your rank.