Free Redirects multiple domains/URLs using Deno Deploy

I once had to merge bunch of apps running on different subdomains into one App.

The domain was managed by Cloudflare and the first idea was to use Redirects from Cloudflare. However, I couldn’t make it work for some reason.

Deno Deploy has generous free tier and with just few lines of code I was able to manage setup redirects.

import { serve } from "https://deno.land/std@0.155.0/http/server.ts";
function handler(req: Request) {
  if (req.url.includes('/join')) {
    return Response.redirect("https://example.com/join", 301);
  }
  return Response.redirect("https://example.com/login", 301);
}

serve(handler);

You can write conditions or build a lookup table for request URL (req.url) in above code and you have different redirects based on different rules.

The amazing thing is, Deno deploy projects has a setting where you can use multiple domains for a single project.

Deno Deploy project domain setting


Add domains or subdomains and update DNS and Voila! You have a simple free app handling redirects.

Deploy Jekyll sites with Amazon S3

Jekyll is great as a static CMS. Amazon S3 is cheap to host static files. I use both to host few blogs.

S3 Website is the Plugin I use to deploy to S3. It’s a nifty plugin which does the job but with a catch. It depends on specific version of Java.

I bought a used ThinkPad (I love the old ThinkPads) and was trying to set up the machine to deploy the blogs. I installed Java and tried to run the usual s3_website push command but it needs a rather old version.

So if you are using S3_website plugin, you need the LTS openjdk-8. You can install it in Ubuntu with following command.
sudo apt install openjdk-8-jdk

Once installed, run java -version to make sure you have openjdk version 1.8.

That’s all! Happy hacking!

Emerging Skills for 2020 (India)

LinkedIn released its 2020 Emerging Jobs Report for India few days ago. As a consistent learner, I always want to learn new skills. So, I wanted to list the skills mentioned in the report with emerging Jobs.

However, skills listed here sometimes don’t suffice for the job or just not required. For instance, you don’t have to learn both Node.js and Django to be a back-end developer.

The visualization for the results:

created at TagCrowd.com

Short Analysis based on word cloud:

  1. Marketing and JavaScript seems to be most popular and both of them are good marketable skill for inspiring freelancer.
  2. LinkedIn tends to favor AngularJS more than ReactJS, exactly the opposite of global trend. I think it’s because Enterprises tend to use AngularJS more often than React.
  3. Javascript is the language of choice if you are thinking about becoming a Web developer.
  4. Automation seems to be the trend of the year. There are many vendor specific skills such as UiPath and Automation Anywhere where certification from vendor should help to break into the Automation field.

Emerging Jobs and Skills Data

1. Blockchain Developer

Required Skills

  • Hyperledger
  • Solidiity
  • Node.js
  • Smart Contract

2. Artificial Intelligence Specialist

Required Skills

  • Machine Learning
  • Deep Learning
  • Tensor Flow
  • Python
  • NLP (Natural Language Processing)

3. Javascript Developer

Required Skills

  • AngularJS
  • Node.js
  • React.js
  • React Native
  • MongoDB

4. Robotic Process Automation Consultant

Required Skills

  • UiPath
  • Automation Anywhere
  • Blue Prism
  • Process Automation
  • SQL

5. Back-end Developer

Required Skills

  • Node.js
  • MongoDB
  • Javascript
  • Django
  • MySQL

6. Growth Manager

Required Skills

  • Business Development
  • Team Management
  • Growth Strategies
  • Market Research
  • Marketing Strategy
  • Digital Marketing

7. Site Reliability Engineer

Required Skills

  • AWS (Amazon Web Services)
  • Ansible
  • Docker
  • Kubernetes
  • Jenkins

8. Customer Success Specialist

Required Skills

  • CRM (Customer Relationship Management)
  • Team Management
  • Customer Retention
  • Saas (Software as a Service)
  • Account Management

9. Full Stack Engineer

Required Skills

  • AngularJS
  • Node.js
  • Javascript
  • React.js
  • MongoDB

10. Robotics Engineer (Software)

Required Skills

  • RPA (Robotics Process Automation)
  • UiPath
  • Blue Prism
  • Automation Anywhere
  • Robotics
  • SQL

11. Cybersecurity Specialist

Required Skills

  • Vulnerability assessment
  • SIEM (Security Information and Event Management)
  • Penetration Testing
  • Information Security
  • Network Security

12. Python Developer

Required Skills

  • Django
  • Flask
  • MySQL
  • Javascript
  • HTML

13. Digital Marketing Specialist

Required Skills

  • MySQL
  • HTML
  • SEO (Search Engine Optimization)
  • Google Ads
  • SMO (Social Media Optimization)
  • SEM (Search Engine Marketing)
  • Google Analytics

14. Front-end Engineer

Required Skills

  • CSS (Cascading Style Sheets)
  • Bootstrap
  • Javascript
  • HTML5
  • AngularJS

15. Lead Generation Specialist

Required Skills

  • Market Research
  • Email Marketing
  • CRM (Customer Relationship Management)
  • Business Development
  • Digital Marketing

So, a lot to learn in 2020. What are you going to learn this year? I would love your opinion.

Learning to Code!

I have been trying for ages to get into programming. Hours have been spent on Moocs, Books and many tutorials. Many new year resolutions went unfulfilled. The result so far has been, well, not satisfying.

I guess the reason why I’ve been able to call myself a Programmer because I’ve been not able to focus and finish. Not able to focus on a language (Tried Ruby, Python, PHP and JS so far) or a framework (RoR, Sinatra, Django, Flask, Express).

All the articles are saying one should focus on JavaScript if he wants to be a Web/App Developer. I prefer backend programming more than frontend and NodeJS should be enough to start with.

I bought The Complete Node.js Developer Course and loving it so far. It’s good for beginners and anyone with basic understanding of JS/Programming can take it.

So, I will be focusing mostly on JS for 2018 and will be posting updates.

Hoping for the best!

 

 

The essential Analytics setup for WooCommerce

I deal with many WooCommerce powered stores. Data collection, reporting and getting useful information always remains a challenge for many store owners.

These are the must have plugins and services I use for an ideal analytics setup.

Google Analytics

Google Analytics needs no introductions. I make sure that Ecommerce tracking, Events and Enhanced Ecommerce are setup accurately.

WooCommerce plugins for Google Analytics

  1. WooCommerce Google Analytics Integration (Free, comes with Ecommerce tracking, standard add to cart events and enhanced ecommerce).
  2. Actionable Google Analytics for Woo (Paid, Very useful for tracking Users, enhanced ecommerce, internal promotions etc).

Segment

Segment (Inexpensive) is very cool. It lets you collect all kind of data and then send it to your favorite services. In order to track Order and Customer details etc from WooCommerce, you’ll need a plugin to connect it with Segment.

These are two popular ones:

Second Analytics Service

Google analytics is awesome but sometimes you need more power. Behavioural analysis, Retention Analysis, Funnel visualization, Heatmaps etc are much more fun in the services listed below. You can install them directly or use Segment to send data to them.

  • HotJar (Free to start with, Heatmaps, Funnels, Polls etc)
  • HeapAnalytics (Free to start with, Very easy to use, I love the Event tracking, Charts, retention and segments)
  • Mixpanel (Freemium, HeapAnalytics alternative)

Please let me know if the post was useful. I also help with Analytics consulting. Contact me if you need help with Analytics, Growth or Conversion.