TextMate pinwheels on Focus with ExpanDrive

I recently bought a Macbook (4,1 model) 13.3″ 2.1GHz and I put 4GB’s of DDR2 RAM in it. I like it. It’s fast, it’s minimal, it’s fast. I bought the Macbook for $650 brand new with the intentions of putting 4GB’s of RAM in it and then upgrading to an OCZ Vertex 120GB SSD but my Macbook just happens to be one of those lucky ones with a 1.5Gb/s SATA I bus so I’m screwed.

</tangent>

Here’s my (and probably your) problem:

  • I installed TextMate
  • I installed ExpanDrive (Application that lets you mount SFTP/FTP drives as if they were local)

On focus (aka, when you go back to the window from something else) TextMate re-indexes the entire project path which takes 2-5 seconds for me because my first project was small. It just sits there and pinwheels.

Mathematical analysis (lolz)

  • 2-5 seconds of pinwheelage every focus.
  • Average 3.5 seconds per focus.
  • Est. 150 focuses every hour or so.
  • That’s like 10 minutes for every hour where the P.O.S. is just pinwheeling.

It completely and totally dies (pinwheels) if you have more than 100 files or so it seems so I started to look for a fix and I found

The Fix for TexMate pinwheeling with ExpanDrive

ReMate.
http://ciaranwal.sh/remate/

Excerpt from above link:

ReMate is a TextMate plugin which can be used to disable the automatic project tree refresh when the application regains focus.

The plugin adds the following:

  • a toggleable item to the window menu labeled “Disable Refresh on Regaining Focus” – when this is checked, projects will not be updated when TextMate regains focus.
  • an option on the project menu (reached by right-clicking on an item in the project tree or the gear at the bottom of the project drawer) to “Refresh All Projects”
  • Download ReMate

    YOU’RE WELCOME.
    Bryan

    Swing and a miss.

    I’m tired of saying I’m going to do X/Y with this blog when in reality I just don’t have ample time to dedicate to it.

    That being said, soon I’m going to be making some serious modifications such as –

    • Design I have an idea for a blog setup for comments, user interaction, and I can’t give away all of my secrets but lets face it. This is a nerd, geek, dork, freak, weirdo, techie blog focused directly on web developers and (GASP) soon to be iPhone developers so I would like to focus and tailor the design to a communicative state where code, comments, content and experience mesh into one — and I think I got just that up here in — mah (my) dome.
    • CSS/XHTML 100% “custom” from yours truly — me (bryan) :)
    • Theme and jQuery libraries — 100% custom from yours truly — me (above) lolz.

    Before I give you blue balls though I will tell you this — I have a lot to share and have learned a considerably amount in the past few months.

    • I moved
    • I “took over” an entire agencies web and iPhone development by myself
    • I work from home
    • I freelance
    • I write code all day

    Soon to come (For real)

    1. iPhone application development tutorials (start to finish, including source code, conversations, and the whole works as aforementioned considering the behavior and state of this blog if you consider it an object.
    2. Full 100% Video/Text tutorials for CodeIgniter. It’s a 26 video series on how to do EVERYTHING in PHP/MySQL using codeigniter and jQuery — I’m going to have free, and paid videos though so — don’t hate me, but I gotta make the paypuh. (it’ll be cheap, like a $1 for the entire thing, just gotta pay for bandwidth SOMEHOW)
    3. Forums
    4. Job Board
    5. pastebin/code playground — more on this later.
    6. A CRAP LOAD of the — now 54 drafts that I have written 70-90% of.

    Jam out (do NOT be afraid to dansche.)
    (For best sound experience use a pair of Bose TriPorts)
    Calvin Harris – Disco Heat

    Stay browsed,
    Bryan

    Recursively remove .svn directories

    NOTE: Check the comments for variable solutions for this predicament. Thanks to everyone for participating!

    Sometimes you find yourself in situations where svn cleanup just doesn’t cut it — you need to remove the .svn files and re-add everything. It’s a pain to do that file by file so here’s a little method for doing it all at once.

    [bryan@crainbandy] rm -rf `find . -type d -name .svn`

    UPDATE (via comments, thanks meinholz) alternatively you can do:

    [bryan@crainbandy] find . -type d -name .svn -exec rm -rf {} \;

    Don’t say I didn’t tell you.
    Bryan

    How to find out what Linux Distribution/OS you’re running

    Sometimes it’s a pain in the ass to install software on unix based systems without having prior knowledge to the OS/kernel versions.

    You’d do something on debian that doesn’t work on CentOS, Fedora has yum pre-installed where as RHEL4 comes with up2date but you have to have a key, then there’s always RPM’s but who really wants to use RPM’s? You might as well just compile it yourself from source.

    Here is a few commands that (should) return exactly what kind of linux operating system you are running.

    [bryan@crainbandy ~] dmesg | head -1
    [bryan@crainbandy ~] cat /proc/version
    [bryan@crainbandy ~] cat /etc/issue
    [bryan@crainbandy ~] uname -a

    I hope that helps. If you can’t figure it out with one of the commands above then I guess you’re S.O.L.

    Geaux team.
    Bryan

    while (Code Quality == WTFs/Minute) { wtf(); }

    wtfm

    Any experienced coder can testify — sometimes it’s not the amount of time spent infront of the computer that gets the job done, it’s the amount of WTF’s per minute.

    I love this comic.