JackHQ

0 notes

Installing STUD on Ubuntu 12.04

Here are some steps on installing STUD on ubuntu 12.04

sudo apt-get install libev-dev libssl-dev git-core -y
git clone git://github.com/bumptech/stud.git
cd stud
make
sudo make install

To run with an ssl cert just

stud --ssl my.pem

This will listen on port 8443 and forward to 8000

0 notes

ngFiddle a tool to fiddle with AngularJs

AngularJs has be come the javascript client tool of choice for Jack Russell Software, we have been bike shedding on many different client mv* frameworks for a few years. Our clients continue to demand richer ui experiences on the client and our jquery code base has gotten out of control.

We started some exploration with backbonejs one of the first mv* frameworks and had problems working with it and coffee-script, which was mostly user error. Back then there was not a lot of documentation to go around and you had to setup your data-binding manually.

Next, we started down the path of SproutCore2, now Ember and it was our best fit, but you had to manage your own ajax calls. We did finally go with Ember in production and it worked great, the only issue, was that our development team continuously said that it was hard to step back into an ember app after not looking at it for a few months. The application was hard to digest and grok.

Hello AngularJs

A few months ago, we started experimenting with AngularJs and it appeared to be odd with the declarative programming model, we quickly feel in love with its testing story and how the framework focuses on testability. So now, we have a few modules going into production and one is reducing our javascript code base by 70%.

If you are on the fence on javascript mv* frameworks give AngularJs a try! It is working well for us.

Check out this nifty little tool we created called ngfiddle - http://ngfiddle.jit.su - a great place to play around with the AngularJs framework and share your fiddles with other devs.

Filed under angularjs javascript

1 note

AngularJS Contact Form Example

AngularJS is a powerful MV-Star framework from Google that has all kinds of neat features, focused on testability and automatic data-binding, it uses a declarative markup style and leverages the strength of the DOM. Yes, the dom is ok at some things. :D

The AngularJS team feels the future of the web is moving more to this declarative style, time will tell, but it definitely makes my life a little less painless.

This example does not really go into the power of AngularJS, but demostrates its simplicity and strong declarative features.

Check out:

https://gist.github.com/3629261

It is a fully functioning contact form that validates every field for being required and validates the the e-mail field for being an e-mail.

It is amazing the amount of functionality you get declaratively, to just do a simple form validation and post.

Filed under angularjs javascript

1 note

Added RevealJs to Bam 8.1

For more information on RevealJs check out:

http://lab.hakim.se/reveal-js/

Filed under Javascript

0 notes

mssqlx

pipe sql to mssqlx and get json out

should work great on all platforms, especially mac and unix, without any other drivers, just nodejs.

usage

echo 'select * from sysobjects' | mssqlx | prettyjson

source

https://github.com/twilson63/node-mssqlx

future

Currently, this only works on the command-line, the next version will work via stream api:

var mssqlx = require('mssqlx'),
  nconf = require('nconf'),
  fs = require('fs'),
  conf = nconf.get('production');

  fs.createFileReadStream('foo.sql').pipe(mssqlx(conf)).pipe(process.stdout);

Filed under nodejs mssql cli sqlserver

0 notes

w3

@akennedy and I were digging through angularjs, a new client mv* framework from google. When we evaluate new tech, it is nice to go through the examples, but we really need to quickly see how these frameworks will do at solving our needs. Our applications use a lot of autocompletes, dynamic selects and a lot of ajax. So we need to create small little spikes to test these concerns.

NodeJs is great for quickly building small web servers or we could fire up apache or nginx. But this does take time and most of the time we just open a file in the browser.

Today, I created a simple static web server called w3. The big win is that if you have nodejs and npm install w3 -g

Now you have a little web server you can bring up and down in any folder.

Its easy! Just go to a folder create index.html anything else and then run w3 in the folder and you are serving files.

I hope you find this utility as valuable as we do!