In part one and part two of this series, we looked at how rivets handles data binding and then how to use rivets to show and hide elements on the page. In this post, things are going to get a little more interesting. We are going to cover how to consume JSON.Continue reading "Rivets 101: Working with JSON APIs"
In our previous riveting Rivets.js post, we revisited data binding and templating. In addition to that, Rivets can handle showing and hiding elements within the DOM. Within this post, we are going to a single-page application by selectively hiding and showing elements.Continue reading "Rivets 101: Showing and hiding elements"
Last year, I wrote the post “Data binding and templating with Rivets“. I decided to write a more indepth three-post arch on Rivets.js to accompany the demos that I recently posted to Github. This post is meant to be a “revisit” of the original post.Continue reading "Rivets 101: Data binding and templating revisited"
I have been playing around with the Web Cryptography API a lot lately. My most recent post was about getRandomValues(). I wanted to take a moment to investigate two more methods: generateKey() and exportKey(). The generation of a good cryptographic key is fairly fundamental. I wrote up a short demo app, to demonstrate how the two …Continue reading "How to generate keys with the Web Cryptography API"
The W3C has been working on a Web Cryptography API for a while, now. The current version (11 December 2014) is their “Candidate Recommendation”. As such, I would not necessarily consider it fully ready for primetime but that does not mean that we can not play around with it a bit. I figured that today, we should …Continue reading "Generating random numbers with the Web Cryptography API"
These days, the lines between the web and the local environment can be very blurry. There is a web API called FileReader() that nicely adds to that blurriness. It lets you asynchronously read the contents of a file on the user’s computer. I am going to show you one way of using it. So, …Continue reading "How to use FileReader() to generate data URLs"
Well, I finished another PhoneGap Build app. This is another “Joe scratches his own itch” app. It’s an app that shows the entire Security Now back catalog and lets you browse through the various topics. This is the final app in my 30 day challenge, so my pace of new development is going to slow …Continue reading "An unofficial Security Now episode explorer"
This is a quick thing. When you build an app in PhoneGap Build, it asks for a keystore file. So, how do you get one? Here is the command for on the mac. keytool -genkey -v -keystore [Name for the file].keystore -alias [Name for the app] -keyalg RSA -keysize 2048 -validity 10000 Remember to replace [Name …Continue reading "How do you sign a PhoneGap app?"
Since finishing my last post, I’ve been wanting to work on a way of implementing the concepts. Let’s say you have a long form (like a job application) or a form you would be filling out a lot (like shipping/billing information). You could use ajax to store the information server-side but let’s say you need or want …Continue reading "How to use localStorage to remember form values"