Author: Andreas Katzian
Automated Hubspot Email with Line Items Data
When creating transactional/automated email templates in Hubspot, you are mainly limited to displaying information via personalization tokens. However, the “Programmable Email Beta” introduced additional capabilities to add your custom code and enrich your email content with further data.
Export and Backup Your Data and Files from Slack
We decided to opt-out of the very noisy universe of Slack in favor of native frictionless messaging, note-taking, and sharing tools. So after navigating the Slack Data Export Jungle and finally exporting data as JSON files, we created a handy Python script to download and backup all shared files, so you don’t have to.
Running Python Azure Function Locally on an M1
Currently, the Azure Function Tools do not support Python functions on an M1. There is an ongoing process to update the tools in the future. When trying to start the python function, you will receive an error message like the following: Microsoft.Azure.WebJobs.Script: Architecture Arm64 is not supported for language python. Meanwhile, it is necessary to implement a workaround […]
Hubspot Emails with Custom Data
Using the standard email feature from Hubspot and working with the Drag&Drop editor is pretty fine. However, you may want to create some more sophisticated emails for your customers in some situations including complex data.
Running Rake Tasks with Cron and File Locks
Rake tasks within Ruby on Rails are compelling. It doesn’t matter if you need to do some maintenance, cleanup or complex data processing, rake tasks will emerge in your system as it is becoming bigger and more complex. More importantly, you certainly want to execute these tasks regularly and in the background. cron is a wonderful tool to execute […]
Build Docker images with GitLab CI on AWS ECR
GitLab CI is a great way to automate testing, building and deploying of almost any application. Recently we came across the requirement to setup a repository with several definitions of Docker container images. For sure we wanted to use GitLab CI to also automate the building of our images and to push them to our […]
Action Cable on specific page within Ruby on Rails
Using page specific action cable functionality within ruby on rails comes in very handy sometimes. It allows you to target given functionality to specific pages and controllers. Furthermore, it reduces the number of open web sockets, which again reduces your server load.
Formatting number input with Rails, Bootstrap, SimpleForm and autoNumeric.js
Often you want to format your number inputs in a pretty and proper way for your users. Using Bootstrap and SimpleForm within your Rails application is a good way to start, but how will you deal with number formatting within your input field for decimal and thousands separators?
Optimizing png file size for mobile websites on your mac
Got a bad rating on your website site speed (e.g. from Google PageSpeed Insights)? Did you observe the advise “Properly formatting and compressing images can save many bytes of data”? Don’t panic, here you’ll find a handy solution to optimize your png files on your mac.
Set default values for has_one association
Sometimes you simply want to set some default values for an associated model within ActiveRecord without thinking too much of creating possible side effects when overriding methods like build_association or add model callbacks. The following example demonstrates the easiest way so far to achieve the desired functionality.