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

Converting Your Ionic Framework 1 Application To Ionic 2

Ionic Framework has been around for a few years now and has completely changed the way people develop hybrid mobile applications. With Angular out and Ionic 2 nearing stable release, the Ionic 1 and AngularJS predecessor will be a thing of the past and forgotten. What if you’ve gone all in with the first version of Ionic Framework, how do you convert to the latest and greatest?

We’re going to see how to take a simple Ionic Framework application and convert it to Ionic 2. While there will be similarities, the process is manual, but better in the long run.

Read More

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

When it comes to saving data in an Ionic 2 mobile application, there are many ways to get the job done. You can use the classic HTML5 local storage, but run the risk of compatibility problems between all available devices. You can use SQLite, which is part of Ionic Native, but that will only work for Android and iOS and has more of a mobile API. You can also use SqlStorage, but that is a very proprietary solution. This brings us to localForage from Mozilla.

Mozilla advertises localForage as a wrapper to IndexedDB, WebSQL and localStorage which will offer maximum compatibility across the grid.

We’re going to see how to include localForage in our application which is a valid option for Ionic 2.

Read More

Using Couchbase Server In A Golang Web Application

Not too long ago I wrote an article regarding how to create a RESTful API using the Go programming language, but in it I only used mock data rather than an actual database. What happens if we want to use a database with Golang? What database, or more importantly, what kind of database should be used? Most APIs transfer data in JSON format, so it might make sense to store data in the same format. This means that a relational database might not make sense. Instead, NoSQL databases fit quite well when it comes to RESTful APIs. A popular NoSQL database that stores data in JSON format is the open source Couchbase Server.

We’re going to take a look at how to include Couchbase Server into our RESTful web application written in the Go programming language.

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

Connect To Multiple Wireless Networks With A Raspberry Pi

So I recently picked up some more Raspberry Pi 3 units. You’re probably thinking I’m building my own T1000 (Terminator reference) with these things. No, actually I got these units for work to play around with some IoT projects around the office at Couchbase. I have a few offices that I visit at Couchbase which brought up my need to have multiple possible wireless networks to connect to as I travel. These are headless units so I’m not connecting to them with a mouse and keyboard.

Now one would imagine that I can just add a bunch of networks to a configuration file in Linux, but that wasn’t the case. There are special configurations that must be done to allow the Raspberry Pi to automatically connect to different wireless networks as they become available.

We’re going to see how to add multiple WiFi network SSIDs to a Raspberry Pi operating with Raspbian so it can automatically connect as they become in range.

Read More

TPDP Episode #7: Developing For The Internet Of Things (IoT) And Where To Start

When it comes to software development there are many different items to develop for. I’ve spent most of my developer life creating applications for the web, desktop, and mobile, but when it comes to possibilities it doesn’t end there. In recent years the Internet of Things (IoT) has been taking over. In this episode of The Polyglot Developer Podcast, guest speaker Jen Looper and I discuss the Internet of Things and what you need to get started as a developer.

Jen Looper is a developer advocate at Progress Software, but is also a huge advocate for IoT. In Episode #7: Developing for The Internet of Things (IoT) and Where to Start, we’re going to discuss quite a bit, covering everything from a background on IoT to possible development technologies for various hardware.

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