2010

2009

2007

2006

2005

Lines of Code?

Entry published may 25 2006

Want to know how many lines of code your project is? Run this command:

find . -name '*.[hm]' -exec cat {} \; | wc -l

Note: Header files in your project build directories can skew the result, you might want to empty out your build directories before running this. Change the file extensions in [hm] if you want to run this one something other than a Cocoa project.

0 comments category: unix
. o .

Lua and Kiwi

Entry published may 13 2006

As you probably already know, I’m working on an e-mail client known as Kiwi. Kiwi is not going to be the end all e-mail client, and for many people Mail.app might be a better option. What Kiwi is will be, a sharper tool in an advanced user’s bag of tricks. Part of the problem with designing for the more experienced computer user is that they expect more. They expect more functionality, more options, more customizability. In particular, making an app super customizable is not easy to do, and Kiwi will probably not be perfect as a 1.0. However, I hope to ease the pain of customization by providing a Lua glue layer in a few key places.

What’s Lua? It’s a small scripting language built to provide a language for configuration files, and places where code changes frequently. It’s becoming increasinly popular, especially in the gaming industry and with companies like Adobe (Lightroom makes heavy use of Lua). So I’m going to inject a little Lua glue into Kiwi, and just a little. So if, for example, you don’t like how Kiwi parses and renders the e-mail output, you can edit some CSS and Lua and have a different view of your e-mail. Or maybe you want to create a complex action that you can run on selected e-mails, jump in and fiddle with things via Lua.

So yes, it might be very cool, but don’t expect too much. What I’m doing here is throwing around ideas, and I can’t guarantee when it will be released, and what will be in it. Either way, let me know what you think.

0 comments category: kiwi
. o .

Pasteboard Server hangup

Entry published may 13 2006

Today I had a weird problem where copying and pasting stopped working. Since I really dislike restarting, I messed around and found a solution:

Run this in the Terminal: ps -x | grep "/System/Library/CoreServices/pb[s]"

I got a result like this, if you don’t get any results skip the next step: 20829 p0- SN 0:00.28 /System/Library/CoreServices/pbs

So it looks like it’s working fine, but for some reason it’s hung up. So kill the server: kill 20829

Now restart it: nohup /System/Library/CoreServices/pbs &

Now copy and paste should work again, if it doesn’t work in an app, try restarting the app, that should do the trick.

0 comments category: mac os x
. o .

MailCore 0.2.3

Entry published may 07 2006

MailCore 0.2.3 has just been uploaded. Here’s some release notes:

  • The CTCoreMessage object now has a flag attribute, it holds flags like unread, forwarded, new..etc
  • More documentation has been added. I added a small section on sending e-mail.
  • MailCore has now been released under the BSD license
  • @executable_path/../Frameworks/ is no longer the default for the installation location. If you are going to be placing MailCore inside your application bundle you will need to run the install_name_tool on the library, please look at the man page for more information.
0 comments category: kiwi