A Few Tips on Debugging OpenWhisk Functions with VS Code

A few weeks ago fellow IBMer Niklas Heidloff wrote a great blog post on debugging OpenWhisk actions with Visual Studio Code. Please, please, please read his post first: Debugging Apache OpenWhisk Functions with VS Code While his post was great, I had a few problems understanding exactly how to make use of his code, in particular, how to work with an existing OpenWhisk project. You can see my conversation with him in his comments.

Read more

Building a Quiz with Vue.js

For today's "Can I build that with Vue.js?" blog post, I'm sharing a simple quiz system I've built with Vue.js. The idea was to see if I could write Vue code that would handle a dynamic set of questions, present them to the user one at a time, and then report a grade at the end. I had fun building this, and it went through a few iterations, so let's get started!

Read more

An Example of Vue.js DevTools

Yesterday I tweeted about the release of the latest version of the devtools extension for Vue.js and one of my followers had this to say: I never find vue tools useful, what is the use of it? I still use console.log to debug js errors — Muhammed Rashid N.K (@rashidnk) January 17, 2018 First off - I'm definitely in the "console.log for debugging" club myself. Yes, I know I can do step by step debugging with dev tools, but honestly, I'm typically quicker with just some logging.

Read more

Using DevTools to Scrape Web Content

So yesterday I blogged a demo that was - by my own admission - somewhat silly and not really worth your time to read. However, I was thinking later that there was one particular aspect of how I built that demo that may be actually be useful. While I was creating the demo, I needed to get a list of all the songs the Cure recorded. I found this quickly enough on Wikipedia:

Read more

Generating Random Cure Song Titles with Markov Chain

Before you go any further, please note that this blog post contains absolutely nothing of value. This was a stupid idea I had last night that I decided to quickly build this morning. It worked. It made me laugh. But there is nothing of value here. If your boss catches you reading this you'll probably be fired. You've been warned. So - a Markov chain is - in my understanding - a way of determining what value would come after another based on a set of initial input.

Read more

Nuxt and Server-Side/Static Vue.js Sites

This isn't going to be a terribly deep post, more a general FYI for those of you smart enough to stay off Twitter, but I've been looking at Nuxt quite a bit over the past few days and I have to say I find it really interesting. Nuxt describes it self with the following tag line: "Universal Vue.js Applications" Raise your hand if you read that and aren't sure what it means.

Read more

My New Lynda Course - Building APIs with LoopBack

I'm happy to announce the release of my latest Lynda.com course, Building APIs with LoopBack. This course introduces you to LoopBack and walks you through building APIs as well as a sample application using those APIs. I cover customizations, security, and more. It's near two hours in length and would be a great way to learn the framework. You do not need to be an expert in Node to use LoopBack, so I definitely recommend it.

Read more

Building an OpenWhisk Activation Poll with Node, Vue.js and Vuetify

I've had fun building my own tools to provide additional OpenWhisk reporting utilities and today I'm releasing another one. If you find it helpful, let me know in the comments below. Even if no one else uses it, it gave me a chance to play with Vue (and Vuetify) so I had fun writing it. The goal of this particular project was to provide a web based interface for wsk activation poll.

Read more

Another Example of Vue.js and Vuex - an API Wrapper

Hi! Welcome to my first post of 2018! If you are a new reader, please consider subscribing to my blog feed and leaving me a comment below! A few weeks back I blogged about my first experience using Vue.js and Vuex: "An Example of Vuex and State Management for Vue.js". One of things I mentioned in that post was how my mental model for Vuex was Angular's Provider feature. It's definitely not the best mental model, but it's how I'm thinking about it for now.

Read more

Vue.js Version of My Random Comic Book Viewer

A little over six months ago I blogged ("Serverless Demo - Random Comic Book Character via Comic Vine API") an example of a simple front end to a serverless function I built that returned a random comic book character from the Comic Vine API. I still feel a bit sketchy about using the API. The forum is "alive" but no one official seems to be minding the store so to speak.

Read more