Thursday, December 20, 2012

Solution: Crack the code (Dead Trigger code-puzzle)

Since the contest is over, it is time for me to reveal the way I figured out to solve the code.

SPOILER ALERT!

Wednesday, December 19, 2012

Crack the code (Dead Trigger code-puzzle)

One of my favorite mobile games (Dead Trigger) recently launched a challenge. You can find a code in there game and the first 10 to decrypt it will receive a T-shirt. Before I share the solution with anyone, I'd like to give you a chance to crack the code as well:

02201010121021210121111011020201012110221021210202010121022210202111111102101012110101021001012021121020210121110221021201012101211100210201010121101010210010120220010121102011020211021012010101202112101211111101012021120101202021010120121201210012110121201211012120121201211

Good luck all.

P.S. Just got the confirmation I was lucky to be among the first 10 :-). I'll post a picture of the shirt as soon as it comes in.

Friday, December 7, 2012

Bundle for faster generation of entity dropdowns for Symfony 2

Soon after writing my previous blog, where I described a way to speed up the rendering of entity dropdowns, I received lots of feedback about better and nicer ways of doing this. All the suggestions where the same: use a custom form type and a datatransformer.

So I did for one entity, but I didn't feel like doing it for every entity. So I wrote a console command that allowed me to do this automatically (for one or all entities within a bundle).

After a short discussion with my boss, we agreed upon releasing the generator to the public and today the day is here.

The bundle is located at https://github.com/TheDevilOnLine/Symfony-FastEntityBundle and can be installed via composer. For all the details please take a look at https://github.com/TheDevilOnLine/Symfony-FastEntityBundle/blob/master/README.md

Oh and feel free to say thanks to my boss (Martijn) in the comments, for allowing me to opensource otherwise proprietary code.

P.S. This is my first time releasing code using composer, so please report any bugs you might run in to on GitHub: https://github.com/TheDevilOnLine/Symfony-FastEntityBundle/issues