Mike Valstar

Web Development, Programming, Random Thoughts

Twitter Status...

Blog

A New Design

Posted on

A lot has changed on the web in the 11 months I’ve had this particular revision of my website. So time for an upgrade again.

Read More

Nodejitsu announces individual pricing

Posted on

Nodejitsu has finally announced the pricing for their service, and its cheap!

For the last year or so I've been coding Node whenever possible for client projects, but Ive always ended up hosting on a VPS. Heroku and similar services have been offering up hosting for a while, and even have a free tier (1 process usually). But these services have always been geared towards larger projects and the pricing reflects that. The new Nodejitsu plans have me excited by offering a better pricing structure for smaller sites and blogs!

Permalink

A Zoomable UIImageView

Posted on

The preferred method for creating an image you can zoom and pan on is to nest a UIImageView inside a UIScrollView. But I needed something a little different...

Read More

Coding with Node.js: Part 7; Upgrading to Express 3.x and Mongoose 3.x

Posted on

Node is a fast moving technology, and so to this applies to the libraries and tools. since I started this blog Node has been upgraded from 6.0 to 8.12, and express has migrated from 2.5.0 to 3.0.0 and mongoose is now at 3.2 as well.

Read More

Coding with Node.js: Part 6; Displaying an Archive

Posted on

Now that we are pulling our posts from the database the next step is to allow users to browse old posts. And just in time since this will be the 11th post to the blog.

The key items we need for people to be able to view an archive of the website is a previous and next button on the main page, and an archive listing of posts (in this case by month).

In addition to the above I'll be adding a new column to the blog posts allowing me to group posts.

Read More

Forever - Making sure your apps dont crash (too hard)

Posted on
I write my node apps I sometimes make a mistake and miss a corner case or forget to put try/catch around something I really should have. So when I've started to deploy my apps on live systems with Forever to keep my apps running no matter what. And check in on the logs later to find what if anything I missed. Try it out!

Permalink

Coding with Node.js: Part 5; Publishing Your Posts

Posted on

It's been a little while since I've posted. Sorry about that; but I'm back.

Now, in the last post I went over how to store your blog posts in a database and retrieve them for editing, now we need to show them to the user and provide them with an rss feed to subscribe to your site with.

Read More

Jade template for RSS 2.0

Posted on

When coding an RSS feed for this site I saw that there really was no simple RSS templates written in jade. (Specifically since this site uses the Express framework, jade is already built in. ) I decided to create a jade template that will cover just about anyones needs for an RSS feed.

Read More

Coding with Node.js: Part 4; Storing Blog Posts

Posted on

With the admin login page completed we now need a list of blog entries and a way to create and edit them. So to start lets give ourselves an admin interface for blog posts that we can later integrate into the main website.

Read More

Coding with Node.js: Part 3.1; Mongoose Sessions

Posted on

This is a supplemental post to the previous tutorial to add in session handling into Mongo. You may have noticed after the last tutorial that when running the code in production you are alerted that Connect does not recommend the use of in-memory session storage for productions systems.

Read More

Mike Valstar © 2012