Page 3 of 4

Agnostic Data Binding with Rivets.js

Agnostic Data Binding with Rivets.js

For a long time I’ve been against the idea of data-binding. Like many people I started using it with Flex, then used it with AngularJS, and Knockout.

I’ve been opposed to using data-binding for a long time, until recently when I found a data-binding library that makes data-binding optional, easy to write, and framework agnostic.

Continue reading

Frontend Routing with Sammy.js

Frontend Routing with Sammy.js

Traditionally web applications were built using backend technology. A request is made to a server and based on the URL being requested the server responds by generating a resource, usually HTML.

To do this servers need to “route” requests to different resource generation logic. This logic is what backend developers build.

This worked well for many years, but as browsers became more advanced code started being moved from the backend to the frontend.

Continue reading

Untrusted is a Really Fun Programming Game

Untrusted is a Really Fun Programming Game

I’m normally not a fan of gamification. It feels like the person trying to teach me thinks I am incapable of learning and needs to trick me into it. However, I just discovered a great programming game that teaches you creative problem solving.

AND IT’S FUN!

Continue reading

Personal Cloud Drive with ownCloud

Personal Cloud Drive with ownCloud

If you’ve ever used Dropbox or Google Drive you know what cloud based storage is. It’s a harddrive located somewhere on the internet for you to store and share your files.

But what if you have terabytes of files, or a preexisting server infrastructure at your work or house? Are those solutions really the best? Is there a better self hosted solution?

There is and it’s called ownCloud.

Continue reading

Making Desktop JavaScript Apps with node-webkit

Making-Desktop-JavaScript-Apps-with-NodeWebkit

Update: node-webkit is now called NW.js and uses io.js and Blink instead of Node.js and WebKit. All other information is still correct.

JavaScript can be run in a browser normally, on a server with Node.js, and on mobile devices with Cordova, but where else can we use JavaScript to program?

Well, plenty other places, but the last big place to write programs is the desktop and today I’m covering writing desktop JavaScript applications with node-webkit.

Continue reading

Making Mobile JavaScript Apps with Cordova

Making Mobile JavaScript Apps with Cordova

Last time I covered what Node.js is and briefly covered creating server side JavaScript applications with it. But as part of my recent desire to write everything in JavaScript I have also started writing mobile applications in JavaScript using Cordova.

I’ve written mobile applications in various technolgies and even have some on the Google Play Store, but I like writing mobile applications in Cordova more than other technology I’ve used, which are Java and Flex with Adobe AIR.

Continue reading

Making Server JavaScript Apps with Node.js

Making Server JavaScript Apps with Node.js

JavaScript used to be used only within the browser. But nowadays JavaScript can be used pretty much anywhere programming is supported. It can be used in a browser, server, mobile device, and even desktop.

I’m going to write about building JavaScript applications for mobile devices and desktops in future posts. Today I will discuss how to make server applications in JavaScript.

Continue reading

Node Keyword Detection with Annyang-Node

In my last post I talked about the great annyang library by Tal Ater, which is a keyword detector and abstraction layer for Chrome’s continuous speech recognition system.

Annyang is a great client side JavaScript library for detecting a spoken keyword and performing a specific callback function. But what if you want the same functionality server side?

Use annyang-node of course.

Continue reading

Chrome Keyword Detection with Annyang

Chrome Keyword Detection with Annyang

Recently I’ve been working a lot with continuous speech recognition and keyword detection in Google Chrome. Several months ago I found a really great library for streamlining is the process, a library called annyang.

Continue reading

Remote MySQL Connection Access

When moving a site from one server/host to another it’s often necessary to have both servers/hosts share a third server’s database. This is necessary because as the DNS change propagates around the world some user’s ISP may send them to your old server and some may arrive at the new server.

If you had two independent servers running two instances of MySQL the records in the database won’t match and some users will never be on the new server. This is especially a problem if you’re running a subscription based website. You merchant may have already processed their account information and confirmed them on your site, but wait, were they confirmed on the old server or the new one?

Using a shared database allows users who sign up to your site through the old server to be added same database as users who sign up through the new server. But MySQL doesn’t allow this to happen by default. It thinks that any incoming request from an outside connection is a security threat.

The internet is usually a great place to find tutorials, especially relating to programming. However, configuring a MySQL database for remote connections seems to be a poorly documented thing online.

With that in mind, here is a short explanation of how to configure MySQL to allow remote connections.

Note: this will not work on shared hosting.

Continue reading