Create Circular Images With Curved Text In Affinity Designer

November 3, 2017 Nic Raboy

As many of you know, I've been trying to expand the brand for The Polyglot Developer. I've redesigned the site, printed shirts, and even started creating stickers.

I've been printing circular stickers with Sticker Mule, and one thing that had been a real challenge is adding circular or curved text to them. It is nice to have the brand logo on the stickers, but until developers know what the logo is, it helps to have a website link as well.

This lead me to Affinity Designer, the much cheaper alternative to Adobe Illustrator, and the more polished alternative to Inkscape. We're going to see how to create some nice images with curved text in Affinity Designer.

Read More

Handling CORS In A Golang Web Application

October 30, 2017 Nic Raboy

If you've ever spent time building RESTful APIs, you've probably come across cross-origin resource sharing (CORS) issues at some time or another. Often clients will receive errors when trying to interact with an API from a domain or port different from the actual API. Back in the day I had written a hacky article on getting past these CORS issues by manipulating the browser settings. However, it is best to tackle these issues at the source.

We're going to see how to change the cross-origin resource sharing configuration in a Golang web application that uses the mux package.

Read More

Consume Remote API Data Via HTTP In A Vue.js Web Application

October 24, 2017 Nic Raboy

When building a modern web application, chances are that you'll need to consume data from some remote resource, whether it be one that you've built or something someone else built. Sending HTTP requests is one of the more popular ways to send data from client facing applications to RESTful API backends.

We're going to see how to send HTTP requests within a Vue.js web application, using a variety of techniques such as those found in the popular axios and vue-resource libraries.

Read More

Include A Hamburger Menu In A NativeScript Android And iOS Application

October 18, 2017 Nic Raboy

Most, not all, Android and iOS applications follow a similar set of rules when it comes to user experience. For example, many applications make use of what can be referred to as a hamburger menu in the top left or right hand side of the screen. These hamburger menus look like three horizontal lines and are useful for bringing up some sort of menu, typically from either of the sides of the screen.

We're going to see how to make use of the hamburger menu in a NativeScript with Angular mobile application.

Read More

Alias URLS In Hugo Websites Using RewriteRule For Htaccess

October 11, 2017 Nic Raboy

As you may remember, I recently released The Polyglot Developer 2.0 which was a migration from WordPress to Hugo. Because my WordPress permalinks matched a similar format to Hugo I didn't have to make too many changes. However, there was an issue with the category and tag taxonomies. In Hugo these were recommended to be plural, while in WordPress they were singular.

I'm currently using Apache for hosting The Polyglot Developer so I had to figure out how to redirect the previous WordPress traffic to prevent bad links which would hurt the search engine optimization (SEO) of my blog. We're going to see how I made such redirects happen.

Read More

Consume Remote API Data From Within A Node.js Application

October 9, 2017 Nic Raboy

Not too long I wrote about consuming remote API data using Golang. However, as you know, I'm also a heavy Node.js developer as well. So how do we issue HTTP requests from within a Node.js application and why might you want to. The simple answer is that you might want to consume someone else's data within your web application and you can't just do that like you would in a browser-based application using Ajax or similar.

We're going to see how to make HTTP requests possible within Node.js.

Read More

Building A RESTful API With Node.js And Hapi Framework

October 6, 2017 Nic Raboy

Back when I was really getting into the swing of Node.js, I had written about creating a simple RESTful API that made use of the Express framework. Express was, and still is, one of the most popular frameworks for creating web applications with Node.js. However, this doesn't mean it is the best solution.

Recently I've been hearing a lot around Hapi for Node.js. The common feedback that I hear is that it is specifically designed for creating RESTful web services making them significantly easier to create without as much boilerplate code.

We're going to see how to create a simple API using Hapi as well as packages such as Joi for request validation.

Read More