01
Mar 11

Engineer Shortage

There’s been an increasing amount of conversation recently about how difficult it is for startups to find qualified engineers. And yet at the same time, recent graduates with strong engineering credentials are saying that they can’t find jobs.

What’s going on here?

(Let’s set aside those who aren’t looking to work for a startup. Nothing wrong with that – but the hiring process for corporations is governed more by the macroeconomic situation and waiting for executives to feel comfortable that the analysts on Wall Street are comfortable with increased hiring expenditures. I can’t provide much insight into that. But I can offer some thoughts for recent graduates who are chomping at the bit to get out there and put the skills that they’ve spent years honing to good use, and they’re hungry for any opportunity, especially at a startup where their contributions will actually move the needle.)

I think the immediate reaction is to try to attribute this apparently misalignment of supply and demand to some generalization that startups won’t hire recent graduates.

In December, Vivek Wadhwa wrote a post on TechCrunch, Shortage of Engineers or a Glut: No Simple Answer. The post made a lot of useful points and quoted some smart people (including a comment that I left on his blog).

After thinking about this again recently, I went back and read some of the comments on the post.

Most of the comments seemed to be along one of the following themes:

1) Schools don’t train me in what’s really being used in industry. All of the job requirements that I read ask for X years of experience with Y skill (that I don’t have). What is wrong with education?

2) Startups don’t just hire anyone. They are looking for engineers who have strong fundamental skills, can pick up new technologies and run with them, and are willing to tackle any problem.

There is truth in both of these themes.

 

School doesn’t teach me what I need to know for industry

Perhaps the Information Sciences and Technology program at Penn State was unique in this regard, but the Dean and professors would regularly get up in front of students and say something along the lines of, “Technology is an industry which requires lifelong learning. We will teach you how to learn. Then you can use that skill to learn what you need for your career.” Sure, we learned some useful things along with the theories, but it was always made clear to us that we shouldn’t expect the curriculum to teach us everything we would ever need for a career in technology.

Good thing, too. Because the vast majority of the skills that I use on a day-to-day basis in my COO/CTO role were things that I’ve learned myself.

One of the comments on the post spoke to this point: “I was shocked that so many of my classmates didn’t apply what they learned — about how to learn — to themselves. In the time between my CS degree and my first industry job, I’d taught myself version control, design patterns, unit tests, embedded systems programming, user interface design, and so on. It’s easy to get a good job when so many of my classmates thought that college was the last time they’d ever have to learn something!”

This is why so many companies look for candidates who contribute to Open Source. Because contributions aren’t something that you regularly do as a part of school or as a part of most jobs. Instead, it’s something you do on your own accord, and it demonstrates both initiative and the ability to pick up something and run with it.

 

Startups don’t hire just anyone

That’s true – they don’t. But it doesn’t mean that you aren’t already or can’t become the kind of person that they will hire.

I make this point in my comment on Vivek Wadhwa’s personal blog, that led to the subsequent TechCrunch article:

Just because engineers are graduating, or there are engineers on the bench with decades of experience, this doesn’t immediately solve the issue that a startup CTO faces in trying to staff their team. At the start, an entrepreneur is looking for a driven technologist who can come in and partner with them to translate their vision into reality. If you’re making hire #2 or beyond, you’re looking for specific needs – startups often don’t have the luxury to train someone into their technology stack and are looking for folks who can hit the ground running and get stuff done. As a result, simply having an engineering degree or decades of experience from BigCompany clearly does not make an engineer an immediate fit.

Try to find an engineer with the right experience and the ability to get stuff done — this is what entrepreneurs are struggling with and is what drives the entrepreneurs and investors to complain that there isn’t enough talent in the market.

Startups are looking to fulfill a need. There’s no leadership development program to train a pipeline of technologist for future needs three years away. Startups have a problem. They need to grow their product. Now. Faster. If you’re not the solution to that problem, you won’t get in.

So, become the solution.

Pick the area that you want to work in. Ruby on Rails web development? Great. Objective C iPhone development? Sounds good. Now start writing code. Show that you get stuff done (code on GitHub, contribute to open source, blog!). If you have experience already, find ways to make it relevant to the position that you’re looking for.

And to really get a gold star, don’t limit yourself to the one technology that you start with. If you’re doing Ruby on Rails development, it’s likely that you may need to do some basic systems administration on a Linux server to get your stack up and running. Embrace that opportunity as a chance to prove that you can do whatever it takes to get the job done. Same thing when you need to setup memcached or Redis or whatever additional technologies might come onto your radar. Because a startup will expect you to pickup new technologies, and to become productive rapidly.

Finally, you need to get in touch – I think this point is under-appreciated: startups don’t have big recruitment search budgets (or a lot of time) – if we can’t find you easily, we can’t hire you. Promote yourself. You are a brand. Figure out how to get found.

 

I sent some very similar advice to my summer development interns at the end of August. I closed with the comment that, if you put some time into really considering the skillets that you’ll need in the job that you want, and then really make an effort to build those skillets (and any supporting skillets on your own), and then do the extra work to publicize what you’re doing, you will be easily heads and shoulders above 90% of the other students you’re graduating with who could do the work, but won’t bother.

Much has been said about the Gen Y folks who are eager to get out there and start making a difference in the world. You don’t need anyone’s permission to go get started. What are you waiting for?

Leave a comment on this post »

21
Feb 11

Upgrade Ruby Enterprise Edition

A security update for Ruby has been released to respond to multiple vulnerabilities. All versions of the interpreter are affected, including the Ruby Enterprise Edition interpreters.

Fortunately, it’s easy to upgrade with RVM:

Tell RVM to upgrade your specific REE installation to the latest:

rvm update                                                   #upgrade RVM
rvm upgrade ree-1.8.7-2011.02 ree-1.8.7-2010.02              #upgrade REE

Accept Y to all options to move elements of your current install.

Then reset REE to be your default:


rvm ree-1.8.7-2011.02
rvm --default ree-1.8.7-2011.02

Following this, confirm that the new install of Ruby is active for your shell session (which ruby). Then, you will likely need to install bundler again to make sure you have 1.0.10 for the upgraded copy of gem 1.5. Also, run bundle install from the app root to make sure your gemset is up to spec.

Despite telling the upgrade process to move everything, I still needed to reinstall Passenger (3.0.2) and reconfigure it for Apache:


gem install passenger
passenger-install-apache2-module

With this reinstallation, you’ll also need to edit your Apache config file (on Mac OS X: /etc/apache2/httpd.conf ) to point to the new Passenger gem.

Restart Apache from System Preferences > Sharing > Web Sharing and you should be good to go.

Leave a comment on this post »

20
Jan 11

Connecting a Windows VM to a Mac-based localhost Ruby on Rails site (Passenger)

Supporting Internet Explorer for your web app is a pain. At least, trying to test your Ruby on Rails (or other localhost-based site) in IE while developing on the Mac should be easy, given the prevalence of virtual machines. Right?? You’d think. However, trying to setup our front-end developer to access a local instance of Passenger running on Mac OS X from a Windows VM proved to be more of an issue than it needed to be. Adding to this, most of the top Google results for relevant keywords for this configuration made the process more overly difficult than it needed to be.

So, to help ease your pain in testing your Mac-based Rails site from a Windows virtual machine, here is an easy configuration for the three main VMs.

We need to do two main things:

  1. Trying to serve port-based or subdomain-based sites over to the Windows VM is going to be more challenging. Let’s make things easy – we’ll set the default http://localhost site for our Mac to our Rails site.
  2. We need to get the VM’s network to communicate with the Mac’s network correctly so that we can access this site.

On my team, we’re using Passenger on the Mac (running on top of the Mac’s base install of Apache). We’re using Passenger Pane to configure Apache easily. We also have this hooked into RVM, but that won’t be relevant to what we’re doing here. For the purposes of this post, I’ll assume that you have Passenger successfully serving a site that you can access via http://somedomain.local I’ll also assume that for whichever VM you’re opting to use, you have Windows installed and running in it.

** Do yourself a favor. Make sure that VM Ware Tools, Parallel Tools, or VirtualBox Guest Additions are installed – this ensures that the network connectivity will work as expected.

 

Let’s get http://localhost serving our Rails site

At the bottom of /etc/apache2/httpd.conf when using Passenger Pane, you’ll find the following configuration:

<IfModule passenger_module>
  NameVirtualHost *:80
  <VirtualHost *:80>
    ServerName _default_
  </VirtualHost>
  Include /private/etc/apache2/passenger_pane_vhosts/*.conf
</IfModule>

 

To make our Passenger site the default localhost site, go into passenger_pane_vhosts/, view the Apache config file for the site you want to be the default, and you’ll see something along the lines of the following:

$ cat yoursite.local.vhost.conf
<VirtualHost *:80>
  ServerName yoursite.local
  DocumentRoot "/Users/username/rails/yoursite/public"
  RackEnv development
  <Directory "/Users/username/rails/yoursite/public">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

 

Copy the lines from inside the VirtualHost block and paste them back into /etc/apache2/httpd.conf so that it looks like the following:

$ cd ..
$ sudo mate httpd.conf
# Added by the Passenger preference pane
# Make sure to include the Passenger configuration (the LoadModule,
# PassengerRoot, and PassengerRuby directives) before this section.
<IfModule passenger_module>
  NameVirtualHost *:80
  <VirtualHost *:80>
    ServerName _default_
	####
	DocumentRoot "/Users/username/rails/yoursite/public"
	RackEnv development
	<Directory "/Users/username/rails/yoursite/public">
	  Order allow,deny
	  Allow from all
	</Directory>
	####
  </VirtualHost>
  Include /private/etc/apache2/passenger_pane_vhosts/*.conf
</IfModule>

 

Restart Apache by going to System Preferences > Sharing and uncheck & recheck Web Sharing.

Also, if you’re using VMWare Fusion or Parallels, note the IP address that’s shown here.

Configuring VirtualBox

Let’s start with Virtual Box, which was the biggest pain to configure. Not because there’s a lot of work, but because they one critical detail doesn’t seem to be well known (most of the posts you’ll read online try to guide you through using the command-line network configuration tool). I should note that this was my first real opportunity to use Virtual Box, having only used Parallels and VMWare Fusion beforehand. It’s a little rough around the edges in a few places, but overall very impressive.

1) First, ensure that network settings for VirtualBox should be set to NAT – no port forwarding needed

 

2) Now, here’s what took a while to dig up: VirtualBox connects http://10.0.2.2 to the Mac’s localhost (thanks to this forum post) That is, just typing that into IE within the VM should connect you to http://localhost running on the Mac.

 

Configuring Parallels

1) For Parallels, you want to make sure that your VM is running on a Shared Network.

 

2) If you’re setup with this network configuration, you should be able to directly access the local IP address of your Mac, as shown in the System Preferences > Sharing screen:

 

Configuring VMWare Fusion

1) VMWare Fusion is much like Parallels. Configure your VM to “Share the Mac’s network connection” via NAT.

 

2) If you’re setup with this network configuration, you should be able to directly access the local IP address of your Mac, as shown in the System Preferences > Sharing screen, as with Parallels.

Hopefully, if you’ve made it to this point, for your respective VM, you have IE accessing your Passenger-based site. Success!

 

Hopefully, at least now you’ll be able to spend your time on all of the issues that poor users confined to IE are suffering through and get bug fixing quickly.

Leave a comment on this post »

30
Nov 10

Resolving the MySQL Homebrew Install Issue

We switched from using MacPorts to Homebrew for package management on our Mac OS X development machines. Recently, when building two machines and using brew to install MySQL on them, we ran into an issue where MySQL would only partially install and we’d get a mysql database with an empty user table. This was with mysql-5.1.52:

mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from user;
Empty set (0.00 sec)

We tried a couple of things to solve this, but were not able to come up with a workable way to insert a root user, as you can’t create users when running with the –skip-grant-tables option.

I also tried the binary download from MySQL.com and hit the same snag.

After a couple of rebuilds and testing with a fresh install of Snow Leopard, we traced the issue back to the following error message from the MySQL setup script:

$mysql_install_db
Installing MySQL system tables...
ERROR: 1049  Unknown database 'mysql'
101121 19:21:38 [ERROR] Aborting
101121 19:21:38 [Note] ./bin/mysqld: Shutdown complete
Installation of system tables failed!  Examine the logs in
./data for more information.
…

Error 1049 proved to be the key to solving this. It led me to this MySQL bug report, which discusses that this error can be generated when the default temporary directory doesn’t exist.

Passing the /tmp temporary directory to mysql_install_db as a param seems to resolve error 1049 and allow us to get the default mysql system database setup with a working root user.

Most of the instructions for installing MySQL with Homebrew don’t mention any additional params needed, which leads me to believe this is something recent in the recent builds of MySQL. We didn’t have this issue when installing MySQL on our other Snow Leopard machines (which have 5.1.49). However, this is the sequence of commands that we found that worked for us – hopefully, this will help others hitting similar snags:

brew install mysql
mysql_install_db --user=mysql --tmpdir=/tmp
mysql.server start
#server must be running first
mysql_secure_installation
Leave a comment on this post »

24
Nov 10

Hey, what caused that ActiveRecord::ConnectionAdapters::TableDefinition:gooblygook on my table?!

Maybe you’ve run into this, too? You’re taking a look at the tables generated by your Rails migration and you see this really odd column.

#<ActiveRecord::ConnectionAdapters::TableDefinition:0x10245fd78>

Here’s another look:

Yuck!

Searching the web didn’t turn up much in this case, so I thought I’d post what I found when figuring out the root cause.

See the issue in this migration?

No? I didn’t the first time I looked, either.

It’s the comma – at the tail end of the last column definition before t.timestamps.

This little typo doesn’t look like much, but it’s the cause of that wacky column.

Here’s what the table looks like when you run the migration with the comma:

And here’s what it looks like when you fix your typo:

Ah! Much better.

As for creating a migration to fix this, I just resolved the typo and dropped the column manually. It’s a little difficult to script this because the column name will be different in each database, so, it’s some variation of this (the part in bold on each database that the original typo ran on):


ALTER TABLE `friendships` DROP `#<ActiveRecord::ConnectionAdapters::TableDefinition:0x10245fd78>`;

Hope this helps someone else avoid wasting time on this!

Leave a comment on this post »