Author Archives: mbcx6djh

Airflow | cannot import name ‘resolve_types’ from ‘attr’

On setting up Airflow with Python 3.8 I was receiving an error when initialising the database. There are certain dependencies which need to be installed with specific versions however when I tried to use pip install apache-airflow==1.10.12 \ –constraint “” I couldn’t get the install to complete. I ran the standard apache-airflow installation for Airflow… Read More »

User Authentication in SailsJS

When creating a new application Sails gives you the option to build a fully fledged web app including user log in and authentication as well as stripe integration… but what if you wanted a bare bones web app – well you’ll have to add user authentication yourself. That’s where passport comes in really handy. Passport… Read More »

Add a HTML form in Sails

Moving over from Rails to Sails – this one had me for a few days as forms were a doddle in Rails!I’d set up the form and it was showing in the view OK, however when I submitted I was receiving a ‘Forbidden’ error in the view. I sorted that after a little reading… sorting… Read More »

From Rails to Sails…

Having spent the last 5 years scripting in Ruby and building web apps in Ruby on Rails, I’ve loved every minute. I’ve read a lot of articles about how Rails is dead and being left behind by the new breed of web frameworks… I’m still smitten.I’ve dabbled with a few and I’ve struggled to find… Read More »

Install Ruby through Version Manager (RVM) on Mac

Firstly you need to add the GPG Keys by heading to the terminal and executing: $ gpg –keyserver hkp:// –recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB Then install the latest stable version of ruby $ \curl -sSL | bash -s stable –ruby If you want to install a specific version of ruby e.g. 2.5.2, you can run $… Read More »

Linking in Vue

Having set up Vue Router, linking within th components is relatively straight forward. In router.js ensure you’ve declared your routes, i.e. const routes = [ { path: “/contact”, component: Contact, name: “contact”, }, { path: “/about”, component: About, name: “about”, }]; You can then use router-link to embed a tags in your page <router-link :to=”{name:… Read More »

Removing hash from URL Laravel-Vue

The hash (#) in the url is there to support older browsers so if you need to support older browsers you best not remove it. To move to a cleaner URL structure we need to use the HTML 5 History mode by adding mode: ‘history’ to your router. const router = new VueRouter({ routes, mode:… Read More »