Mind Mining Medium

General category archive

Tip: Recursively Open TextMate Project Folders

October 14th, 2009 | General | 1 comment

Quick tip time! This time it’s about one of the best text editors for the mac, TextMate.
Did you know that you can recursively expand project folders in TextMate by holding down the option key (⌥) and clicking the folder to open.

MacPorts on Snow Leopard

August 31st, 2009 | General | 1 comment

Update: The nice people at MacPorts have update the package to v1.8.0. You can follow their instructions to upgrade to the latest stable version. I would suggest the MacPorts v1.8.0 for OS X 10.6 DMG file.
After installing Snow Leopard, you may want to install the MacPorts. Follow the following steps to get it up and [...]

Snow Leopard and Bash Colors

August 31st, 2009 | General | 2 comments

One little problem people—including myself—have been running into is bash color codes. Many .bashrc files have the following (or similar):

export COLOR_NC=’\e[0m' # No Color
export COLOR_WHITE='\e[1;37m'
export COLOR_BLACK='\e[0;30m'
export COLOR_BLUE='\e[0;34m'
export COLOR_LIGHT_BLUE='\e[1;34m'
export COLOR_GREEN='\e[0;32m'
export COLOR_LIGHT_GREEN='\e[1;32m'
export COLOR_CYAN='\e[0;36m'
export COLOR_LIGHT_CYAN='\e[1;36m'
export COLOR_RED='\e[0;31m'
export COLOR_LIGHT_RED='\e[1;31m'
export COLOR_PURPLE='\e[0;35m'
export COLOR_LIGHT_PURPLE='\e[1;35m'
export COLOR_BROWN='\e[0;33m'
export COLOR_YELLOW='\e[1;33m'
export COLOR_GRAY='\e[1;30m'
export COLOR_LIGHT_GRAY='\e[0;37m'

The solution is to use \033 as the escape code rather than \e.

# Setup some colors [...]

Setting terminal tab titles

August 28th, 2009 | General | No comments

I’ve always hated the fact that I would have 5-10 tabs open in Terminal, and they would all say bash.

After doing some quick research, I stumbled on decent solution.
You can add the following code block to either your .bash_profile or .bashrc.

function set_window_and_tab_title
{
local title=”$1″
if [[ -z "$title" ]]; [...]

Safari 3.1 and Pith Helmet

March 19th, 2008 | General, How To, OS X | 6 comments

Recently Apple updated their browser Safari to version 3.1. It does boast new features that us web developers love, but it also crashes some hacks we also love. Note that I’m not calling them “plug-ins”. Read the reasoning behind this.
Now, one of my favorite Safari hacks has been Pith Helmet and with the new update, [...]

Facebook News Feed Filter

March 13th, 2008 | General | No comments

While stumbling around on Facebook, it seems like they accidently released (or to me for a second) a new front page. The front page we usually see is the News Feed. The new page is the same News Feed, but filtered.
I took the liberty to take some pictures.

What do you think?

Futurama: Bender's Big Score – Binary Joke

January 15th, 2008 | General | 8 comments

In Futurama: Bender’s Big Score, Bender reads off a series of 0’s and 1’s to travel through time. Now I won’t go much into the movie ((You should really go buy the movie. It’s pretty cheap at Amazon.)), but the writers are known for their geek humor.

Now, if you take the whole thing by [...]

How to change bash prompt

January 3rd, 2008 | General | No comments

Some people have asked me how I changed my bash/terminal prompt from the default prompt to what I have. It’s actually a very simple process.

First, load up Terminal and open up your ~/.bash_profile file. (FYI, be sure to read the difference between .bash_profile and .bashrc.)

Then type the following:
export PS1=”\w>: ”
export PS2=” > ”
There are a [...]

RSS Links Updated

December 3rd, 2007 | General | No comments

I have updated my RSS Feed locations. Please update your reader to this location: http://feeds.feedburner.com/karbassi/tech
The RSS for the comments are located at http://feeds.feedburner.com/karbassi/tech/comments

Programming Child Names or "What not to name your children"

October 8th, 2007 | General | 3 comments

Am I being too much of a geek to even consider this? I always thought it would be super cute (and nerdy) to name your child after something you love. Okay, maybe not for all loves, but it works for some loves. People name their children after their parents, grandparents, celebrities, and even pets; so [...]