# Entries Tagged 'OS X' ↓

## Things to do after buying a MacBook Pro Retina

You probably have noticed that many programs are not retina ready.  So here’s what to do to get the most out of it for the time being.

2. Twitter client from Twitter itself is still not retina, Tweetbot (http://tapbots.com/tweetbot_mac/) still in alpha but very stable and retina enabled
4. For Eclipse and Eclipse based apps like Motodev, Aptana or Coldfusion Builder check the accepted answer for this question (http://apple.stackexchange.com/questions/53717/how-does-eclipse-work-on-new-retina-macbook-pros).
5. Some apps are just launched in low resolution, you can change that by right-clicking the app and click “Get Info”  & deselecting the check box “Open in Low Resolution“.  Retinalizer, –>(http://hitoriblog.com/wp-content/uploads/2012/07/Retinalizer-0.1.zip) helps you to automate this.
6. Sublime Text 2  –> The latest nightly is compatible with retina.
7. Pages, Numbers & Keynote (Apple has an update out that fixes this, just check software update)
8. Dropbox –> (http://dl-web.dropbox.com/u/17/Dropbox%201.5.10.dmg) this experimental build is retina compatible,  note this is an experimental build.
9. Lastpass for Chrome has an updated version that works on retina screens  –> (https://lastpass.com)
10. VLC –> (version 2.0.2 supports retina)

## Android emulator and the MacBook Pro Retina

If you are the lucky owner of a new MacBook Pro Retina chances are you are faced with this problem: http://oi49.tinypic.com/2im2wys.jpg (http://code.google.com/p/android/issues/detail?id=33383)

Now most post related to this problem recommend you install some software so you can use the 1400×900 resolution WITHOUT HiDPI however that also means you lose some of the benefits of the retina display.

So while looking for alternatives I came across Buildroid for VirtualBox:  http://www.buildroid.org/blog/?page_id=121.

This solution is awesome, it works super fast, I mean really lightning fast as fast as the actual tablet in my case.

While most is explained rather well on the above page for Buildroid, there are some things specific to do for the Mac version.

For example the blogpost tells us to unlock the screen on the virtual android tablet via the Home key.  To do this on a Mac I discovered you can use the ESC key + mouse to unlock and to go back you can just use the ESC key.

Another thing that took me a while was to get the networking part done.  In the VirtualBox Preferences set a vboxnet0 up, see image below.

In the settings for the virtual machine under network setup the following:

And this one for the internet connection of the virtual tablet itself:

On the tablet you ‘ll notice an android icon with a cook’s hat click on that to get the ip-address and to set your preferred settings.  For me this works best.

What’s left is to set up an android remote device at that IPADDRESS in eclipse or motodev, should show up  automatically after doing adb connect IP ADDRESS

And you are done.

## Use Dropbox to store your Sublime Text 2 settings, themes and plugins

After my last blog post on Fetch & Sublime, I thought let’s give another nice hint on how to get the most out of Sublime Text 2.

Sometimes you work on Windows, sometimes on Mac or Linux or just on another computer but you still want to use the settings, themes and set of plugins everywhere.  One of the easiest ways to do this is to use your DropBox account.

DropBox  is basically just a regular folder on you computer that syncs to the cloud.  The first 2 GB are free so if you use it to store documents you’re fine with the 2 GB.  You can however buy more space if required.  By inviting friends you can increase your Dropbox size (friend invite link).  Trust me it’s worth it, once you have Dropbox you wonder how you could live without it all these years.

The nice thing about Dropbox is it has versioning build right in, so even if you accidentally delete a file you can get it back.  Not only that you can set up shared folders to share documents between 2 or more people and even public folders to share with any internet user.

Ok but let’s go back to Sublime Text 2.

One thing you could do is store your projects on your DropBox  account that way all your projects are synced across all your devices.  But you could also store your settings, themes and plugins on DropBox.

### How does it work?

#### On OS X

1. First close Sublime Text 2
2. In your Dropbox folder (usually it’s at “~/Dropbox/"), add a folder called “Sublime Text 2"
3. Go to your Sublime Text 2 settings (this is usually at “~/Library/Application\ Support/Sublime\ Text\ 2/")
4. Copy the following 3 folders into “~/Dropbox/Sublime\ Text\ 2/ "
• "Installed Packages"
• "Packages"
• "Pristine Packages"
5. Rename the 3 original folders in “~/Library/Application\ Support/Sublime\ Text\ 2/" or delete them.
6. Next go back to Terminal
7. From the command line type “cd ~/Library/Application\ Support/Sublime\ Text\ 2/"
8. "ln -s ~/Dropbox/Sublime\ Text\ 2/Installed\ Packages ./Installed\ Packages"
9. "ln -s ~/Dropbox/Sublime\ Text\ 2/Packages ./Packages"
10. "ln -s ~/Dropbox/Sublime\ Text\ 2/Pristine\ Packages ./Pristine\ Packages"

Start Sublime Text 2 and you’ll be linked to Dropbox.

• "mv ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User /tmp"
• "ln -s ~/Dropbox/Sublime\ Text\ 2/Packages/User ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User"

#### On Windows

you can probably figure out the first part but for the symlinks you can use the syntax below:

• mklink /D "Installed Packages" "C:\path\to\Dropbox\appdata\sublime\Installed Packages"
• mklink /D "Packages" "C:\path\to\Dropbox\apps\sublime\Packages"
• mklink /D "Pristine Packages" "C:\path\to\Dropbox\apps\sublime\Pristine Packages"

#### On Linux

I presume the Linux setup is similar to the Mac setup but if your using Linux you probably know your way around the command line enough to figure out how to do this once you get the idea.

## Make your own Finder Application Launcher Buttons

You probably have seen these buttons before as there are a few around to launch a terminal from the current directory

It’s easy to make your own Finder Application Launcher buttons.  I started by adapting the one for launching TextMate.  There is an excellent post from  Henrik Nyh on the subject.  You only need to adapt the script by replacing the word TextMate for let’s say Sublime2TextWrangler or Espresso whichever editor you like best.

You can also change the image to your taste by following another explanation from the same guy.  The best way is indeed to replace the icns file inside each script bundle with one of your own.  The easiest way to do that I found is to open the icns icon with a Icon Composer ( an icon editor that is part of the Apple Developer Tools) or as alternative Hobiconer . Just open it, drop another PNG on it and save.

I have made a few png files:

And Pixelmator/Photoshop template to make others.

## Coldfusion commandline with Railo on OS X (or linux)

Wouldn’t it be great if you could have a commandline for executing colfusion code.  Well actually I discovered Oscar Arevolo already did.

CFShell-A–command-line-interface-for-CFML-engines

He even made his code directly available on RiaForge

wwwroot (or htdocs)
|------cfshell
|----- other app
1. Next open up the  file cfshell.py and change the following line:
• defaultHost = ‘http://localhost:8600/cfshell’
• (this should point to folder containing cfshell.cfm, port number can be different depending on how you set up Railo)
2. Now turn off debugging output in Railo admin.
3. Next in Terminal do this:
• sudo chmod a+x /PATH_TO/cfshell/cfshell.py
• (where PATH_TO points to you wwwroot or htdocs)
4. now create a symlink to cfshell.py with name cfshell and move that into /usr/bin (or another location your path) :
• ln -s /PATH_TO/cfshell/cfshell.py /usr/bin/cfshell
• (where PATH_TO points to you wwwroot or htdocs)
5. Make sure Railo is running.  Now you can do this in Terminal:
• cfshell and press <ENTER> and you’ll see this
CCFShellClient :: Version 0.3
URL: http://localhost/cfshell/
Type .help for available commands
>> .cfscript for(i=1;i<11;i++) {writeoutput("#i#,");}
1,2,3,4,5,6,7,8,9,10,
>>