Installing node.js on a Mac from scratch

Every other month or so I've had the need to provision a clean Mac with a node.js development environment. I've summarized my steps here for quick reference (mostly for myself, but perhaps other people will find this useful).

1. Install Xcode from the Mac App Store.

2. Activate Xcode license: sudo xcodebuild -license

3. Download and install MacPorts

4. Use MacPorts to install git, node.js, and node package manager: sudo install git nodejs npm

5. Use npm to install socket.io: npm install socket.io (or npm install -g socket.io to install it globally)

6. Install command line tools: git status. This will bring up a prompt that says "The 'git' command requires the command line developer tools. Would you like to install the tools now?" Click "Install" to continue.

Category:
Tags: , ,

What Women in Technology Means to Me: Benjamin Haas, Software Engineer at Control Group

[This post originally appeared on my company blog here. I am re-posting it here for posterity.]

Hi, I'm Benjamin Haas, and I'm a software engineer and manager at Control Group. I am also a developer advocate, which means that in addition to helping build great products and experiences, I try to ensure that developers have a voice in all company-wide initiatives, projects, and processes. Furthermore, I am involved with our developer community outreach initiative, as we recognize that we are part of a larger group of companies and individuals that are actively working toward the technological transformation of New York City.

One aspect of developer advocacy and outreach that is important for me is being an active part of our Women in Technology program. Gender diversity in the workplace is a goal that I am happy to say I am working toward, and I am joined by a pleasingly well-rounded crew of co-workers.

> Read More
Category:

ELNYA Event at Talking Transition

My friend Jackie from Only Make Believe recently asked me to speak at the Emerging Leaders of New York Arts (ELNYA) event at the Talking Transition tent in New York. Talking Transition is an initiative to give New Yorkers the chance to take part in a conversation with the incoming DeBlasio mayoral administration. At the ELNYA event, I represented the city's tech needs, as they intersect with needs of the arts and arts administrators community. Here is the gist of what I said.

> Read More
Category:
Tags:

Locally and Remotely Renaming a Branch in Git

Let's say you're busy working on your project, creating feature branches right and left to build out your super sweet app. Then your dev team decides to change their feature branch naming convention. How do you proceed without having an aneurysm? Can you easily accomodate your team's plan and not end up wanting to punch people in the face? Yep! As a matter of fact it's super simple to rename your branches. Here's how.

> Read More
Category:
Tags:

New Orleans Eating & Drinking Guide

When Marci and I went to New Orleans last year, we solicited the advice of our friends (Joshua M. Bernstein! Scott Gold! Molly Dorfman!) regarding where to eat and drink. I compiled their recommendations, along with some spots from eater.com, and made this Google map. Since then I've shared this so many times that I figured I should just publish it here. Enjoy, and let me know if anything is out of date.


View New Orleans Food & Drink in a larger map

Category:

Update to Installing Yii Users and Rights

It has been a year since I originally wrote the "Installing Yii Users and Rights in 5 Steps" tutorial, and both the Yii framework and the modules themselves have had some updates since then. I made some slight tweaks to the tutorial and updated the git repository to match the current builds.

You can view the updated post containing the tutorial here:
http://www.benjaminlhaas.com/blog/installing-yii-users-and-rights-5-steps

Category:
Tags:

Second Yii NYC Meetup

Our first Yii NYC meetup was a big success (I posted a writeup over on the Control Group blog here), and the second one is just a couple days away. Here are the details:

Date: Tuesday, December 11
Time: 6:30pm - casual conversation, 7:30pm - meeting begins
Location: Control Group offices in the Woolworth Building, 233 Broadway, 21st Floor, NYC | map

Sign up here and come join us!

Category:
Tags:

Meet Raymond Lane Haas

Please help me and Marci welcome Raymond Lane Haas into the world! Raymond was born at Beth Israel Hospital in New York City on October 18, 2012, at 12:24am, weighing 7 lbs. 12.3 oz.

 

Check out his ever-growing photo gallery here on Flickr!

Yii NYC

I just started Yii New York City, a meetup for NYC-area developers interested in the Yii Framework. I'm hoping we can get together monthly, or every other month, and talk about the cool stuff we're building in Yii. There will be introductions, roundtable discussions, demos, and most importantly, free food and beer! My company, Control Group, will be hosting the meetups, and you should come check us out even if just for the awesome views of lower Manhattan.

If you're in or around New York City, go sign up for the group now! Otherwise, get involved and organize a meetup of your own!

Category:
Tags: ,

Controller Access Control With the Yii Rights Module

It's easy enough to determine how the Yii Rights module works when used to perform inline access control checks in your code. You simply call ($user->checkAccess($operation) === true), and the internal details are easy enough to dig into. But how does it work with your controllers to allow or deny access to a page (or more specifically, an action in your controller)?

If you haven't yet read up on access control filters, you should check out the official Yii Controller Basics first and get familiar with filter chains. Then come back and read the rest of this post.

> Read More
Category:
Tags:
Syndicate content