31 Oct 2011

Crap Folder

Screen_shot_2011-10-31_at_12
25 Jul 2011

FolderOrg is Lion Compatible!

Make sure you have the Snow Leopard version of FolderOrg and it will work just fine with Lion!

The older version is built off of PowerPC and requires Rosetta. The SL build is much faster anyway.

Both are available here:

Direct link:
20 Jul 2011

FolderOrg compatible with Lion!

I have not performed much testing yet, but initial indications are that FolderOrg works with Lion. More details to come...

20 Jul 2011

Going for it...

Screen_shot_2011-07-20_at_9
14 Jul 2011

The quickest way to disable JavaScript logging

console.log = function() {};
console.dir = function() {};
8 Jun 2011

Apple beats Nintendo to Wii U

12 May 2011

Revision Two

Its better to place the iMac on the right side for easy access to the SD and DVD slots and the ports on the back.

Imac_3_screens_coffee

12 May 2011

27 inch iMac with two 27 inch Apple Displays

I've been curious to see what this all-Apple setup would look like, but have not seen any real photos on the web. There is this photo from Engadget, but its with Dell monitors.

So I made this mock-up from Apple's press & store photos. The iMac is one inch higher than the stand-alone displays (20.4 inches vs 19.35 inches).

Imac_3_screens

Here, the displays are set at the same height. Together, the three screens total just over 11 million pixels.

Imac_3_screens2
10 May 2011

... to improve reliability, Time Machine must create a new backup...

Sheesh... what the heck does this mean? Time Machine's unreliable?

Screen_shot_2011-05-10_at_9

6 May 2011

Add bookmarks to the Code Navigator for Objective-J files in Coda

Coda has a bookmarks feature that allows for arbitrary text to show up in the Code Navigator pane. Bookmarks are a convenient way to organize and label sections of code.

Recently, I've been working with Objective-J and wanted to use the bookmarks feature. If you are familiar with XCode and Objective-C, you know that #pragma mark is super helpful.

Coda supports these bookmarks in many languages. See http://www.panic.com/coda/developer/quicktip/5.php.

However Objective-J is not listed and is truly not supported. I decided to fix that.

Bookmarks are supported in the JavaScript syntax, leveraging the two common comment conventions:
/* !bookmark */ or // !bookmark

Since Objective-J is an extension of JavaScript, it should support JavaScript's bookmark convention with no problem. I just needed to find where the bookmark pattern is defined for JavaScript.

I opened the Coda bundle and found the Javascipt.mode bundle. It is located here: /Applications/Coda.app/Contents/Resources/Modes/Javascript.mode. I opened the resources folder of the Javascript.mode bundle in TextMate so that I could browse and search the entire directory. I made sure Coda was not running during this change.

I performed a mult-file search for one of the documented bookmark patterns "//  !" and located the definitions in the RegexSymbols.xml file within Javascript.mode.

The code is as follows:

    <!-- STUDIO -->
    <symbol id="Pragma marks" font-weight="normal" font-style="normal" image="SymbolMark" indentation="0" ignoreblocks="no" show-in-comments="yes">
        <regex>/\*\s*!(.+) \*/</regex>
    </symbol>

        <symbol id="Pragma marks" font-weight="normal" font-style="normal" image="SymbolMark" indentation="0" ignoreblocks="no" show-in-comments="yes">
        <regex>// !([^\n\r]+)</regex>
    </symbol>
<!-- END -->

Now, all that is needed is to copy the two regexes to the corresponding RegexSymbols.xml file within Objective-J.mode, located here: /Applications/Coda.app/Contents/Resources/Modes/Objective-J.mode/Contents/Resources/RegexSymbols.xml.

When that is done, Coda will now recognize /* !bookmark */ and // !bookmark in the Code Navigator!

Doug Everly's Posterous

I am an Apple enthusiast.

At my day job, I use my Mac as a workflow hub to develop for and administer UNIX systems and applications.

I wrote TipSaver for iPhone. I wrote FolderOrg for Mac OS X. I added libgenders to iTerm to help me with my day job.

This blog will be mainly Apple and tech related, I hope others will find it insightful and helpful. However, I may post additional topics that interest me.

Contributors

Doug Everly