Categories
Azure Deployment Github actions

Handle argumented Docker contrainer registry paths

In our a recent setup I’ve created, we are using Azure Container Registry to hold a base image, which we use when building our main project.

However, having multiple environments and different user settings on Azure means we have different base image paths…

Continue reading

Categories
composer php plugin

CSRF token package

Working on older projects (as i tend to do), I often get various requirements for security enhancements. A few days ago, somebody apparently ordered a security test of a site I was working on, so yesterday i got the report:3 HIGH security errors, one being that we had no CSRF tokens on the forms. gah… […]

Continue reading

Categories
Azure

Handle replication errors on Azure Database for MySQL flexible server

At work we have just recently started moving our data to Azure Cloud. We still have the old on-premise setup running, with databases and web servers.

To make the move to Azure Cloud, I have used a lot of time prepping the terraform scripts to handle our servers, but I have only recently been able to make a copy of the current database (with a whopping 1.7TB of data) and copy it to the cloud.

It took a few days to insert the data into Azure MySQL, so after getting a replication error today, I was not ready to drop the replica database, to insert a fresh dump.

Continue reading

Categories
Ruby On Rails

Old rails project with gem install errors :/

One does not simply “gem install thin -v 1.5.1” on new Macs, when the project depends on ruby 2.5.7..

Continue reading

Categories
php

Laravel AWS SDK credentials using .env and configs

Every now and then, I need to integrate with an Amazon web service (aws). I like the whole IAM user way of doing this, so that is usually my preferred choice. However, every time i need to setup a connection in a project (using mostly Laravel these days), I forget how I did it last […]

Continue reading

Categories
php-time-ago

Hacktoberfest 2020

This year at hacktoberfest 2020 my small project php-time-ago got a bit of attention. This was very nice and i hope that people had a fun time.

Continue reading

Categories
php-time-ago

Lots of translations on php-time-ago module

The composer module php-time-ago is now in version 0.4.10 and has included translations for the following languages…

Continue reading

Categories
Freelance Startups Uncategorized

Did a small startup and quitted again – what I learned

A little over a year ago I quitted my day job as a fullstack webdeveloper at a small company in Copenhagen. I did this in order to work fulltime on a startup with two friends of mine. The startup company (now known as simply “startup”) is doing LIVE events (video recoding and streaming) and hosting […]

Continue reading

Categories
php-time-ago

php-time-ago plugin updated to version 0.4.0

Just wanted to say, that after a few requests i’ve updated the php-time-ago plugin to be able to use translations. The plugin is available on github and using composer

Continue reading

Categories
Ruby On Rails

IE + iframe + cookies

After spending lots of hours building a system for a client, using Ruby on Rails, everything was deployed and worked perfect… until IE came along that is. The customer had iframed the project into their current website, and since the user had to sign in to the new project using an iframe, IE began to […]

Continue reading