2012-04-21

Displaying user@host in tmux window titles

I use tmux a lot (having switched from GNU Screen) and frequently ssh to different hosts from different tmux windows. One thing that I find helpful is knowing which host I'm ssh'd to in each tmux window. Here is a little trick for your .bash_aliases (on every host you ssh to) which will display user@host in each tmux window title:
The first part sets the terminal's window title to user@host: /working/directory
\033]2;${USER}@${HOSTNAME}: ${PWD}\007
The second part set's the current tmux window title to user@host
\033k${USER}@${HOSTNAME}\033\\

2012-03-26

System.Workflow.* missing from Add Reference dialog

Recently, I've been working with Windows Workflow Foundation 4 a lot. I wanted to use a FreeformActivityDesigner for something but the System.Workflow.* assemblies were not listed in the Add Reference dialog. The problem was that my Solution was targeting the .NET Framework 4 Client Profile Platform Update 1 which doesn't contain those assemblies. To fix this problem just change the target to .NET Framework 4 Platform Update 1.

Edit: It looks like the FreeformActivityDesigner is not really usable in WWF 4 and that the alternative is WorkflowItemPresenter. (forum post)

PreferenceKey Quirks

PreferenceKey has a few quirks that have tripped me up. One is the reduce(value:nextValue:) implementation. The other is that a PreferenceKe...