The Joy of Hex

Drunken Monkey Coding Style with a hint of Carlin humor

Using Zend Service Manager with Simplebus

Apr 16, 2017 - 3 minute read - Comments phpCQRSEventBusDIC

We are currently working on a project that is evoliving in such a way that using a messagebus would simplify code a lot, and would help us deliver higher quality in less time. After looking around on packagist for available event/command busses, I decided to try out the SimpleBus. The docs are a bit sparse, they do give you all the necessary information, and it is a quick setup. We use Zend Service Manager as DIC and it is fairly straight forward to implement it.

Running ERD in docker

Mar 28, 2017 - 2 minute read - Comments DockerHaskellERD

Recently we started developing a new system on a project, and I needed to create the Entity Relationship Diagram. This time I wanted something simple, where I could just type it out, and the utility would spit out the file in format I need. After some search I found this interesting tool called ERD, it was written in Haskell, and it seemed to do just what I wanted. But as usual something had to give, and in this case it was the setup on OSX.

Deleting keys with wildcards in Redis

Sep 28, 2016 - 2 minute read - Comments RedisLuaPHP

So, for you who don’t know Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker Or to put it simply, it is a Key/Value Store and so much more You have different data structures, that are efficient and great and all, that are at the end of the day identified by their keys, and this is where my problem begins.

Adding GitHub token to Travis CI configuration

Jun 7, 2016 - 5 minute read - Comments CITravisCIGitHub

We are using Travis CI for our projects, and as we are using PHP a lot, and as great as composer is, constantly pulling in the full source for dependencies it can become tedious when you are constantly building and running tests (yes yes, I know I can limit the branches which are run). Luckily for us, composer provides a nice --prefer-dist option that will download the distribution package/zip that can save you a lot of time.

Connecting JetBrains DataGrip to Redshift

May 14, 2016 - 3 minute read - Comments DatabasesToolsDataGrip

Last few weeks I have been working with DataGrip, a latest offering from JetBrains that is marketed as “Your Swiss Army Knife for Databases and SQL” and in my use case it most certainly turned to be true. I needed to connect to Amazon Redshift, for those of you who do not know, Redshift is what happened when Amazon took a PostgreSQL 8.0.2 and mutated it into “Amazon Redshift is a fast, fully managed, petabyte-scale data warehouse service that makes it simple and cost-effective to efficiently analyze all your data using your existing business intelligence tools”, yet it does not support indexes afaik, and has a rather lengthy list of unsupported functions etc.

Introducing ERDammer

May 9, 2016 - 3 minute read - Comments DatabasesDiagramsGraphs

Lately I have been looking into tools that can help us generate Entity Relationship Diagrams from database schema of any RDBMS (provided there is a driver), and to create some kind of editable format that can be then integrated with rest of the documentation and transformed by Sphinx to html. Needles to say the options were sorely lacking, they either fell short of my requirements or they required java to be installed, or both. So in a moment of idleness, my mind decided to build a playground… Again.