Archive for July, 2010

Read Only Properties in ES5

I thought I’d take a quick moment to provide some examples of making object properties read only in EcmaScript 5 (and by extension node.js). There’s several ways to accomplish it, so I’ll just iterate over all the different ways. Object.freeze The quickest way to make all properties of an object read only is by calling [...]

Using an SSL Certificate to Make a Secure HTTP Request in Node.JS

I’m documenting this only because I had some difficulty finding info online… the API docs tell you what you need, but it took me a couple hours to get things working and a little known bug that threw my work off track. So say you want to make a secure request to a website, perhaps [...]

Payflow Pro API released for nodejs

On and off over the past couple days I’ve been working on a nodejs module to interact with Paypal’s Payflow Pro API to allow the acceptance of online payments within node.js apps. The feature list is steadily growing and soon I hope to implement the parts of the API that let paypal do the heavy [...]

Defining Getters and Setters in NodeJS

Recently I discovered something interesting while messing around with NodeJS… you can define getters and setters using the ECMAScript5 syntax. For a useless example I could do something like this: This is kind of boring though because it’s just a more complicated way of doing however you can notice in the first example you can [...]

links for 2010-07-17

Installing_on_Ubuntu – Couchdb Wiki (tags: couchdb tutorial)

Life in the Fast Lane

When I was growing up I always though that my life would hit some kind of point where everything will start moving very quickly and that I’d have to keep up with the current before I get swept away. And today I finally feel like I’ve dipped my toe into that point in my life. [...]

Parsing CSV Files With NodeJS

I’ve been doing a lot with nodejs lately and thought I’d share a small spike I just did for fun to explore some of the features more in depth and gain a better understanding of some of the IO features I haven’t had a reason to use yet. Keep in mind I did this as [...]

Subscribe to RSS Feed Follow me on Twitter!