Code

Bootstrap 5 Integration into Rails 6

A lot of people have been having a hard time integrating bootstrap 5 in Rails 6 and since we have figured out a way to easily integrate the two we decided to put out this tutorial. If you prefer the video tutorial: We are going to show step by step using a newly created app, if you have an existing application you are trying to integrate into, the information below should still work just fine. We are also going to use MySQL as the default database so if you are using something else, then specify that connector instead. Step 1...

Continue reading...

Migrating from Paperclip to Active Storage

We have a client’s site that we are currently updating from Ruby 2.5.0 / Rails 5.0.1 using the Paperclip gem version 5.0. We looked at a number of ways to make the migration to a current state: Ruby 3.0.1p64 / Rails 6.1.4.1 and using active storage and spend over a full day fumbling through tutorials and various directions offered on different sites… nothing worked right. It seems the problem is that 1) most of the examples and tutorials are for very specific configurations that don’t easily extrapolate to what we needed, and 2) the rest were outdated or dependent upon...

Continue reading...

Arduino and Seeed Quad Band GPRS Shield Review and Tutorial with Examples

We have a couple ideas for some remotely located arduino projects that we want to control and or receive data from on a internet connected server so we decided to check out the Seeed GPRS Shield. We actually ordered this shield through Amazon.com (for the same price) just so we could get the free 2 day shipping with our Amazon Prime account so we can’t comment on the shipping times from Seeed. While waiting for the arrival, we went to T-Mobile and picked up a SIM card for the device and had them put it on the $2/day unlimited plan...

Continue reading...

Updated PHP Library for Blip.tv – Blip-PHP

I currently have a client that needed to interface with Blip.tv through their API. On Blip’s site the only reference to a php library is one written by Almog Baku. After downloading the library and trying to get it working, I realized that commits on the library were from 2010. Blip updated their API in 2011 so this was a no go. Never to be thwarted, I rewrote the necessary parts dealing with the API an updated them to use the new API. I contacted Almog Baku (the author) and Kelly Sutton (the current maintainer) and we created a new...

Continue reading...

Facebook App and User Management Class – fbAppClass – for Facebook PHP SDK 3.1.1

The RWS Dev Team has put together an app and user management class to make creating an app on facebook using their PHP SDK 3.1.1 a world easier! When the RWSDev Team started working with the facebook PHP SDK 3.1.1 we ran into a few problems and once we got those ironed out we decided we should create an app class that would assist others to hopefully avoid a majority of those problems. What this class does: app.inc – stores your basic configuration info for your facebook app like the App Id, App Secret, Base URL and your App Base...

Continue reading...