Justkez

Trying to be a consistent blog 
Filed under

tips

 

Handy TextMate from-the-terminal Tip

From a Mac OS X terminal window, you can use:

mate myfile.rb

to open a given file in TextMate.

You can also ask TextMate to open all the files and folders in the current directory as a project, so all files are accessible from the project drawer:

mate *

Useful functionality from MacroMates (developer of TextMate); one of those small features that makes you go "ahhh...that's nice".

Filed under  //   osx   textmate   tips  

Comments [1]

CakePHP Cannot modify header information

I have just spent too long trying to discover why a controller throws a "Cannot modify header information - headers already sent by..." error message. There's no obvious reason why, and no obvious fix. The controller works fine on another installation of Apache2 and PHP, but not on my machine at home.

The problem? White space after the closing ?> PHP tag. You can have as many carriage returns as you like, but don't try a space. Turns out it was reported here 9 months ago. The team's response is perfectly acceptable, but it's quite a hard little caveat to track down and fix! Here's hoping this will be of use to someone else in distress.

Filed under  //   cakephp   php   tips  

Comments [0]