Setting up Node.JS on Windows w/ Cygwin

Note: While Joyent and Windows are teaming up to release node.js on Windows, no official date has been set for the release. This article aims to help get node.js set up and running on Windows through Cygwin, so you can mess around with server-side Javascript.

Node.js  is one of the up and coming frameworks built on the V8 JavaScript engine. While it is primarily intended to run on Un
ix systems, it is actually possible to run it on Windows using Cygwin. This article aims to help you set up node.js for Windows in the event that you may not have access to a Unix platform or for other reasons.

Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Quick Steps to install SQL server 2005-2008

We have installed SQL Server 2008 R2 on a network server and have encountered a few bumps trying to access it from another machine on the network. Some steps are obvious, while others are a bit tricky, so I put together this checklist for a quick reference. The steps are similar for the SQL Server 2005 installation.

Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Sharepoint Web Services and LINQ to XML

We’ve been doing quite a few SharePoint data migrations recently you know SharePoint to SharePoint (2007, 2010) and Legacy Applications to SharePoint (2007, 2010) and we’ve developed some internal tools that greatly speed up the migration of process.

What I wanted to share here is a tool we created to help look into SharePoint Lists to retrieve the internal field names. The internal field name and the name displayed in the List can be quite different.  The internal name is the one required when creating an update, new, etc.. SharePoint web service call. By way of example the “Modified By” field/column if refereed to as “Editor” internally by SharePoint (“Editor” should be used in constructing the web service call).

Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

jQuery, caching and performance across browsers

Intro

Here at Sunview we create a lot of web applications for people.  We are always looking to give the end user a great experience.  This means that the user interface needs to be snappy and responsive.

jQuery is used extensively to create user interfaces for our clients.  Also creating custom user interfaces happens quite a bit, since every client needs something unique.  This means we are writing lots of code that does some heavy DOM manipulation.  Making sure that we do this intelligently is important.

Right to the Test

If you want to skip all the boring explanation and jump right into running the test and viewing the code, go right ahead.  You can by going to http://sunviewconsulting.ca/blog/2011_05_25/index.html.  Be careful, since this is essentially a load test, this may cause your browser to become un-repsonsive.

Caching elements with jQuery

jQuery is all about making DOM access and manipulation easy.  We can select something by id.

<div id='selectme'>Some HTML</div>
$('#selectme').html('New HTML');

Or we can select something by CSS class

<div class='selectme'>Some HTML</div>
$('div.selectme').html('New HTML');

Continue reading

Posted in Uncategorized | Tagged , , | 9 Comments

Welcome!

Welcome to the Sunview Consulting blog!

Posted in Uncategorized | Tagged | Leave a comment

QEMU port inspired x86 emulator in JavaScript? That’s insane.

Fabrice Bellard has managed to create a QEMU inspired JavaScript x86 emulator port  of QEMU.  While this may not have any immediate practical applications, this is huge news.  We see JavaScript becoming a language which is taken more and more seriously.

As a friendly Redditor has pointed out (and Fabrice Bellard explains right on his website), this is not a PORT of QEMU, but a QEMU inspired x86 emulator written in JavaScript. QEMU inspired indeed because Fabrice also contributed to QEMU.

Posted in Uncategorized | Tagged , | Leave a comment