I’ve switched to iTerm 2! (a “new” terminal app for the Mac)

Yesterday, I switched to iTerm 2!

Since the very first time I used my first Mac for work, I replaced OS X’s Terminal.app with iTerm, because I didn’t feel enough comfortable with Terminal.app.

At that time (in 2007, when we used to run Tiger), iTerm was a quite good piece of software for the Mac (and it still is), with tabs, Unicode support, full-screen mode, profiles, bookmarks, and some more stuff. However, it doesn’t seem to be updated that much. From time to time, Sparkle notifies you that there is a new iTerm version available, but that’s very seldom, and they are most of all minor releases.

But yesterday, while I was struggling to get AppleScript to do what I was commanding it to do, I found out iTerm 2. iTerm 2 is actually not the next major release of iTerm, but a fork which intends to be iTerm’s successor. However, it’s got a quite remarkable bunch of new —and neat— features that iTerm lacks, and that’s what persuaded me to switch.

PS: Don’t forget to check out these iTerm Shell Customizations for bash, zsh and tcsh.

Advertisements

SQLite Manager for OS X

I’m currently working on some web projects using Django, which is a pretty nice Python framework for web development, and I run all my tests with a SQLite database. During development, the models are very dynamic and its fields are always changing, so I need the database tables to reflect those changes, but the utilities bundled with Django only create tables, but don’t alter them when models change.

So, the way to overcome this workaround is quite simple: just drop the tables and run Django’s table creation utility again. However, that’s a bit of a hassle to do through SQL queries when you’ve got plenty of tables to drop.

For managing SQLite databases, I’ve always used sqliteman, which is multiplatform and free. There are binaries for Windows and Linux, and I compiled it on OS X and even packaged the binary into an OS X .app, so that I could just run it like any other OS X app. But sqliteman has still got an issue which makes it uncomfortable for droping a bunch of tables: in the table tree view, you cannot select more than one table to drop them at once, and, besides, there is no shortcut to drop tables (you must ctrl-click and delete tables from the context menu!). And I definitely do not want to drop tables one-by-one and by-hand, nor do I want to have to write a drop query for each table!

For managing MySQL databases from OS X, I’ve always used CocoaMySQL, which evolved to Sequel Pro. This has a pretty, native interface for OS X and… It allows you to select multiple tables and delete them like you’ve always wanted: with shift-selection! It doesn’t provide any shortcuts for deleting though, but I can live with that, and that gives you more safety, too (it prevents you from deleting by mistake).

So, the quest for the Holy Manager arises: I want a GUI manager for SQLite databases that runs on OS X, allows batch dropping of tables, and —of course— is free! A simple search for “sqlite manager interface mac” yields some results (though not all of them are free):

MesaSQLite looks promising, but it’s paid software and I didn’t get to know the limitations of the trial. Lita looks very simple, so at first sight I’m not sure if it will allow batch dropping, and also the look & feel is not suited for the OS X posh kids. Base is also quite promising and very good-looking, and the trial limits sessions to 15 minutes and custom SQL queries will only return 5 rows. Well, I don’t think it’ll take me 15 minutes to drop some tables, and dropping doesn’t yield any rows… But Base does not allow to drop many tables at once 😦 However, MesaSQLite does! Anyway, I’ll keep both, since Base might be useful some day, too.

PS: Yeah, I know Safari is a memory monster. I might switch some day 🙂