Author: Corbin Crutchley
Change the Host File of an Android Emulator
While working on a bug in one of my projects recently, I found an issue that I could only recreate on an Android device. However, due to some cross-origin resource sharing (CORS) issues on my server, I had to serve my development environment from a changed hostfile that had a specific subdomain of my project.
With the ability to use a remote Chrome debugger from your desktop to a mobile device, you can use an emulator and still have your full Chrome debugging capabilities. The only problem then, is how to get the host file to match your desktop environment. Following these steps will allow you to do just that!
Read MoreAngular Route Guards For Authorization In A Web And Mobile Application
You're about to release your new Angular web app. It's a photo sharing site and you want to test it, so you send a link to it to your hacker sister. She's always messing with your stuff and she found out the URL to your admin page you added to your web app. Before you know it, she's flushed your database using a button on that admin page that you didn't restrict access to. Not a problem when using development data - but I'm sure your users wouldn't be any too keen on a service where they lost all of their data. Let's fix that
Read MoreManually Setup NativeScript Without Use Of Provided Scripts
NativeScript is great. There is an easy setup process (at least for Windows, I unfortunately don't have a Mac so I can't speak on the MacOS side of things) that provides an executable that helps you through all the steps of setup. Unfortunately, like any automated setup process, things can go awry and stop your excitement on starting on your native apps with some errors that have little suggestion on how to move forward. This guide will help you go through the steps to install and use NativeScript manually, so whether you're having difficulties with the simple setup, or want to customize a few things along the way, you're ready to rock and roll.
Read More