All Posts

Error: connect ENOENT with nodejs lambda angular ssr

AWS Lambda Error: connect ENOENT /tmp/server-*.sock Background We have a SSR Angular application hosted on AWS. The Lambda function renders the requested page in front of an Api Gateway. We use serverless and an nodejs express server to render the requested page or resource. This error kept showing up when accessing our lambda serverless angular build from multiple regions simultaneously: { Error: connect ENOENT /tmp/server-q2r7kv33bik.sock at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.

Easy setup of yootheme worpress on aws lightsail

Easy setup of yootheme worpress on aws lightsail

Easy setup of yootheme worpress on aws lightsail Setup AWS lightsail wordpress instance Lauch aws light sail instance connect via ssh sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1 &&sudo /opt/bitnami/ctlscript.sh restart apache Install “YooTheme pro” theme Download the Wordpress theme from https://yootheme.com/pro Install and active the theme To add your API Key select “Customize” -> “Settings” -> “Api Key”: Enter your api key here, and publish the changes Add static pages with yootheme demo content Go to “Homepage Settings” -> Select “A static page” -> “Add New Page” -> name it “home” or what ever you like Go back, select “Builder” -> “Library” and select demo page you want to have, publish the changes and you can start customising the pages Repeat step 8 as many times as you require :)

Lazy Load 3rd party scripts in lazy loaded Angular module with webpack

How to lazy load 3rd party scripts globally in Angular using Typescript and webpack We are busy migrating our web app from AngularJS 1.6 all the way up to Angular 7. For this we needed to migrate our ImageEditor module which allows users to customise images in the web app. For this module we relied on the TUI image editor plugin. Since this module is not needed on bootstrap we decided to lazy load it and wanted to have the vendors lazy load as well to optimise our apps startup time.

Angular and SEO for google search console

Angular and SEO for google search console

How to render Angular page for google search bot Recently I got the following preview for a website which was build using Angular 7. Google shows this as a preview: (blank screen for “This is how Googlebot saw the page:” and “This is how a visitor to your website would have seen the page:“) This was not what I signed up for. As i knew Google is able to crawl Angular 2+ websites, i have seen it working for a previous project I built.

It is almost 2019 and we still use table layouts in html emails

It is almost 2019 and we still use table layouts in html emails

Seriously, whyyy??? 🤬🤬😡 So this is the current state: https://litmus.com/community/discussions/7148-how-litmus-didn-t-use-tables-for-its-first-email-newsletter-of-2018 We can do one column email layouts without using any tables. And its all because Microsoft Outlook uses Word to render html mails..

How I build this website

How I build this website

This post outlines how I initially built this website, using a couple of services and open source projects, all in the cloud and (almost) completely for “free” (excluding the domain name (you could use github pages for free) and provided you stay in the free tier).

Hello World!!

Hello World!!

Cut out summary from your post content here.

nodejs lambda sitemap generator

Lambda function to generate sitemap from mysql This is a simple example of how you can use nodejs to generate a sitemap for your Angular application. Since Google can now index Angular application a sitemap helps the crawlers to find all your pages. I wanted to connect directly to our database to generate urls for dynamic pages. This was easily setup using our existing VPC and running the function inside of the VPC.