Somebody Went and Made Node.js All Easy! o_O

I get busy learning some other things and Node.js gets all easy! I’m impressed. 🙂

1. Navigate to the main node.js site, there’s a big “Download” button that you can’t miss.

The Node.js Site, Just Click It And Get It...
The Node.js Site, Just Click It And Get It...

2. Click that download button and you’ll be presented with this crazy easy screen to pick your download.

Node.js Download Link...
Node.js Download Link...

3. Once you get that installed, get nodeunit. You are writing unit tests against your node code right? 😛

[sourcecode language=”javascript”]
npm install nodeunit
[/sourcecode]

Results from loading nodeunit with npm install.
Results from loading nodeunit with npm install.

For more on how to use npm, which stands for Node Package Manager, give a RTFM. 😀  It’s kind of like Nuget for .NETters and Gems for Rubyists.  🙂 …and trust me, I’ll be putting this to use in future blog entries and it’s a big help to have handy.

4. Create a file to code some javascript in. Per the simple example given on the main node site…

[sourcecode language=”language"javascript"”]
var http = require(‘http’);

http.createServer(function (req, res) {    res.writeHead(200, {‘Content-Type’: ‘text/plain’});
res.end(‘Hello World\n’);}).listen(1337, "127.0.0.1");

console.log(‘Server running at http://127.0.0.1:1337/’);
[/sourcecode]

Now run this. If you have the Webstorm IDE from Jetbrains you can just right click on the js file and select run. It automatically will use Node.js to execute your JavaScript. You can also execute node.js by opening up a shell/terminal and executing this.

[sourcecode langugae=”bash”]
node whereverYourPathIsTheFileIsLocated/example.js
[/sourcecode]

Navigate to 127.0.0.1:1337 and you’ll get the classic “Hello World” message.

Running The Node.js Example.js File
Running The Node.js Example.js File

…and all of a sudden you’re using node.js to hack some javascript! Seriously, there aren’t many usable languages out there that are as code ready as javascript with node. Very cool, very very cool.

Happy coding!

So 2012 is Coming Up, It’s the End of The World, and There Are Lots of Conferences!

On that note, here are a few of the conferences I’d like to attend. I expect I’ll be able to make it to about 70% of them. If you’re going to any of these, message me on Twitter @Adron (or leave a comment below) and we’ll have a coffee, beer, or beverage of your choice and chit chat about cloud computing, utility or grid bits, software development, node.js, testing, or what have you.  Cheers!

UX Related Conferences

Even though UX is by no means my specialty or something I generally am hired to work on, I personally consider UX to be one of the most important aspects of software development that exists. UX is the difference between “insanely great” applications and “shit” (I’m quoting Steve Jobs here, so excuse the harsh language, but it is true). With this serious focus on UX I find it extremely helpful to attend UX related conferences, talk to UI/UX pros, and generally be involved as often as possible in effective and great ways to build experiences for users around systems.

  • SXSW in Austin, Texas: I’d love to attend this conference, it is however unlikely. Matter of fact, it is probably one of the only conferences I’d travel to Texas for. One of these days, I hope to attend.
  • IA Summit in New Orleans, Louisiana: There are two primary reasons this event is on my list. 1, it’s in New Orleans and I always love to go visit my haunts from when I lived in the area and 2, the content looks pretty good & some solid people are attending.  Conversations and after conference events should be extremely enlightening.
  • An Event Apart in Seattle, Washington: Again, a great conference series and it’s also in a great location. Seattle (which I happen to live here right now too) is a great place for conferences, a great place to think, and a great place for a convergence of user experience thought leaders.
  • UX Week in San Francisco, California: San Francisco is another awesome city for these types of events (not distracting and annoying like Las Vegas). There will be some great collaboration and networking with great content. I’ll be putting forth an effort to attend this event.
  • WebVisions in Portland, Oregon:  It’s in Portland, Oregon. Nuff said. Well ok, I’ll add a little more. WebVisions often has some of the best content around. I’ve never attended one of the conferences officially but have interacted with and been in town when the conference takes place in Portland. The beauty of Portland is that the events easily spill over into the most walkable, drink friendly, foodie heaven, easy to talk in environment, and one of the most technologically advanced and versed populations in the United States – thus providing WebVisions a GREAT reputation in my opinion.
  • Siggraph in Los Angeles, California: This event really opens the mind up to some amazing new interactive experiences with technology.

Dev Related Conferences

Ok. I’m a software developer, no real need to define why I’m going to these.  😉

  • Agile Open Northwest in Seattle, Washington: This is a great open spaces conference about agile ideals, practices, and approaches. It’s a great conference to get together with advocates and practitioners of agile/lean/XP or whatever and discuss what works, doesn’t, and what might work. Stepping into the future of being a better, faster, higher quality, happier and more bad ass team!
  • WhereConference in San Francisco, California:  This event has multiple wins.
    • It’s in San Francisco, which is generally always cool.
    • It’s an O’Reilly Conference, which are generally always awesome.
    • Mobile + Geographic Location Finding is one of the most interesting and coolest realms of technology these days.
    • There are some spectacularly cool people attending that I’d love to spend some face to face time with and discuss where they’re headed, where they see location going, and generally have a drink or three and having a great time.
  • OSCON in Portland, Oregon: This event is one of the, if not the best Open Source Software Conference in existence!  Again, anything in Portland makes it pretty easy to attend, and the environment in that city just adds all that much more to the conference!

Cloud / Utility / Big Data Computing Conferences

I’m a big advocate of geographically dispersed, grid compute, utility computing, platform infrastructure or software as a service, on autoscaling, scalable, and big data wielding, high query hadooping systems, AKA Cloud Computing. I see it as the future of high quality, fast paced, massively scaled, intelligent systems and development of these systems. Maybe I’ve drank the kool-aid, either way I’m hedging my bets with the cloud computing realm and not on legacy & traditional hosting and methods associated with that. Thus, I’m going to as many of these conferences too!

  • Cloud Connect in Santa Clara, California: I’ve no idea how this conference is, nor if it will be good, but I’m signed up already. Anyone I know going? Anyone I don’t know but should? Ping me.
  • Strata in Santa Clara, California: Again, never been to Santa Clara nor a conference here. I’ve heard good things about Strata so am working to attend. There is some really good content and more than a few people I’d like to catch up with.

Small, Powerful, Elegant, Sexy, and Hard Core

Ok, it’s that time of the year and I’m at the phase of the cycle when it is computer purchasing time.  What do I want, what do I need, who has the best options available? In order of priority here’s my wish list for the ideal machine.

  1. It must be able to run Windows & Linux. Even better would be the ability to run OS-X, Windows, and Linux. Preferably with Linux or OS-X as the core operating system and Windows either virtualized or dual booted.
  2. Another high priority is I want elegant, sexy, and strong design. But not just in appearance but in functionality too. I want the device to be strong. I want the material to be fabricated well, I want the quality and durability to be built into the device. This comes down to the device being a single mold, probably of a high quality material like aluminum.
  3. I want as much oomph as I can get out of the hardware. Demanding elegant and sexy usually dictates it won’t be powerful. Demanding tough is usually another strike against that.
  4. Another thing which is super important, but I may be flexible on, is the resolution. I simply want as much resolution as possible.
  5. The last thing, which isn’t as important, is I don’t really want to pay more than about $1500. I’d be all the happier if I can find something for even less.

Narrowing Down the Machines

The first thing I did was check out what information was available on what I would choose as my ideal computing device. I had found, through research and talking to others, that my options where either one of the new Ultrabooks coming out from different manufacturers or an Apple Macbook Air.

With the narrowing of the playing field and knowing a few things about the Macbook Air already, I decided to look into the Ultrabooks more thoroughly. Several, such as the Lenovo option got dropped immediately. The were huge by comparison to the Air and other Ultrabooks. If several options existed around the half an inch thick size, that was what I was going to aim for. After looking through many of the options it looked like the Acer & Asus were the real viable Ultrabook options.

Touch, Feel, and Fabrication Quality

The next step, was I needed to feel and touch these machines. I wanted to be sure that their marketing hype wasn’t going to land me with a laptop that was flimsy or the fabrication was poorly completed. No machine would be in the running unless the fabrication and manufacturer was of equal or greater quality than the Apple Product.

My first trip took me to Fry’s out in Renton, Washington. Fry’s was an embarrassment, they barely had any products whatsoever. So I plotted my next trip, which a few days later took me to the airport Best Buy in Portland, Oregon. They had everything! I was euphoric. I tried out more than what I was just looking at, and must say some of the tablet options are creeping into replacing laptop options real soon! But I then refocused and aimed back at my main goal, finding out the build quality of the Acer and Asus. This ended up being instant. I touched the Acer and it was, as Steve Jobs would say, “shit”.

Honestly I was shocked by Acer. Maybe they’re just aiming for a low price point, but after touching the device and feeling the horrid quality I immediately dropped it from the running, regardless of how much lower the price might be. As with my priorities above, price is the last concern at #5, I’m not going to settle for a crappy build quality because I’d pay dearly for it later. Why?

The reason why I want something strong & sturdy is because of several things.

  1. I ride a bike on a regular basis and whatever laptop I have needs to survive the bump and grind of the bike commute, the bike runs & errands, and other outings around urban areas. The laptop will be bumped and flung around in my messenger bag, I don’t want to pull out a dead laptop.
  2. I walk, take transit, and generally will up and climb to a lofty rock overlooking a shoreline to have a better area to work and think. Sometimes, I might stumble, trip, or otherwise impact the device. Thus, see above reason on not removing a dead device from my pack.
  3. While working in coffee shops, bars, conferences, or other activities the laptop will be pulled from my pack on a regular basis. While in my pack it’ll probably end up getting kicked, nudged, dropped, or otherwise inadvertently abused. Again, I don’t want a dead device in my pack.

Narrowed to Two

Alright now the battle truly begins. The Asus on one hand and the Macbook Air on the other.

The second thing I decided on was that I’d go with only the 13.3″ devices. They have greater options around storage and processor speed, so it seemed like a good path.

I pulled up the spec sheets on both of these machines. After a thorough review the two biggest glaring differences amounted to these features:

Resolution

Macbook Air: 1440×900 versus Zenbook UX31: 1600×900

USB Connections

Macbook Air:  USB 2.0 versus Zenbook UX31: USB 3.0

Battery “Reputation”

This is a bit of a weird one. All I can say, is that those that have tested the thing have said the Zenbook doesn’t measure up battery wise.

Macbook Air:  7+ hours versus Zenbook UX31: probably not 7+ hours

Operating Systems

This is actually a big problem for me, as the Zenbook actually runs Win7 and Linux support for all devices is a little questionable. I know for a fact that OS-X runs flawlessly on the Air and outperforms Windows 7 in about every aspect of performance. So I really want to be confident that I can run OS-X or Linux as the core operating system and then either virtualize or dual boot into Win7.

Macbook Air:  OS-X == Win! versus Zenbook UX31:  Win7 == Fail

So with all those factors taken into account I finally chose…

…drum roll please…

…the Macbook Air.

Summary

These devices are really close, but in almost every measurement the Air comes out slightly ahead in some way or manner. In addition I have the odd requirement of not wanting Windows 7 as my primary operating system. After researching “Zenbook+Linux” and “Zenbook+Ubuntu” it sounds like getting Windows 7 off of the Zenbook and getting Linux running on it is problematic at this point. I’m sure that in 3-6 months Linux will probably outperform and outlast Windows 7 on the device, however now that isn’t the situation.

In other little ways the Macbook Air still has a slightly higher quality also. The power adapter and magnetic connector are less troublesome than most other laptop style power adapter connections. Basically every single thing, once you use it for a while, seems to have a purpose or intent behind the design.

However I will add, that the Asus is of extremely high quality, the absolute highest for a dedicated Windows 7 Laptop. If all somebody wants is a Windows 7 machine with no concern for OS-X or Linux than the Asus is your only real option. The higher resolution almost sent me to get a Asus and is absolutely a big advantage for Win7 on the device. But if you’re still wanting the absolute top tier quality, features, and capabilities for a device that is this elegant and sexy, the Macbook Air is still the prize.

With that, I’m off to determine my purchase options.

South Sound .NET Users Group + AWS, Visual Studio, Toolkits, and Explosions!

If you live in or around the south sound region near Olympia, would like to hear about the AWS Toolkit and SDK for Visual Studio, come and check out the South Sound .NET Users Group on at Olympia Center, 222 Columbia NW, Olympia, Washington.  The meeting will be on January 12th at 7:00pm.

Slides & Links to Code are already available!

Overview:  During this presentation I will provide an overview of what is needed to get started using Visual Studio 2010 with the AWS Toolkit & SDK. We’ll also cover the basic design ideas behind the do’s and don’ts of cloud architecture and development. There will be some hands on coding (if you’d like to bring a laptop to follow along) and we will deploy code (pending a wireless/cat5 connection) into AWS Cloud Services & get EC2 instances up and running live!

PaaS Help! Know any PaaS Providers?

I’ve been diligent and started a search of Platform as a Service Providers, so far my list includes:

  • EngineYard
  • Heroku
  • AWS Beanstalk
  • Windows Azure
  • AppFog
  • Tier3
  • CloudFoundry
  • OpenShift
  • IBM PaaS
  • Google App Engine
  • CloudBees

Who else is there? Help me out in creating a list of every possible offering we can find!  Cheers! Please leave a comment or three below with any I’ve missed.  Thanks!