MacVim FTW
9/09/2008
http://code.google.com/p/macvim/

syntax on
set background=dark
set softtabstop=2
set tabstop=4
set shiftwidth=2
set expandtab
set autoindent
Basically those options enable dark background w/ syntax and 2 space softtabs. (and 4 spaces for existing tabs).
if has("gui_running")
colorscheme koehler
set columns=90 lines=65
set transparency=8
endif
For running gui (i.e. macvim) use the dark color theme 'koehler' and give some initial window dimensions. Since I'm a big fan of 80 col code, and vim really doesn't have a good way of displaying that (fail) I use a 90 col window. Also the |transparency| option is a MacVim only option for that gives the window 92% opacity.
set guifont=Monaco:h10
set guioptions=egmrLt
set enc=utf-8
hi LineNr guifg=#333333
These options are enable Monaco 10pt (aliased) and the |guioptions| passes in some flags to always open a window with the toolbar collapsed. The |hi LineNr| is to override the color themes line numbers foreground. The default for koehler is a bright yellow line number foreground, and I like my line numbers to be non-distracting.
:nmap:set invnumber
And finally, this option simply maps double typing control-n while in normal mode (i.e. not insert or visual mode) to show/hide line numbers. Very handy if you don't want to always see line numbers when the file opens.
Anyways, thought I'd pass on this good find.
Back on Correo!
7/30/2008
Thinking Chiefs
5/16/2008
It's only May and I'm already pretty excited about the upcoming NFL season. The Chiefs had a terrific draft, and I think it is the initial turning of the tide for the organization. First off, Herm Edwards is committed to bringing in youth and playing them right away. His philosophy towards free agents ("helmets-for-rent") is something I think is pretty true these days. Most free agents come across from another organization and take big chunks out of a teams cap - and aren't always a lock for success.
People will quickly overlook the Chiefs this season, and maybe the next. However, think about these facts:
- They have a solid game changing receiver in Dwayne Wade
- The defensive line with the addition of Glen Dorsey should make it very difficult for teams to run.
- With the pick of Brandon Flowers, Bernard Pollard, and Jarrad Page - the secondary has youth, speed, and talent. Watch out for Flowers and Pollard because they are big time hitters.
- With a revamped offensive line and Chan Gailey the offense should have spark again. With a healthy Larry Johnson coming back, I expect the Chiefs to be much more productive on that side of the ball. Also, giving Brodie Croyle some time in the pocket will allow him to develop and the organization to actually analyze him.
Another note on Croyle - I'm a big fan of the kid. He's got a strong arm and is coming out of a big time program in the SEC (Alabama). The players (at least most of the younger ones) all seem to really like and click with him. If you remember, Chailey was the offensive coordinator of the Steelers when they had Kordel Stewart - and he made him very productive (and look at Stewart these days). I think Gailey will be able to adjust the system for Croyle. The previous coordinator (was the offensive line coach during the Vermeil era) just didn't seem to have a very good strategy and approach to running the offense. I think some of the blame for Croyle's slow start can be blamed on him. But if Croyle struggles again this year, I won't be surprised for the Chiefs to go after a big time college QB in the draft next year (Chase Daniels?).
Anyways - back to reality in May on the west coast. But it's getting much closer to giving DirectTV a call for the Sunday NFL package!
Ubuntu 8.04 Beta
4/10/2008
Well I like fancy new things, so I decided to switch and use the beta. So after some quick hiccups, the system is running fairly smooth (and suspend works). I'm really starting to like Ubuntu, and if I could fix up a few things, I'd probably use it on a day-to-day basis. For instance, the alleged new auto-screen detection thing doesn't work on my third gen macbook. I like to hook up to my big screen at home so I don't have to hunch over. If anyone has had any success with getting this feature to work, please contact me (nick at nkreeger dot com).
One thing done...
4/07/2008
However, I did manage to find a few cycles this weekend to take out the security prompts out of Correo - and start the new auto-login prompts! I'll try and put some more time in this weekend (outlook good so far) so that I can get a test-build out to the community. While I'm at it - I'm thinking of ways to bundle up a pre-build version of the 1.8 branch. I think this will help get the source in other devs hands much much easier. I need to set up some scripts to build Correo against XULRunner anways, so now is as good as a time as ever to start a custom build setup!!!
Things I want to work on
4/04/2008
Correo:
- Get rid of the annoying security prompts. These got carried over from Camino and suck now that I have to work with a mail server that uses SSL.
- Automatic log-in of folders at startup. I have three accounts that I have to manually go through and "get-mail" for when I launch the app.
- Mailbox searching - the only real reason I ever pop back to Thunderbird for a few minutes
- Wouldn't it be cool to have a browser sync like Google's Sync extension for Firefox? I know it would help me out since I have a bad ass Mac Pro at work that I can't take home everynight....
- Pickup and finish off the embedding cleanup work that I started.
- Prototype and attempt to build a native media-list CD-burner using the existing Cocoa framework provides ripping and burning functionality.
- Get the module to compile under XULRunner. This way I can move Correo to embed on XULRunner and take advantage of the great stuff that is on the 1.9 branch.
- Create a server-side proxy to bluetooth robot controller for the Lego NXT kit. This would be freaking cool. We'd totally use it to drive it around the office!
My side project that I've been working on lately has been a XPCOM native file-system observer service. So far I have the Mac (kqueue) and the Linux (inotify) almost done. We shall see how windows goes.
Side Sports Notes:
- It's nice to see the Royals dealing! How does that feel Detroit? If the starting pitching can stay consistent through out the year, I expect the Royals to make a run at the American Central (not joking).
- I'm stoked for the final 4 this weekend, the first time ever that the number one seeds all made it. The matchup I'm looking forward to the most - Kansas vs. North Carolina!
Embedding XULRunner in Cocoa
2/21/2008
Setting up a project in Xcode took some time, but once I had all the required dependencies (you have to copy most of the dylibs into the
Application.app/Contents/MacOS/ folder - or point to the /Frameworks/XULRunner.framework...) and the necessary headers added to the search path things came together pretty fast.Download the Example Here
In this example, it's a no-thrills-barebones demo. There is no embedded view, just a class that starts up XULRunner and XPCOM and another class that demonstrates that XPCOM is running. The test class (in
XRTestClass.mm) simply inherits from the nsIObserverService class and gets registered for a dummy event and is "notified" by the containing Obj-C class (XRTestClass). See the code for details.When I get more settled in here in SF - I will probably start cutting up an embedded view and start moving the Correo code to this type of platform. However - I noticed that trying to build the mailnews component (this was probably on branch - can't remember if I tried trunk) with XULRunner didn't work because of some older auto-complete interface that isn't used by XULRunner. Anyways - that's a problem for a later time ;-)