Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

A Vue.js App Using Axios With Vuex

In this tutorial we will build a simple Vue.js application which will demonstrate the power of using Vuex as a central data store, where the data will be asynchronously retrieved using Axios for the API requests.

A basic level of HTML, CSS and JavaScript will be beneficial but is not required.

Read More

Use Mozilla’s LocalForage For Key-Value Storage In Ionic Framework

A few years ago I wrote an article called Use ngStorage for all Your AngularJS Local Storage Needs, which was intended to be for AngularJS in general. However, I understand many readers were using it in their hybrid Apache Cordova or Ionic Framework applications. There is nothing wrong with this. However, ngStorage is a wrapper for HTML5 local storage which is known to have compatibility issues under certain circumstances. That said, came across localForage, a library by Mozilla, which claims to be a wrapper for local storage, WebSQL, and IndexedDB, offering maximum compatibility.

We’re going to take a look at including localForage in an Ionic Framework Android and iOS application for storing data.

Read More

Using SqlStorage Instead Of SQLite In An Ionic 2 App

When it comes to Ionic 2 there are many ways that you can store your data. For example you could use HTML5 local storage, Mozilla’s localForage library, or Ionic’s SQLite extension that is part of Ionic Native. With these options available, I get a lot of requests for information on Ionic’s less advertised SqlStorage option.

We’re going to take a look at using SqlStorage in an Android and iOS application rather than the SQLite alternative.

Read More

Auto Attaching USB Storage To A Raspberry Pi Running Linux

I’ve written a few articles about how I’m using my many Raspberry Pi units. Recently I wrote about using a Raspberry Pi as an automatic network backup server, but I didn’t talk about expanding the storage beyond the micro or standard sized SD card. What if you want to utilize a much larger USB hard drive or thumb drive? By default Linux won’t mount the drive, and heck, it may not even be in the correct format.

We’re going to see how to format a USB drive, mount it on a Raspberry Pi, and then auto mount it every time the Raspberry Pi reboots.

Read More

Clone A Raspberry Pi SD Card For Quick Storage Upgrades

I recently found myself needing to switch micro SD cards in my Raspberry Pi 3, not necessarily because it needed a storage upgrade, but more because I had a different device that needed the exact memory card that the Raspberry Pi was using. The problem was that I had already done a lot of work on the Raspberry Pi that I didn’t necessarily want to have to do again. This made me wonder. Could I just clone the micro SD card and be good to go? The answer was yes, and it really wasn’t difficult to do.

We’re going to take a look at how to clone or copy a Raspberry Pi memory card to a new one with potentially more space than the previous.

Read More

Host A Podcast For Cheap On Amazon’s S3 Service

This year was the year that I started two different podcasts, one titled The Polyglot Developer Podcast and the other being The NoSQL Database Podcast. I’ve been getting a few questions regarding this, but people are asking where I’m hosting the episodes.

This is a great question!

I’m actually hosting these podcasts using Amazon’s S3 service because it is cheap and incredibly easy to get set up with. I’m going to walk through the steps I took to make this possible, and share the fees that I’m experiencing as of right now.

Read More

Use SQLite In Ionic 2 Instead Of Local Storage

Ionic 2 is becoming all the rage right now because of it using Angular. With the introduction of Angular, comes many differences in the language and framework itself. One of the most critical parts of any mobile application is its ability to save data and have it persisted when the application is launched at a later date. I demonstrated in Ionic Framework 1 how to use SQLite as a storage solution, so I figured it would be a good idea to demonstrate the same using Ionic Framework 2.

Let’s see why it might be a good idea to use SQLite in an Ionic 2 application rather than HTML5 local storage.

Read More