Hi guys, i've been a textmate user since i developed a shopping cart system for a non profit website that bought me a license because i refused money. I absolutely love textmate.
Just about an hour ago though, i made a little change in a database class i use on my own website, only edited one file and suddenly strange things happen on a couple of pages where the class is used (front page and news page) textmate remembers where i've put the caret in a file, but now it shows that info on my website (without being able to find the text in there anywhere)
I work on the site over an AFP connection, i've tried everything i could think of to get rid of it to no avail. anyone have any idea what's going on and/or how to get rid of that one line of awkward text?
the site is on http://www.theredhead.nl, the line of text that's bothering me is: &7{"com.macromates.caret" = "{column = 0; line = 0; }"; }
hope someone can help me here.
Kind regards,
Kris
Kris Herlaar wrote:
the site is on http://www.theredhead.nl, the line of text that's bothering me is: &7{"com.macromates.caret" = "{column = 0; line = 0; }"; }
That looks like the contents of the resource fork of the file. You should look into the way you're generating the web page, because there seems to be a bit of a problem with that.
Jeroen.
Hmm, i hadn't really thought of resource forks yet, and i've never seen any resource forks outside of resedit before, but still, nothing fundamentally changed anywhere, i merely changed the ip address of the mysql server in a configuration file that belongs to my news class and resides way outside of the document root. no code was altered in any way and the entire site was originally created with textmate. this was the first change i made since i upgraded textmate yesterday and it only started misbehaving right after this really tiny change.
On Jan 26, 2006, at 7:53 PM, Jeroen van der Ham wrote:
Kris Herlaar wrote:
the site is on http://www.theredhead.nl, the line of text that's bothering me is: &7{"com.macromates.caret" = "{column = 0; line = 0; }"; }
That looks like the contents of the resource fork of the file. You should look into the way you're generating the web page, because there seems to be a bit of a problem with that.
Jeroen.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 26/1/2006, at 20:34, Kris Herlaar wrote:
Hmm, i hadn't really thought of resource forks yet, and i've never seen any resource forks outside of resedit before [...]
As to why your web-server shows extended attributes as part of the page, I have no idea, and would need to debug your setup for that.
You can disable the use of these [1] though.
But it would be nicer to figure out how to not have the web-server show them.
[1] http://macromates.com/textmate/manual/ saving_files#extended_attributes_metadata
Actually, after finding the solution i am pretty certain textmate really had nothing to do with it, probably some network quirk that created an otherwise uncalled for seperate resourcefork file.
I've since debugged my framework to make sure it won't have any impact on me again, few more filename checks in the php code. (made sure to ignore filenames starting with ._ in the class autoloader)
Kris
On Jan 27, 2006, at 12:35 AM, Allan Odgaard wrote:
On 26/1/2006, at 20:34, Kris Herlaar wrote:
Hmm, i hadn't really thought of resource forks yet, and i've never seen any resource forks outside of resedit before [...]
As to why your web-server shows extended attributes as part of the page, I have no idea, and would need to debug your setup for that.
You can disable the use of these [1] though.
But it would be nicer to figure out how to not have the web-server show them.
[1] http://macromates.com/textmate/manual/ saving_files#extended_attributes_metadata
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
There has been a fair amount of discussion about these "._" or "dot underscore" or "period underscore" files. See
http://docs.info.apple.com/article.html?artnum=106510
CHeck the above article or search on the terms.
eo
On Jan 27, 2006, at 8:53 AM, Kris Herlaar wrote:
Actually, after finding the solution i am pretty certain textmate really had nothing to do with it, probably some network quirk that created an otherwise uncalled for separate resource fork file.
I've since debugged my framework to make sure it won't have any impact on me again, few more filename checks in the php code. (made sure to ignore filenames starting with ._ in the class autoloader)
Kris
On Jan 27, 2006, at 12:35 AM, Allan Odgaard wrote:
On 26/1/2006, at 20:34, Kris Herlaar wrote:
Hmm, i hadn't really thought of resource forks yet, and i've never seen any resource forks outside of resedit before [...]
As to why your web-server shows extended attributes as part of the page, I have no idea, and would need to debug your setup for that.
You can disable the use of these [1] though.
But it would be nicer to figure out how to not have the web-server show them.
[1] http://macromates.com/textmate/manual/ saving_files#extended_attributes_metadata
Hi List,
it would be great to have the choice to save a copy of the current document. This way, I could make an easy backup while continuing to work on the original.
Or is there an alternative solution?
Thanks! -- 'k
-- k 'E B O Y . /|/|/|/|\ . / / / / \
On 28/1/2006, at 22:18, Kai Vermehr wrote:
it would be great to have the choice to save a copy of the current document. This way, I could make an easy backup while continuing to work on the original.
Or is there an alternative solution?
While it might be good to have as a native feature (as it's sort of “standard”) what you can do for now is create a new command.
For that command set the input to “Entire Document” and let the command e.g. be:
cat >"$(date +%Y-%m-%dT%H:%M:%S)_${TM_FILENAME:-untitled}"
That will then write the entire document into a file named as the current, but putting current date and time as prefix. So should be useful for quickly making a backup of current file.
thanks Allan, this is much better than native!!!
On 30.01.2006, at 22:37, Allan Odgaard wrote:
On 28/1/2006, at 22:18, Kai Vermehr wrote:
it would be great to have the choice to save a copy of the current document. This way, I could make an easy backup while continuing to work on the original.
Or is there an alternative solution?
While it might be good to have as a native feature (as it's sort of “standard”) what you can do for now is create a new command.
For that command set the input to “Entire Document” and let the command e.g. be:
cat >"$(date +%Y-%m-%dT%H:%M:%S)_${TM_FILENAME:-untitled}"
That will then write the entire document into a file named as the current, but putting current date and time as prefix. So should be useful for quickly making a backup of current file.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
-- k 'E B O Y . /|/|/|/|\ . / / / / \
Wow, turns out you were right, thanks. no idea why but there was a ._KFNews.class.php file along the similarly named class that got auto required in. ni idea why that could be there though since it's all on an hfs volume on a X 10.4 mac.
thanks!
Kris On Jan 26, 2006, at 7:53 PM, Jeroen van der Ham wrote:
Kris Herlaar wrote:
the site is on http://www.theredhead.nl, the line of text that's bothering me is: &7{"com.macromates.caret" = "{column = 0; line = 0; }"; }
That looks like the contents of the resource fork of the file. You should look into the way you're generating the web page, because there seems to be a bit of a problem with that.
Jeroen.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate