putting some more funk in the trunk of your MacOSX command line

So, yeah, I got a mac. It's nice. But it's missing some fun. So, I added fun.

Open Files in my Editor (TextWrangler) from the Command Line

When writing code I use Eclipse, but there are times when I just want a decent text editor that's also fast. My coworker Steve recommended I try out TextWrangler and it seems to be pretty good so far. I was really used to being on the command line and doing: xemacs somefileinthisdirectory.info and having it open my editor for that file. No longer the case...there's path issues and even after solving those TextWrangler doesn't want to open multiple files.

After a bit of digging I learned of the command open -a TextWrangler filename but it won't accept wildcards (filename.*) and that's a lot of stuff to type.

So, I whipped up a little shell script to help me out - here are the steps.

First, Set your PATH

The first step is to set the "PATH" so that your command line knows where to find executable scripts. I have a folder in my home directory called "bin" where I still all sorts of fun little helpers so I added that to the ".profile" file in my home directory:

export PATH=/Users/greg/bin:$PATH

You can do this easily on the command line:

echo "export PATH=/Users/greg/bin:\$PATH" >> .profile

If you don't have a .profile file, thatcommand will create it. If you have one, it just adds that last bit to the end of it. Note that this command will only work if your name is "greg." Otherwise change "greg" to whatever your username is.

Second, Create the Shell Script to Call TextWrangler

At this point, you need to create a little shell script that will use that long syntax to open up the files that I pass to it:

are programmers / men really this predictable

are programmers / men really this predictable

Seen browsing today.

I see two apparent assumptions in this:

1 - people interested in installing open source bug tracking software are primarily male.

2 - those males, when looking for a hosted project planning software from a Microsoft partner, are best attracted with a semi-nude woman.

Really? So sad. So sad.

Bailout Fail

Bailout Fail

There's been some "focused, wry and timely" media examples recently about the old stock market situation. THE BROKERS WITH HANDS ON THEIR FACES BLOG is one good example. I was thinking about the stock market, the bailout plan and one of my personal favorite wastes of time forms of entertainment: Fail Blog. When...EUREKA!

Bailout Fail...

IKEA Denver (or just Colorado) Finally To Be Announced

According to 9news.com IKEA is finally coming to Colorado!

My Past Discussions of IKEA Colorado

I've written about this in the past and become somewhat of a rumor hound on the subject:

Often the comments on those posts are more interesting than the posts themselves...

I'll post an update comment on Wednesday after the real announcement.

Edit: Ikea Centennial

According to a comment I just received it will be in Centennial, Colorado. Centennial just recently incorporated into a city as expansion has grown south of Denver. I guess this makes sense since that area of colorado (Douglas County, southern Jefferson County) has been the fastest growing area in Colorado and one of the fastest in the nation for the last few years. I imagined they would put it north of Denver because my perception is that IKEA is popular with college students and the CU/CSU combination in Boulder/Fort Collins is the center of our college population.

And more sources are identifying it as coming to centennial.

Health Care Choices for Web Developers

Health Care Choices for Web Developers

I'm taking the a list apart 2008 survey of web folks and got to a question about where do I get my health-care.

For the record, I have a high deductible plan through Anthem and an HSA account through 1st Bank (Colorado bank...) and I love it.

So, apparently you can get health care from a lot of places, but you can't get health care from a health care company. And we wonder why health care is so bad in America...the feedback loop is how big these days? Bad feedback loop! Feedback loop goes to it's room without dinner until it can learn to be smaller!

Herman Miller Chairs in Denver - Expensive Chair, Cheap Tables

So, I'm outfitting my office which has me thinking back to all the great articles I've read over the years about offices. There's Joel on Software's 12 Steps to Better Code which is largely just common sense of developer types explained using traditional business language. And Jason Calacanis about how to save money running a startup which is largely more of the same.

Cheap tables and Expensive Chairs (like... Aeron chairs)

Jason's tip that really resonated with me was this one:

Buy cheap tables and expensive chairs. Tables are a complete rip off. We buy stainless steel restaurant tables that are $100 and $600 Areon[sic] chairs. Total cost per workstation? $700. Compare that to buying a $500-$1,500 cube/designer workstation. The chair is the only thing that matters... invest in it.

DrupalCamp Colorado - 4 Days to Go - My Drupal Camp Phone

We're just a few days away from DrupalCamp Colorado 2008 and things are becoming more and more tangible by the minute. Just now I got a package in the mail at the new offices.

The stickers just happen to be 2"x4" which is exactly the right size to emblazon them on the back of your iPhone. Ever since lijit gave it to me my phone has rocked a lijit sticker:

but now...at least for the next week...it's a DrupalCamp phone:

About quarter of the calls I get are organizing the camp so it seems only fitting.

If you're not convinced by these stickers that this will be a rocking weekend, here are the sessions.

Also, my best to the sticker's designer Don Hajicek and to the other logo designer amytremper.

Syndicate content